Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -20,8 +20,16 @@ ControllerScriptingInterface::ControllerScriptingInterface() : · 19 unmodified lines | |||
| 20 | _touchCaptured(false), | 20 | _touchCaptured(false), |
| 21 | _wheelCaptured(false) | 21 | _wheelCaptured(false) |
| 22 | { | 22 | { |
| 23 | |||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 26 | void ControllerScriptingInterface::handleMetaEvent(HFMetaEvent* event) { | ||
| 27 | if (event->type() == HFActionEvent::startType()) { | ||
| 28 | emitActionStartEvent(static_cast<HFActionEvent*>(event)); | ||
| 29 | } else if (event->type() == HFActionEvent::endType()) { | ||
| 30 | emitActionEndEvent(static_cast<HFActionEvent*>(event)); | ||
| 31 | } | ||
| 32 | } | ||
| 25 | 33 | ||
| 26 | const PalmData* ControllerScriptingInterface::getPrimaryPalm() const { | 34 | const PalmData* ControllerScriptingInterface::getPrimaryPalm() const { |
| 27 | int leftPalmIndex, rightPalmIndex; | 35 | int leftPalmIndex, rightPalmIndex; |