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
2020 _touchCaptured(false),
2121 _wheelCaptured(false)
2222 {
23+
2324 }
2425
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+}
2533
2634 const PalmData* ControllerScriptingInterface::getPrimaryPalm() const {
2735 int leftPalmIndex, rightPalmIndex;