17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 13:10:29 +01:00

feat(editor): scripted mouse and keys of a self-test are delivered between frames like real input events, so a press seen by ImGui starts a drag as it does by hand; while a script drives the input the real mouse and keyboard are ignored

This commit is contained in:
maj00r
2026-10-15 17:29:04 +02:00
parent 92aa39ce6e
commit 2a3d7f2e29
5 changed files with 73 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ public:
void on_mouse_button( int const Button, int const Action, int const Mods ) override { /* not handled by the launcher */ }
void on_scroll( double const Xoffset, double const Yoffset ) override { /* not handled by the launcher */ }
void on_window_resize( int w, int h ) override;
void on_event_poll() override { /* not handled by the launcher */ }
void on_event_poll() override { m_script.deliver(); }
bool is_command_processor() const override { return false; }
private: