mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
ui/input-linux: Use Linux key codes
QemuInputEvent now stores Linux key codes for key events. Use those codes directly instead of translating between internal key code representations. Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260520-input-v3-22-7c9e4c7abe34@rsg.ci.i.u-tokyo.ac.jp>
This commit is contained in:
committed by
Marc-André Lureau
parent
945c10d541
commit
065757f7c8
@@ -166,8 +166,7 @@ static void input_linux_handle_keyboard(InputLinux *il,
|
||||
|
||||
/* send event to guest when grab is active */
|
||||
if (il->grab_active && !input_linux_should_skip(il, event)) {
|
||||
int qcode = qemu_input_linux_to_qcode(event->code);
|
||||
qemu_input_event_send_key_qcode(NULL, qcode, event->value);
|
||||
qemu_input_event_send_key_linux(NULL, event->code, event->value);
|
||||
}
|
||||
|
||||
/* hotkey -> record switch request ... */
|
||||
|
||||
Reference in New Issue
Block a user