mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Reset key buffer on reload
To preserve my sanity
This commit is contained in:
parent
1100335ea0
commit
3a5fce339f
3 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,13 @@
|
|||
|
||||
static keycode key_state_array[KEY_STATE_MAX_LENGTH];
|
||||
|
||||
void input_init(void) {
|
||||
int i;
|
||||
for (i = 0; i < KEY_STATE_MAX_LENGTH; ++i) {
|
||||
key_state_array[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static uint8_t find_key(keycode key) {
|
||||
int i;
|
||||
for (i = 0; i < KEY_STATE_MAX_LENGTH; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue