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