Re: [PATCH 6/6] hw/input/stellaris_gamepad: Convert to qemu_input_handler_register()

2023-10-19 Thread Philippe Mathieu-Daudé
Hi Peter, On 17/10/23 14:23, Peter Maydell wrote: 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 us

Re: [PATCH 6/6] hw/input/stellaris_gamepad: Convert to qemu_input_handler_register()

2023-10-17 Thread Philippe Mathieu-Daudé
On 17/10/23 14:23, Peter Maydell wrote: 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_in

[PATCH 6/6] hw/input/stellaris_gamepad: Convert to qemu_input_handler_register()

2023-10-17 Thread Peter Maydell
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