mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
N810 keyboard slide open by default, add more comments.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4491 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c30bb26499
commit
0941041e37
2 changed files with 33 additions and 4 deletions
12
hw/tsc2005.c
12
hw/tsc2005.c
|
@ -197,10 +197,14 @@ static void tsc2005_write(struct tsc2005_state_s *s, int reg, uint16_t data)
|
|||
|
||||
case 0xc: /* CFR0 */
|
||||
s->host_mode = data >> 15;
|
||||
s->enabled = !(data & 0x4000);
|
||||
if (s->busy && !s->enabled)
|
||||
qemu_del_timer(s->timer);
|
||||
s->busy &= s->enabled;
|
||||
if (s->enabled != !(data & 0x4000)) {
|
||||
s->enabled = !(data & 0x4000);
|
||||
fprintf(stderr, "%s: touchscreen sense %sabled\n",
|
||||
__FUNCTION__, s->enabled ? "en" : "dis");
|
||||
if (s->busy && !s->enabled)
|
||||
qemu_del_timer(s->timer);
|
||||
s->busy &= s->enabled;
|
||||
}
|
||||
s->nextprecision = (data >> 13) & 1;
|
||||
s->timing[0] = data & 0x1fff;
|
||||
if ((s->timing[0] >> 11) == 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue