[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] plus key bug
From: |
Joe Wells |
Subject: |
Re: [glob2-devel] plus key bug |
Date: |
Thu, 05 Apr 2007 15:13:35 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Joe Wells <address@hidden> writes:
> Joe Wells <address@hidden> 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.
Or maybe Unicode symbol. I'm not sure how the SDL library works.
--
Joe
> Anyway, it would be nice if “=” did the same thing as “+” so I would
> not have to press the shift key ...
>
> --
> Joe