mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-08-26 22:23:12 -04: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:
parent
945c10d541
commit
065757f7c8
1 changed files with 1 additions and 2 deletions
|
|
@ -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 ... */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue