You know the up and down arrows do generate page up (vchrPageUp = $B) and page down
(vchrPageDown = $C) events.
They even generate multiple key downs to tell you the user is still holding the arrows.
Not that KeyCurrentState() won't work, but I have found that some bad things can
happen if you rely solely on key state.
I do a hybrid approach - use events to determine key presses, and then, if needed, use
KeyCurrentState to detect a hard key release.
Bruno Galvão wrote:
> I´ll take a look at KeyCurrentState() function ...
> I think it´ll work ...
>
> Thanks...
>
> _____________________
> Bruno Galvão
> Rio de Janeiro - RJ - Brazil
> [EMAIL PROTECTED]
> _____________________
>
> > > Hi,
> > > anyone could tell me what should I do to detect that the user pressed
> the
> > > scroll up/down device button through keyDownEvent ?!
> > >
> > > The docummentation is not clear.
> > >
> > > Or is there a better way to do this?
> >
> > check out the cube3D/burning sources.. in the help screen event handler
> > i believe some code is there to do this..
> >
> > www.ardiri.com
> >
> > cheers
> >
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/