qemu-e2k/include/hw/input
Peter Maydell 7c76f397fd hw/input/stellaris_gamepad: Convert to qemu_input_handler_register()
Now that we have converted to qdev, we can use the newer
qemu_input_handler_register() API rather than the legacy
qemu_add_kbd_event_handler().

Since we only have one user, take the opportunity to convert
from scancodes to QCodes, rather than using
qemu_input_key_value_to_scancode() (which adds an 0xe0
prefix and encodes up/down indication in the scancode,
which our old handler function then had to reverse). That
lets us drop the old state field which was tracking whether
we were halfway through a two-byte scancode.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231030114802.3671871-7-peter.maydell@linaro.org
2023-11-02 12:52:06 +00:00
..
adb-keys.h
adb.h
hid.h
i8042.h pckbd: remove legacy i8042_mm_init() function 2022-07-18 19:28:46 +01:00
lasips2.h lasips2: don't use legacy ps2_mouse_init() function 2022-07-18 19:28:46 +01:00
lm832x.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
pl050.h hw/input: Clean up includes 2023-02-08 07:16:23 +01:00
ps2.h hw/input/ps2.c: Convert TYPE_PS2_{KBD, MOUSE}_DEVICE to 3-phase reset 2022-12-16 15:56:24 +00:00
stellaris_gamepad.h hw/input/stellaris_gamepad: Convert to qemu_input_handler_register() 2023-11-02 12:52:06 +00:00
tsc2xxx.h hw/input/tsc2xxx: Constify set_transform()'s MouseTransformInfo arg 2023-01-05 14:11:15 +00:00