Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 10 files). Show all
Unified · Split
| @@ -13,23 +13,10 @@ · 12 unmodified lines | ||
| 13 | 13 | |
| 14 | 14 | #include <avatar/AvatarManager.h> |
| 15 | 15 | #include <avatar/MyAvatar.h> |
| 16 | −#include <HFBackEvent.h> | |
| 17 | 16 | #include <plugins/PluginManager.h> |
| 18 | 17 | |
| 19 | 18 | #include "Application.h" |
| 20 | 19 | |
| 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 | − | |
| 33 | 20 | bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { |
| 34 | 21 | return isKeyCaptured(KeyEvent(*event)); |
| 35 | 22 | } |