Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -10,10 +10,13 @@ · 9 unmodified lines | ||
| 10 | 10 | // |
| 11 | 11 | |
| 12 | 12 | #include <HandData.h> |
| 13 | +#include <HFCancelEvent.h> | |
| 14 | + | |
| 13 | 15 | #include "Application.h" |
| 16 | +#include "devices/MotionTracker.h" | |
| 14 | 17 | #include "devices/SixenseManager.h" |
| 15 | 18 | #include "ControllerScriptingInterface.h" |
| 16 | −#include "devices/MotionTracker.h" | |
| 19 | + | |
| 17 | 20 | |
| 18 | 21 | ControllerScriptingInterface::ControllerScriptingInterface() : |
| 19 | 22 | _mouseCaptured(false), |
| @@ -25,9 +28,13 @@ ControllerScriptingInterface::ControllerScriptingInterface() : · 5 unmodified lines | ||
| 25 | 28 | |
| 26 | 29 | void ControllerScriptingInterface::handleMetaEvent(HFMetaEvent* event) { |
| 27 | 30 | if (event->type() == HFActionEvent::startType()) { |
| 28 | − emitActionStartEvent(static_cast<HFActionEvent*>(event)); | |
| 31 | + emit actionStartEvent(static_cast<HFActionEvent&>(*event)); | |
| 29 | 32 | } else if (event->type() == HFActionEvent::endType()) { |
| 30 | − emitActionEndEvent(static_cast<HFActionEvent*>(event)); | |
| 33 | + emit actionEndEvent(static_cast<HFActionEvent&>(*event)); | |
| 34 | + } else if (event->type() == HFCancelEvent::startType()) { | |
| 35 | + emit cancelStartEvent(); | |
| 36 | + } else if (event->type() == HFCancelEvent::endType()) { | |
| 37 | + emit cancelEndEvent(); | |
| 31 | 38 | } |
| 32 | 39 | } |
| 33 | 40 | |