Home  
Login
Username:

Password:

Remember me



Lost Password?

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

Members: 1
Guests: 70

orgin, more...
Support us!
Recent OS4 Files
OS4Depot.net





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

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

But
"
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

Alain


   Report Go to top

Re: Simple question keyboard: keys up down
Just can't stay away
Joined:
2006/12/4 23:15
Posts: 1884
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