smarthaert / phoenixlib

Automatically exported from code.google.com/p/phoenixlib
0 stars 0 forks source link

TPHXEdit - Numbers problems #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can't type numbers using the Numeric Keyboard (I don't know the name of this 
in english, :P)...

I can only type numbers using the numbers above the letters on the keyboard, 
the numbers on the right (that needs numlock on) does not works.

Original issue reported on code.google.com by wagenhei...@gmail.com on 1 Feb 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Well... Nothing from Numeric Keyboard works!

4 on the numpad should have this values 
4 - NumLock On - 100
4 - NumLock Off - 37

But in Phoenix is always returns 260, apart of the numlock status.

Original comment by wagenhei...@gmail.com on 9 Feb 2011 at 10:52

GoogleCodeExporter commented 9 years ago
Maybe this is a fix?

"Just for future reference let me say that the solution for this is to use 
SdlEvent^.Key.KeySym.Unicode rather then SdlEvent^.Key.KeySym.Sym with 
Sdl_EnableUnicode(1) and then using chr() and ord() as required to get special 
characters, upper-case, lower-case and etc..."

Original comment by wagenhei...@gmail.com on 15 Mar 2011 at 6:17

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 8 Aug 2013 at 2:11