aboutsummaryrefslogtreecommitdiffstats
path: root/hw/goldfish_events_device.c
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:44 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:44 -0700
commit9877e2e3e3c2df64de306b48f80a4f5d0b028d95 (patch)
tree8a31dd7a07d55c182e7f572379a601ef545c1d29 /hw/goldfish_events_device.c
parentb3ee93a038ab992ffdda9f232befdea6ea713b24 (diff)
downloadexternal_qemu-9877e2e3e3c2df64de306b48f80a4f5d0b028d95.zip
external_qemu-9877e2e3e3c2df64de306b48f80a4f5d0b028d95.tar.gz
external_qemu-9877e2e3e3c2df64de306b48f80a4f5d0b028d95.tar.bz2
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'hw/goldfish_events_device.c')
-rw-r--r--hw/goldfish_events_device.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/hw/goldfish_events_device.c b/hw/goldfish_events_device.c
index 2796b3f..32e6798 100644
--- a/hw/goldfish_events_device.c
+++ b/hw/goldfish_events_device.c
@@ -367,22 +367,10 @@ void events_dev_init(uint32_t base, qemu_irq irq)
* was closed or opened (done when we switch layouts through
* KP-7 or KP-9).
*
- * Ideally, we would want to only support this when there is
- * a real keyboard. However doing so will disable auto-rotate
- * when rotating the skin, because the system will only
- * consider orientation sensor events then, which are not
- * currently implemented/emulated.
- *
- * So force it anyway, and remove the "1 ||" later when
- * we properly implement sensor events (which unfortunately
- * requires system changes).
- *
- * Note that the system will switch to landscape properly but
- * is *not* capable of returning to portrait mode when we switch
- * back. Blame the framework for not interpreting switch events
- * symetrically.
+ * We only support this when there is a real keyboard, which
+ * we assume can be hidden/revealed.
*/
- if (1 || config->hw_keyboard) {
+ if (config->hw_keyboard) {
events_set_bit(s, EV_SYN, EV_SW);
events_set_bit(s, EV_SW, 0);
}