24 void save(ImGuiTextBuffer& buf)
override;
32 bool signalEvent(
const Event& event)
override;
34 void deinitListener();
36 void setStyle()
const;
40 void paintEditShortcut();
42 std::span<const std::string> getAvailableFonts();
45 bool showConfigureJoystick =
false;
46 bool showFont =
false;
47 bool showShortcut =
false;
50 unsigned joystick = 0;
51 unsigned popupForKey = unsigned(-1);
52 float popupTimeout = 0.0f;
53 bool listening =
false;
55 int selectedStyle = -1;
56 std::string saveLayoutName;
58 std::string confirmText;
59 std::function<void()> confirmAction;
61 std::vector<std::string> availableFonts;
63 static constexpr auto persistentElements = std::tuple{
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