Correctly read wl_array with keystate on keyboard focus gain

This commit is contained in:
Phireh 2024-12-06 19:57:00 +01:00
commit b2fe2b09ef
2 changed files with 17 additions and 4 deletions

View file

@ -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;