lsnes/ui/input/user-interface.hpp
2013-05-03 17:47:34 +03:00

33 lines
723 B
C++
Executable file

struct HotkeyGeneral : TertiaryInput {
DigitalInput saveState;
DigitalInput loadState;
DigitalInput decrementSlot;
DigitalInput incrementSlot;
DigitalInput toggleMouseCapture;
DigitalInput toggleFullScreen;
DigitalInput pause;
DigitalInput turboMode;
DigitalInput power;
DigitalInput reset;
DigitalInput quit;
void inputEvent(int16_t scancode, int16_t value);
HotkeyGeneral();
private:
unsigned activeSlot;
};
struct HotkeyInput : SecondaryInput {
HotkeyGeneral general;
void inputEvent(int16_t scancode, int16_t value);
HotkeyInput();
};
struct UserInterfaceInput : PrimaryInput {
HotkeyInput hotkey;
void inputEvent(int16_t scancode, int16_t value);
UserInterfaceInput();
};