On Thursday 05 April 2007 16:09:09 Joe Wells wrote: > Joe Wells <[EMAIL PROTECTED]> writes: > > BUG: Typing "+" (on my keyboard this is "Shift" together with "=") > > doesn't work. I can only use the keypad "+". This is a bigger > > problem for me because my particular keyboard (which is on my portable > > computer) doesn't actually have a keypad and simulates one by using > > the num-lock key to temporarily turn many ordinary keys (7, 8, 9, 0, > > u, i, o, p, [, j, k, l, ;, m, ",", ., and /) into keypad keys. > > I now know why this is happening. The SDL key events glob2 gets for > “+” are: > > SDLK_LSHIFT (key down) (this could also be SDLK_RSHIFT) > SDLK_EQUALS (key down) > SDLK_EQUALS (key up) > SDLK_LSHIFT (key up) > > glob2 is expecting to get just SDLK_PLUS instead, so it ignores the > keys. > > I am guessing the main developers must use a keyboard where “+” is not > a shifted key. Am I right? > > I'm not sure what the correct solution is. I suppose there is some > SDL function that will translate the keys being pressed into the > correct ASCII symbol. > > Anyway, it would be nice if “=” did the same thing as “+” so I would > not have to press the shift key ...
Not really, but those things should be handled by SDL and we never hadenough motivation to workaround this in a generic way. It would be nice to see how others SDL based games are handling this. I agree that for the user, it should just work. Steph -- http://nct.ysagoon.com _______________________________________________ glob2-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/glob2-devel
