From 3d2300cb2f8f575d9e0c553c88790b5d79dda1b6 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Tue, 12 May 2009 17:53:24 +0200 Subject: Allow search key (F5) to work on keyboard-less configurations --- hw/goldfish_events_device.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/goldfish_events_device.c') diff --git a/hw/goldfish_events_device.c b/hw/goldfish_events_device.c index 32e6798..6f7e41b 100644 --- a/hw/goldfish_events_device.c +++ b/hw/goldfish_events_device.c @@ -289,6 +289,9 @@ void events_dev_init(uint32_t base, qemu_irq irq) * Note that previous models also had a KEY_SOFT2, * and a KEY_POWER which we still support here. * + * Newer models have a KEY_SEARCH key, which we always + * enable here. + * * A Dpad will send: KEY_DOWN / UP / LEFT / RIGHT / CENTER * * The KEY_CAMERA button isn't very useful if there is no camera. @@ -307,6 +310,7 @@ void events_dev_init(uint32_t base, qemu_irq irq) events_set_bit(s, EV_KEY, KEY_VOLUMEDOWN); events_set_bit(s, EV_KEY, KEY_SOFT2); events_set_bit(s, EV_KEY, KEY_POWER); + events_set_bit(s, EV_KEY, KEY_SEARCH); if (config->hw_dPad) { events_set_bit(s, EV_KEY, KEY_DOWN); -- cgit v1.1