diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-07-31 18:56:55 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-07-31 18:56:55 +0200 |
commit | 2a2bdca0dd643b88a538b9b0f37c85ea79df1ddd (patch) | |
tree | bf68a164a4a9dc627eb7389d86711958426bb028 /modules | |
parent | 8673275df8551a378fddfa570ace148eb340cf07 (diff) |
define KEYCODE_REL for key release
Diffstat (limited to 'modules')
-rw-r--r-- | modules/evdev/evdev.c | 2 | ||||
-rw-r--r-- | modules/menu/menu.c | 2 | ||||
-rw-r--r-- | modules/sdl/sdl.c | 2 | ||||
-rw-r--r-- | modules/stdio/stdio.c | 2 | ||||
-rw-r--r-- | modules/wincons/wincons.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/modules/evdev/evdev.c b/modules/evdev/evdev.c index 63e035f..3b8e6aa 100644 --- a/modules/evdev/evdev.c +++ b/modules/evdev/evdev.c @@ -214,7 +214,7 @@ static void evdev_fd_handler(int flags, void *arg) modifier = 0; } else if (0 == ev->value) { - reportkey(st, 0x00); + reportkey(st, KEYCODE_REL); } } } diff --git a/modules/menu/menu.c b/modules/menu/menu.c index c1f089c..b256615 100644 --- a/modules/menu/menu.c +++ b/modules/menu/menu.c @@ -708,7 +708,7 @@ static const struct cmd callcmdv[] = { {'7', 0, NULL, digit_handler }, {'8', 0, NULL, digit_handler }, {'9', 0, NULL, digit_handler }, - {0x00, 0, NULL, digit_handler }, + {KEYCODE_REL,0,NULL, digit_handler }, {'S', 0, "Statusmode toggle", toggle_statmode }, {'@', CMD_PRM, "Set current call <line>", set_current_call }, diff --git a/modules/sdl/sdl.c b/modules/sdl/sdl.c index dec95bc..3ef4cf6 100644 --- a/modules/sdl/sdl.c +++ b/modules/sdl/sdl.c @@ -80,7 +80,7 @@ static void timeout(void *arg) tmr_start(&sdl.tmr, 1, event_handler, NULL); /* Emulate key-release */ - ui_input(0x00); + ui_input(KEYCODE_REL); } diff --git a/modules/stdio/stdio.c b/modules/stdio/stdio.c index 3121322..81dd9c5 100644 --- a/modules/stdio/stdio.c +++ b/modules/stdio/stdio.c @@ -72,7 +72,7 @@ static void timeout(void *arg) struct ui_st *st = arg; /* Emulate key-release */ - report_key(st, 0x00); + report_key(st, KEYCODE_REL); } diff --git a/modules/wincons/wincons.c b/modules/wincons/wincons.c index 5ac63f9..b54b7f0 100644 --- a/modules/wincons/wincons.c +++ b/modules/wincons/wincons.c @@ -72,7 +72,7 @@ static void timeout(void *arg) struct ui_st *st = arg; /* Emulate key-release */ - report_key(st, 0x00); + report_key(st, KEYCODE_REL); } |