History

remove unused HFMetaEvents

SamGondelman committed 9 years ago

Commit 403b1891 parent 99109fe10 files · +0 −268Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 10 files). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+0−13
@@ -13,23 +13,10 @@ · 12 unmodified lines
13 13
14#include <avatar/AvatarManager.h>14#include <avatar/AvatarManager.h>
15#include <avatar/MyAvatar.h>15#include <avatar/MyAvatar.h>
16#include <HFBackEvent.h>
17#include <plugins/PluginManager.h>16#include <plugins/PluginManager.h>
18 17
19#include "Application.h"18#include "Application.h"
20 19
21void ControllerScriptingInterface::handleMetaEvent(HFMetaEvent* event) {
22 if (event->type() == HFActionEvent::startType()) {
23 emit actionStartEvent(static_cast<HFActionEvent&>(*event));
24 } else if (event->type() == HFActionEvent::endType()) {
25 emit actionEndEvent(static_cast<HFActionEvent&>(*event));
26 } else if (event->type() == HFBackEvent::startType()) {
27 emit backStartEvent();
28 } else if (event->type() == HFBackEvent::endType()) {
29 emit backEndEvent();
30 }
31}
32
33bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const {20bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const {
34 return isKeyCaptured(KeyEvent(*event));21 return isKeyCaptured(KeyEvent(*event));
35}22}