qemu-e2k/include
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
..
authz
block blockjob: query driver-specific info via a new 'query' driver method 2023-10-31 18:20:29 +01:00
chardev
crypto
disas
exec tcg: Drop unused tcg_temp_free define 2023-10-23 14:45:46 -07:00
fpu
gdbstub
hw hw/input/stellaris_gamepad: Convert to qemu_input_handler_register() 2023-11-02 12:52:06 +00:00
io
libdecnumber
migration migration: rename vmstate_save_needed->vmstate_section_needed 2023-10-30 17:44:03 +01:00
monitor
net
qapi
qemu util/defer-call: move defer_call() to util/ 2023-10-31 15:41:42 +01:00
qom
scsi
semihosting
standard-headers
sysemu util/defer-call: move defer_call() to util/ 2023-10-31 15:41:42 +01:00
tcg tcg: Export tcg_gen_ext_{i32,i64,tl} 2023-10-22 16:32:28 -07:00
ui
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h