From 347e5022e7f93abd1bddd361b843f7c63325904d Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Jul 2024 18:54:43 +0200 Subject: refactor int16 store keystroke with separate scancode/character args --- mousmain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mousmain.c') diff --git a/mousmain.c b/mousmain.c index e33b553..80ea1fb 100644 --- a/mousmain.c +++ b/mousmain.c @@ -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); -- cgit v1.2.3