aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/output-layout.c2
-rw-r--r--examples/rotation.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index c9ca53a4..b3fff419 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -190,7 +190,7 @@ static void keyboard_key_notify(struct wl_listener *listener, void *data) {
// and make this change in pixels/sec^2
// Also, key repeat
int delta = 75;
- if (event->state == WLR_KEY_PRESSED) {
+ if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
switch (sym) {
case XKB_KEY_Left:
update_velocities(sample, -delta, 0);
diff --git a/examples/rotation.c b/examples/rotation.c
index e76cc2a4..edd100e9 100644
--- a/examples/rotation.c
+++ b/examples/rotation.c
@@ -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);