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;
49 bool showDemoWindow =
false;
51 unsigned joystick = 0;
52 unsigned popupForKey = unsigned(-1);
53 float popupTimeout = 0.0f;
54 bool listening =
false;
56 int selectedStyle = -1;
57 std::string saveLayoutName;
59 std::string confirmText;
60 std::function<void()> confirmAction;
62 std::vector<std::string> availableFonts;
64 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