1
// TODO WIP EXPERIMENTAL
52
#define MDFNKEYMOD_LSHIFT 0x0001
53
#define MDFNKEYMOD_RSHIFT 0x0002
54
#define MDFNKEYMOD_LCTRL 0x0004
55
#define MDFNKEYMOD_RCTRL 0x0008
56
#define MDFNKEYMOD_LALT 0x0010
57
#define MDFNKEYMOD_RALT 0x0020
61
enum { PressEvent = 1, ReleaseEvent = 2 };
64
uint8 keycode; // MDFNKEY_* (a select few scancodes translated into common key codes for default hotkey/input configuration)
65
uint16 modifier; // MDFNKEYMOD_*
66
uint16 scancode; // Rawish keyboard scancode. Used for custom input configurations.
67
uint32 unicode; // Unicode glyph(0 if not applicable), based on scancode, modifier, and MAYBE DRAGONS. For text entry.
77
void Reset_BC_ChangeCheck(void);
78
bool Do_BC_ChangeCheck(ButtConfig *bc);
80
void UpdateKeyboards(std::vector<MDFN_KeyEvent> *event_queue = NULL); // Maybe use a fixed-size queue/FIFO instead to eliminate memory allocs?
82
//unsigned GetIndexByUniqueID(uint64 unique_id); // Returns ~0U if joystick was not found.
83
//unsigned GetUniqueIDByIndex(unsigned index);
86
std::vector<JoystickDriver *> JoystickDrivers;
87
std::vector<JoystickManager_Cache> JoystickCache;