mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-21 21:06:25 +02: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:
@@ -6232,6 +6232,7 @@ void editor_mode::render_change_history(){
|
||||
|
||||
void editor_mode::on_event_poll()
|
||||
{
|
||||
m_selftest.input.deliver();
|
||||
// game-engine style camera: WSAD/EQ only fly the camera while the right mouse button is held.
|
||||
// when it's released the keyboard is free for gizmo shortcuts, and we flush a zero-movement
|
||||
// command once so the camera doesn't keep coasting on the last velocity it was given.
|
||||
|
||||
Reference in New Issue
Block a user