KeyPresses

Sage
Posts: 1,066
Joined: 2004.07
Post: #1
Why does SDLK_RSHIFT and SDLK_LSHIFT not give different results? For me, anyways, they both register no matter which shift I'm pressing.
Quote this message in a reply
Moderator
Posts: 365
Joined: 2002.04
Post: #2
You don't normally get different keycodes for the left and right modifier keys on the Mac. I believe there is a way of getting this information, but SDL doesn't use it. Also, some Mac keyboards are unable to return separate keycodes in any case, for hardware reasons.

Neil Carter
Nether - Mac games and comic art
Quote this message in a reply
Sage
Posts: 1,066
Joined: 2004.07
Post: #3
Ok. Just for verification sakes, SDLK_LMETA / SDLK_RMETA are the CMD keys, right?
Quote this message in a reply
Moderator
Posts: 365
Joined: 2002.04
Post: #4
I'm pretty sure they are. Try them. Wink

Neil Carter
Nether - Mac games and comic art
Quote this message in a reply
Post Reply