45 void handle(
const SDL_Event& evt);
46 void handleKeyDown(
const SDL_KeyboardEvent& key, uint32_t unicode);
47 void splitText(uint32_t timestamp,
const char*
utf8);
48 void setGrabInput(
bool grab)
const;
51 bool signalEvent(
const Event& event)
override;
58 struct EscapeGrabCmd final :
Command {
60 void execute(std::span<const TclObject> tokens,
TclObject& result)
override;
61 [[nodiscard]] std::string help(std::span<const TclObject> tokens)
const override;
64 enum EscapeGrabState {
66 ESCAPE_GRAB_WAIT_LOST,
68 } escapeGrabState = ESCAPE_GRAB_WAIT_CMD;
71 void setNewOsdControlButtonState(
unsigned newState);
72 void triggerOsdControlEventsFromJoystickAxisMotion(
unsigned axis,
int value);
73 void triggerOsdControlEventsFromJoystickHat(
int value);
74 void osdControlChangeButton(
bool down,
unsigned changedButtonMask);
75 void triggerOsdControlEventsFromJoystickButtonEvent(
unsigned button,
bool down);
76 void triggerOsdControlEventsFromKeyEvent(SDLKey key,
bool repeat);
79 unsigned osdControlButtonsState = unsigned(~0);
82 static inline bool androidButtonA =
false;
83 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