History

send global HFActionEvent from ControllerScriptingInterface

Stephen Birarda committed 12 years ago

Commit c3fe7c71 parent 76493599 files · +46 −7Browse files

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

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+8−0
@@ -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
26void 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
26const PalmData* ControllerScriptingInterface::getPrimaryPalm() const {34const PalmData* ControllerScriptingInterface::getPrimaryPalm() const {
27 int leftPalmIndex, rightPalmIndex;35 int leftPalmIndex, rightPalmIndex;