Page 1 of 1

Shift key displaying weird characters

Posted: 28 Oct 2014, 19:37
by noesis_user
Hi,

Whenever I press SHIFT key it displays weird characters in text box. I am mapping SDL for all the keys but pretty sure sending correct key value. Is there anything missing ?

Thanks.

Re: Shift key displaying weird characters

Posted: 29 Oct 2014, 17:40
by jsantos
There are two kind of keyboard events in the noesisGUI renderer interface:
  • KeyDown()/KeyUp() for physical keys. It corresponds to WM_KEYDOWN/WM_KEYUP messages in Windows.
  • Char() for translated character events. It corresponds to WM_CHAR messages in Windows.
The problem you are observing is probably because you are passing a physical key (shift) to the Char event. You shouldn't do that, I suppose that SDL has the two kinds of event available.