688 |
}; |
}; |
689 |
typedef Ref<OnController,Node> OnControllerRef; |
typedef Ref<OnController,Node> OnControllerRef; |
690 |
|
|
691 |
|
class OnRpn FINAL : public EventHandler { |
692 |
|
public: |
693 |
|
OnRpn(StatementsRef statements) : EventHandler(statements) {} |
694 |
|
VMEventHandlerType_t eventHandlerType() const OVERRIDE { return VM_EVENT_HANDLER_RPN; } |
695 |
|
String eventHandlerName() const OVERRIDE { return "rpn"; } |
696 |
|
}; |
697 |
|
typedef Ref<OnRpn,Node> OnRpnRef; |
698 |
|
|
699 |
|
class OnNrpn FINAL : public EventHandler { |
700 |
|
public: |
701 |
|
OnNrpn(StatementsRef statements) : EventHandler(statements) {} |
702 |
|
VMEventHandlerType_t eventHandlerType() const OVERRIDE { return VM_EVENT_HANDLER_NRPN; } |
703 |
|
String eventHandlerName() const OVERRIDE { return "nrpn"; } |
704 |
|
}; |
705 |
|
typedef Ref<OnNrpn,Node> OnNrpnRef; |
706 |
|
|
707 |
class EventHandlers FINAL : virtual public Node { |
class EventHandlers FINAL : virtual public Node { |
708 |
std::vector<EventHandlerRef> args; |
std::vector<EventHandlerRef> args; |
709 |
public: |
public: |
953 |
OnNoteRef onNote; |
OnNoteRef onNote; |
954 |
OnReleaseRef onRelease; |
OnReleaseRef onRelease; |
955 |
OnControllerRef onController; |
OnControllerRef onController; |
956 |
|
OnRpnRef onRpn; |
957 |
|
OnNrpnRef onNrpn; |
958 |
|
|
959 |
ArrayList<vmint>* globalIntMemory; |
ArrayList<vmint>* globalIntMemory; |
960 |
ArrayList<vmfloat>* globalRealMemory; |
ArrayList<vmfloat>* globalRealMemory; |