Key combinations

hello! i know this must be posted b4 but since im new
to list, here comes: how do i do key combinations
using the chars from keyboard, instead of mod keys…i
do know how to do then using mod keys but the same
thing doesnt work for char keys(like aswd)

thanks :D__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

Quoth razors , on 2005-01-17 03:41:47 -0800:

hello! i know this must be posted b4 but since im new
to list, here comes: how do i do key combinations
using the chars from keyboard, instead of mod keys…i
do know how to do then using mod keys but the same
thing doesnt work for char keys(like aswd)

(H’m, I didn’t notice your message in my mailbox before. Is your
machine’s date set correctly?)

You can use SDL_GetKeyState (the documentation for which see) to
determine which keys are currently pressed, which may be helpful. I’m
not sure that such things can be done at actual key-event time rather
than handling time, though; last I recall you just had to grab the key
state at handling time. Alternatively, you can keep track of the keys
yourself; if you receive << down A, down S, up A, up S >>, for instance,
then you know that in the middle A and S were held simultaneously,
whereas if you receive << down A, up A, down S, up S >>, the keys must
have been pressed strictly in sequence. (This is assuming no error is
introduced by the earlier input layers, of course.)

—> Drake Wilson
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050202/6096875b/attachment.pgp