mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-05 06:24:27 +01:00
feat(editor): scripted mouse and keys for the self-tests and the launcher: mouse, mouseat, glide, button, wheel, press, release, tap, type and softcursor drive the window as the user does, EU07_LAUNCHER_SELFTEST runs a script in the launcher and the scenery wizard and hands an editor script on with editorscript; selectat selects the path nearest a point, switchlink no longer takes over a crossover left in the tool, joints without points logs every issue with free ends
This commit is contained in:
@@ -17,6 +17,7 @@ bool launcher_mode::init()
|
||||
|
||||
bool launcher_mode::update()
|
||||
{
|
||||
m_script.step();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#pragma once
|
||||
|
||||
#include "application/applicationmode.h"
|
||||
#include "application/scriptedinput.h"
|
||||
|
||||
class launcher_mode : public application_mode {
|
||||
|
||||
@@ -33,4 +34,7 @@ public:
|
||||
void on_window_resize( int w, int h ) override;
|
||||
void on_event_poll() override { /* not handled by the launcher */ }
|
||||
bool is_command_processor() const override { return false; }
|
||||
|
||||
private:
|
||||
input_script m_script{"EU07_LAUNCHER_SELFTEST"};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user