diff options
author | David 'Digit' Turner <digit@android.com> | 2011-02-10 17:40:04 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-02-10 18:39:33 +0100 |
commit | 59e8e1969c6543cc9375b1a4372ef2e3e8afa183 (patch) | |
tree | 6f58c0180400fd423d0088f43da7f221d03f0e93 /hw | |
parent | 5377c5bfde6ba62490417bb0a7d7c1be1151692e (diff) | |
download | external_qemu-59e8e1969c6543cc9375b1a4372ef2e3e8afa183.zip external_qemu-59e8e1969c6543cc9375b1a4372ef2e3e8afa183.tar.gz external_qemu-59e8e1969c6543cc9375b1a4372ef2e3e8afa183.tar.bz2 |
Add hw.keyboard.lid
This is used to control the lid switch virtual device.
+ Add support for a "version <number>" field to the skin format.
This will later be used for skin format #3.
+ Fix a bug where string hw properties didn't work/compile
Change-Id: I678a0988d2cd24169dd0c2ece96e7ab0b2822104
Diffstat (limited to 'hw')
-rw-r--r-- | hw/goldfish_events_device.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/goldfish_events_device.c b/hw/goldfish_events_device.c index f9775bf..340dc76 100644 --- a/hw/goldfish_events_device.c +++ b/hw/goldfish_events_device.c @@ -458,10 +458,9 @@ 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). * - * We only support this when there is a real keyboard, which - * we assume can be hidden/revealed. + * We only support this when hw.keyboard.lid is true. */ - if (config->hw_keyboard) { + if (config->hw_keyboard && config->hw_keyboard_lid) { events_set_bit(s, EV_SYN, EV_SW); events_set_bit(s, EV_SW, 0); } |