Create struct out of mouse input
This commit is contained in:
parent
896a80d6b8
commit
fcaf64c69d
|
@ -83,23 +83,7 @@ typedef struct menu_input
|
||||||
|
|
||||||
uint64_t devices_mask;
|
uint64_t devices_mask;
|
||||||
|
|
||||||
struct
|
menu_input_mouse_t mouse;
|
||||||
{
|
|
||||||
int16_t x;
|
|
||||||
int16_t y;
|
|
||||||
bool left;
|
|
||||||
bool right;
|
|
||||||
bool oldleft;
|
|
||||||
bool oldright;
|
|
||||||
bool wheelup;
|
|
||||||
bool wheeldown;
|
|
||||||
bool hwheelup;
|
|
||||||
bool hwheeldown;
|
|
||||||
bool scrollup;
|
|
||||||
bool scrolldown;
|
|
||||||
unsigned ptr;
|
|
||||||
uint64_t state;
|
|
||||||
} mouse;
|
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -100,6 +100,24 @@ enum menu_input_bind_mode
|
||||||
MENU_INPUT_BIND_ALL
|
MENU_INPUT_BIND_ALL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct menu_input_mouse
|
||||||
|
{
|
||||||
|
int16_t x;
|
||||||
|
int16_t y;
|
||||||
|
bool left;
|
||||||
|
bool right;
|
||||||
|
bool oldleft;
|
||||||
|
bool oldright;
|
||||||
|
bool wheelup;
|
||||||
|
bool wheeldown;
|
||||||
|
bool hwheelup;
|
||||||
|
bool hwheeldown;
|
||||||
|
bool scrollup;
|
||||||
|
bool scrolldown;
|
||||||
|
unsigned ptr;
|
||||||
|
uint64_t state;
|
||||||
|
} menu_input_mouse_t;
|
||||||
|
|
||||||
void menu_input_key_event(bool down, unsigned keycode, uint32_t character,
|
void menu_input_key_event(bool down, unsigned keycode, uint32_t character,
|
||||||
uint16_t key_modifiers);
|
uint16_t key_modifiers);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue