mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 06:20:26 +01:00
evdev: Avoid unintended case drop through
e->code is in the same range for ABS_ and for REL_. As the code currently stands and for the current values in Linux's input.h there is no risk of a problem. However just in case it would be wise to break after evaluating the relative events. Signed-off-by: Rob Bradford <rob@linux.intel.com>
This commit is contained in:
parent
56b178cc00
commit
7e10eff8f3
1 changed files with 1 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ is_motion_event(struct input_event *e)
|
|||
case REL_Y:
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
case EV_ABS:
|
||||
switch (e->code) {
|
||||
case ABS_X:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue