Keysym.sym vs keysym.mod in win2000

Everywhere I read I am told to extract which key was pressed by grabbing the
value from the event.key.keysym.sym variable. However under windows
2000 (also using borland builder 5), this never worked for me. Just for fun
I tried the value from event.key.keysym.mod and sure enough it worked
like a charm - returning the actual SDLKey that was pressed rather than a
modifier. Im sort of confused about this reversal…Not sure about
performance under other OSes.

Any ideas?

Info:
Using SDL-1.2.3

Things work great for me on MacOS 8-9 and MacOS X.On Thursday, November 29, 2001, at 04:33 PM, Luke Ulrich wrote:

Everywhere I read I am told to extract which key was pressed by
grabbing the
value from the event.key.keysym.sym variable. However under windows
2000 (also using borland builder 5), this never worked for me. Just for
fun
I tried the value from event.key.keysym.mod and sure enough it worked
like a charm - returning the actual SDLKey that was pressed rather
than a
modifier. Im sort of confused about this reversal…Not sure about
performance under other OSes.

Any ideas?

Info:
Using SDL-1.2.3


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Everywhere I read I am told to extract which key was pressed by grabbing the
value from the event.key.keysym.sym variable. However under windows
2000 (also using borland builder 5), this never worked for me. Just for fun
I tried the value from event.key.keysym.mod and sure enough it worked
like a charm - returning the actual SDLKey that was pressed rather than a
modifier. Im sort of confused about this reversal…Not sure about
performance under other OSes.

Any ideas?

Make sure your compiler is set to treat enums as ints.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment