Remember me

Lost Password?

Register now!
Who's Online
71 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 71

Support us!
Recent OS4 Files

Simple question keyboard: keys up down
Just popping in
2011/6/3 12:49
Posts: 213

This a simple question...
But I dont achieve what I wanted and I am tired now....

This for a kind of game emulator (GMAP) :
I want to know what is the state of any key/each frame
For me they are 4 states for a key
u up
D down (hitted this frame)
d still pressed
U released up this frame

Also i want to know both the rawkey code and ascii code

so i need something like IDCMP_RAWKEY + IDCMP_VANILLAKEY

When both flags are set in the IDCMP, IDCMP_VANILLAKEY messages will be sent for keystrokes that directly map to a single ASCII value
Note that the IDCMP_RAWKEY events will only return the key down events when used with IDCMP_VANILLAKEY.

So no key up detection ?!?

Thanks for all


   Report Go to top

Re: Simple question keyboard: keys up down
Home away from home
2006/12/4 23:15
Posts: 2007
Just use IDCMP_RAWKEY by itself and MapRawKey() to get the ascii (strictly speaking ANSI) codes if you want both key up and key down data.

Blender For OS4.x : Blues : Walker Broad
   Report Go to top

[Advanced Search]

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project