44 void handle(
const SDL_Event& evt);
45 void handleKeyDown(
const SDL_KeyboardEvent& key, uint32_t unicode);
46 void splitText(uint32_t timestamp,
const char*
utf8);
47 void setGrabInput(
bool grab)
const;
50 int signalEvent(
const Event& event)
override;
57 struct EscapeGrabCmd final :
Command {
59 void execute(std::span<const TclObject> tokens,
TclObject& result)
override;
60 [[nodiscard]] std::string help(std::span<const TclObject> tokens)
const override;
63 enum EscapeGrabState {
65 ESCAPE_GRAB_WAIT_LOST,
67 } escapeGrabState = ESCAPE_GRAB_WAIT_CMD;
70 void setNewOsdControlButtonState(
unsigned newState);
71 void triggerOsdControlEventsFromJoystickAxisMotion(
unsigned axis,
int value);
72 void triggerOsdControlEventsFromJoystickHat(
int value);
73 void osdControlChangeButton(
bool down,
unsigned changedButtonMask);
74 void triggerOsdControlEventsFromJoystickButtonEvent(
unsigned button,
bool down);
75 void triggerOsdControlEventsFromKeyEvent(SDLKey key,
bool repeat);
78 unsigned osdControlButtonsState = unsigned(~0);
81 static inline bool androidButtonA =
false;
82 static inline bool androidButtonB =
false;
std::variant< KeyUpEvent, KeyDownEvent, MouseMotionEvent, MouseButtonUpEvent, MouseButtonDownEvent, MouseWheelEvent, JoystickAxisMotionEvent, JoystickHatEvent, JoystickButtonUpEvent, JoystickButtonDownEvent, OsdControlReleaseEvent, OsdControlPressEvent, WindowEvent, TextEvent, FileDropEvent, QuitEvent, FinishFrameEvent, CliCommandEvent, GroupEvent, BootEvent, FrameDrawnEvent, BreakEvent, SwitchRendererEvent, TakeReverseSnapshotEvent, AfterTimedEvent, MachineLoadedEvent, MachineActivatedEvent, MachineDeactivatedEvent, MidiInReaderEvent, MidiInWindowsEvent, MidiInCoreMidiEvent, MidiInCoreMidiVirtualEvent, MidiInALSAEvent, Rs232TesterEvent, Rs232NetEvent, ImGuiDelayedActionEvent, ImGuiActiveEvent > Event