mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Replace wlr_key_state with wl_keyboard_key_state
There's no reason to have duplicate enums
This commit is contained in:
parent
238d1c078f
commit
7693f61d81
9 changed files with 26 additions and 28 deletions
|
|
@ -140,7 +140,7 @@ static void keyboard_key_notify(struct wl_listener *listener, void *data) {
|
|||
if (sym == XKB_KEY_Escape) {
|
||||
wl_display_terminate(sample->display);
|
||||
}
|
||||
if (event->state == WLR_KEY_PRESSED) {
|
||||
if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
|
||||
switch (sym) {
|
||||
case XKB_KEY_Left:
|
||||
update_velocities(sample, -16, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue