This commit is contained in:
Johan Malm 2026-04-08 12:28:16 +02:00 committed by GitHub
commit 86e8720357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 182 additions and 1 deletions

View file

@ -5,12 +5,17 @@
#include <stdbool.h>
#include <stdint.h>
struct seat;
/*
* All keycodes in these functions are (Linux) libinput evdev scancodes which is
* what 'wlr_keyboard' uses (e.g. 'seat->keyboard_group->keyboard->keycodes').
* Note: These keycodes are different to XKB scancodes by a value of 8.
*/
void key_state_indicator_update(struct seat *seat);
void key_state_indicator_toggle(void);
/**
* key_state_pressed_sent_keycodes - generate array of pressed+sent keys
* Note: The array is generated by subtracting any bound keys from _all_ pressed