musicpal: Improve button handling (Jan Kiszka).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 17 May 2008 18:18:04 +0000 (18:18 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 17 May 2008 18:18:04 +0000 (18:18 +0000)
commitaa5a50753d1b952cc7ec4f9a864352a70416cc9f
tree9e507ec2d12d57fa66c415b832a4cac44ac781ba
parent1f2796254cc1c8e194875138dc8b1a1791edeae8
musicpal: Improve button handling (Jan Kiszka).

Looking at the hold-button-on-powerup thing, I came across some
improvable parts in the MusicPal's button handling. This patch allows
for repeated wheel events by keying the arrow keys pressed, corrects
some constant name, and introduces an explicitly maintained GPIO_ISR
state.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4476 c046a42c-6fe2-441c-8c8c-71466251a162
hw/musicpal.c