On PalmOS 3.1 and higher KeyCurrentState seems work faultlessly,
on previos models where such incorrect behaivour exists
I use DBall->portDData instead, it helps.
#define DBall ((HwrDBallPtr)(0xfffff000))
-----Original Message-----
From: Howard Tomlinson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 25 �������� 1999 �. 14:05
Subject: Simultanaeous Button Presses
>
> I've been writing arcade-type games for the palm, but I'm coming up
>against a problem I can't see a way round :
>
> In my shoot-em-up game, (Zap), when a direction key is held down (e.g.
>to fly left) the detection of the shooting key becomes intermittent, and
>likewise if the player repeatedly shoots, there is often a lag before
>the ship begins to move.
>
> I'm detecting which keys are currently being pressed using
>
> keyState = KeyCurrentState();
>
> In fact, I'm repeatedly measuring the key state, and storing which keys
>have been pressed since the last game update.
>
> There seems to be a problem with detecting more than one key at once -
>has anyone else come up against this problem and found a way around it,
>or is this really a limitation to the palm ?
>
>
> Howard Tomlinson
>--
> [EMAIL PROTECTED] / - Astraware - / Software for Win95
> Homepage: http://www.astraware.com/
>Fun game for Win95! http://www.astraware.com/bzzz.html
>
>