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
1313
1414 #include <avatar/AvatarManager.h>
1515 #include <avatar/MyAvatar.h>
16−#include <HFBackEvent.h>
1716 #include <plugins/PluginManager.h>
1817
1918 #include "Application.h"
2019
21−void 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−
3320 bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const {
3421 return isKeyCaptured(KeyEvent(*event));
3522 }