in_KeyPressed() for Jupiter Ace

Requests for features
Post Reply
User avatar
RobertK
Well known member
Posts: 347
Joined: Mon Feb 26, 2018 12:58 pm

in_KeyPressed() for Jupiter Ace

Post by RobertK »

For two-player games (and some one-player games as well) it is always important to have a keyboard input method that allows two or more buttons to be pressed simultaneously.
On the ZX81 and the other Sinclair computers this can be achieved by using the in_KeyPressed() function, which returns the current state of a specific key.

From the in_KeyPressed() for non-Sinclair targets? thread:
dom wrote:We'd need to write alternate keyboard handlers for all the ports and there's not usually masses of information available on the ports and scancodes.

Having said that, I've just found: http://www.forums1.jupiter-ace.co.uk/pr ... dread.html for the Jupiter Ace which looks suspiciously Sinclair like and probably easy-ish to add as a result.
It would be nice to have something like in_KeyPressed() for the Jupiter Ace target.
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

When this came up I created https://github.com/z88dk/z88dk/issues/686 with the information I could gather.

Stefano has added two pseudo joysticks (on the number keys) so multiplayer would be supported at the moment, but no one has had time to create a complete keyboard scanning routine.
User avatar
RobertK
Well known member
Posts: 347
Joined: Mon Feb 26, 2018 12:58 pm

Post by RobertK »

Thanks! Just take your time, I will wait patiently...
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

I added the relevant parts from input.h for the Jupiter Ace this evening, so it will be available in the 20180518 nightly.
Post Reply