mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
tools/record: narrow down the obfuscation range
Let a few obvious modifiers through, including the F-key range. Especially left control is useful to know if it's down. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4c82cbd4d0
commit
e72b30f424
1 changed files with 12 additions and 3 deletions
|
|
@ -156,9 +156,18 @@ obfuscate_keycode(struct input_event *ev)
|
|||
{
|
||||
switch (ev->type) {
|
||||
case EV_KEY:
|
||||
if (ev->code >= KEY_ESC && ev->code < KEY_ZENKAKUHANKAKU) {
|
||||
ev->code = KEY_A;
|
||||
return true;
|
||||
switch (ev->code) {
|
||||
case KEY_ESC:
|
||||
case KEY_TAB:
|
||||
case KEY_ENTER:
|
||||
case KEY_LEFTCTRL:
|
||||
break;
|
||||
default:
|
||||
if ((ev->code > KEY_ESC && ev->code < KEY_CAPSLOCK) ||
|
||||
(ev->code >= KEY_KP7 && ev->code <= KEY_KPDOT)) {
|
||||
ev->code = KEY_A;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EV_MSC:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue