mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
input-legacy: remove kbd_put_keycode
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
c43ce5512f
commit
faecd955ce
@ -46,7 +46,6 @@ void qemu_activate_mouse_event_handler(QEMUPutMouseEntry *entry);
|
||||
QEMUPutLEDEntry *qemu_add_led_event_handler(QEMUPutLEDEvent *func, void *opaque);
|
||||
void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
|
||||
|
||||
void kbd_put_keycode(int keycode);
|
||||
void kbd_put_ledstate(int ledstate);
|
||||
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
|
||||
|
||||
|
@ -500,29 +500,6 @@ void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry)
|
||||
g_free(entry);
|
||||
}
|
||||
|
||||
void kbd_put_keycode(int keycode)
|
||||
{
|
||||
static bool emul0;
|
||||
bool up;
|
||||
|
||||
if (keycode == SCANCODE_EMUL0) {
|
||||
emul0 = true;
|
||||
return;
|
||||
}
|
||||
if (keycode & SCANCODE_UP) {
|
||||
keycode &= ~SCANCODE_UP;
|
||||
up = true;
|
||||
} else {
|
||||
up = false;
|
||||
}
|
||||
if (emul0) {
|
||||
keycode |= SCANCODE_GREY;
|
||||
emul0 = false;
|
||||
}
|
||||
|
||||
qemu_input_event_send_key_number(NULL, keycode, !up);
|
||||
}
|
||||
|
||||
void kbd_put_ledstate(int ledstate)
|
||||
{
|
||||
QEMUPutLEDEntry *cursor;
|
||||
|
Loading…
Reference in New Issue
Block a user