Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
34 user(s) are online (19 user(s) are browsing Forums)

Members: 2
Guests: 32

DJBase, derfs, more...

Headlines

 
  Register To Post

Simple question keyboard: keys up down
Not too shy to talk
Not too shy to talk


See User information
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


Go to top
Re: Simple question keyboard: keys up down
Home away from home
Home away from home


See User information
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.



Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project