mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2025-01-11 05:18:00 -05:00
Ignore keyboard auto-repeat.
This commit is contained in:
parent
f4ca6c4231
commit
2a73fa5403
3
map.c
3
map.c
@ -174,7 +174,8 @@ int main(int argc, char** argv) {
|
||||
nowrite = 0;
|
||||
j = 0;
|
||||
|
||||
if (e.type == EV_KEY) {
|
||||
/* Only catch keys and ignore auto-repeat (value == 2) */
|
||||
if (e.type == EV_KEY && e.value != 2) {
|
||||
switch(e.code) {
|
||||
case KEY_UP:
|
||||
je.type = EV_ABS; je.code = ABS_HAT0Y; je.value = -e.value; j = 0; break;
|
||||
|
Loading…
Reference in New Issue
Block a user