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 ...

-- 
Joe


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to