diff options
author | Javier <dev.git@javispedro.com> | 2024-07-07 18:54:43 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2024-07-07 18:54:43 +0200 |
commit | 347e5022e7f93abd1bddd361b843f7c63325904d (patch) | |
tree | 0e7f683129132b949abce8d5968df43423e9505c /mousmain.c | |
parent | 6b85171610e7ba1e0c06dd70037f02788ad3cd35 (diff) | |
download | vbados-347e5022e7f93abd1bddd361b843f7c63325904d.tar.gz vbados-347e5022e7f93abd1bddd361b843f7c63325904d.zip |
refactor int16 store keystroke with separate scancode/character args
Diffstat (limited to 'mousmain.c')
-rw-r--r-- | mousmain.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -79,12 +79,12 @@ static int set_wheel_key(LPTSRDATA data, const char *keyname) } if (keyname) { if (stricmp(keyname, "updn") == 0) { - data->wheel_up_key = 0x4800; - data->wheel_down_key = 0x5000; + data->wheel_up_key = 0x48; + data->wheel_down_key = 0x50; printf(_(1, 4, "Generate Up Arrow / Down Arrow key presses on wheel movement\n")); } else if (stricmp(keyname, "pageupdn") == 0) { - data->wheel_up_key = 0x4900; - data->wheel_down_key = 0x5100; + data->wheel_up_key = 0x49; + data->wheel_down_key = 0x51; printf(_(1, 5, "Generate PageUp / PageDown key presses on wheel movement\n")); } else { fprintf(stderr, _(3, 2, "Unknown key '%s'\n"), keyname); |