Correctly read wl_array with keystate on keyboard focus gain
This commit is contained in:
parent
c98b67fcd3
commit
b2fe2b09ef
2 changed files with 17 additions and 4 deletions
3
input.h
3
input.h
|
|
@ -45,10 +45,11 @@ typedef enum {
|
|||
} mouse_keysym_t;
|
||||
|
||||
#define IME_STR_MAX 200 // TODO: check if this limit is sensible
|
||||
#define KEYBOARD_KEY_TOTAL
|
||||
|
||||
typedef struct {
|
||||
uint8_t keyboard_state; // mostly used to check if we are using the IME
|
||||
uint8_t keys[256]; // the state of the full keyboard
|
||||
uint8_t keys[KEYBOARD_KEY_TOTAL]; // the state of the full keyboard
|
||||
uint8_t mouse_state;
|
||||
int32_t mouse_x;
|
||||
int32_t mouse_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue