projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b8738
)
Use enum wl_keyboard_key_state instead of integer
author
Daniel Stone
<daniel@fooishbar.org>
Wed, 30 May 2012 15:31:52 +0000
(16:31 +0100)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:29 +0000
(17:51 +0100)
Instead of using a uint32_t for state everywhere (except on the wire,
where that's still the call signature), use the new
wl_keyboard_key_state enum, and explicit comparisons.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
a7162fc
..
0a5ec91
100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-86,7
+86,9
@@
evdev_process_key(struct evdev_input_device *device,
default:
notify_key(&device->master->base.seat,
- time, e->code, e->value);
+ time, e->code,
+ e->value ? WL_KEYBOARD_KEY_STATE_PRESSED :
+ WL_KEYBOARD_KEY_STATE_RELEASED);
break;
}
}