Skip to content

Commit ad3dc7b

Browse files
authored
Add ChVisualSystemVSG support for all ChEventHandlerVSG supported events (#739)
* vsg support for keyrelease events * typo * Add the rest of the event handler events supported by ChEventHandlerVSG.h
1 parent cb72352 commit ad3dc7b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/chrono_vsg/ChVisualSystemVSG.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ class EventHandlerWrapper : public vsg::Inherit<vsg::Visitor, EventHandlerWrappe
114114
EventHandlerWrapper(std::shared_ptr<ChEventHandlerVSG> component, ChVisualSystemVSG* app) : m_component(component), m_app(app) {}
115115

116116
void apply(vsg::KeyPressEvent& keyPress) override { m_component->process(keyPress); }
117+
void apply(vsg::KeyReleaseEvent& keyRelease) override { m_component->process(keyRelease); }
118+
void apply(vsg::ButtonPressEvent& buttonPress) override { m_component->process(buttonPress); }
119+
void apply(vsg::ButtonReleaseEvent& buttonRelease) override { m_component->process(buttonRelease); }
120+
void apply(vsg::MoveEvent& moveEvent) override { m_component->process(moveEvent); }
121+
void apply(vsg::TouchEvent& touchEvent) override { m_component->process(touchEvent); }
117122

118123
private:
119124
std::shared_ptr<ChEventHandlerVSG> m_component;

0 commit comments

Comments
 (0)