28 #include <vsg/core/Visitor.h>
29 #include <vsg/ui/KeyEvent.h>
31 #include <vsgImGui/RenderImGui.h>
35 class VSGIMGUI_DECLSPEC
SendEventsToImGui :
public vsg::Inherit<vsg::Visitor, SendEventsToImGui>
40 void apply(vsg::ButtonPressEvent& buttonPress)
override;
41 void apply(vsg::ButtonReleaseEvent& buttonRelease)
override;
42 void apply(vsg::MoveEvent& moveEvent)
override;
43 void apply(vsg::ScrollWheelEvent& scrollWheel)
override;
44 void apply(vsg::KeyPressEvent& keyPress)
override;
45 void apply(vsg::KeyReleaseEvent& keyRelease)
override;
46 void apply(vsg::ConfigureWindowEvent& configureWindow)
override;
47 void apply(vsg::FrameEvent& frame)
override;
53 uint32_t _convertButton(uint32_t button);
55 void _updateModifier(
ImGuiIO& io, vsg::KeyModifier& modifier,
bool pressed);
57 std::chrono::high_resolution_clock::time_point t0;
60 std::map<vsg::KeySymbol, ImGuiKey> _vsg2imgui;
Definition: SendEventsToImGui.h:36