Delta Engine
»
Support
»
Input
»
TextBox / Upper and Lower Case Characters
Joined: 12/27/2013(UTC) Posts: 41 Location: Regensburg
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Hi there, say, is it just me, or is DeltaEngine.Scenes.Controls.TextBox showing upper case characters only? Actually, I have poked around in the DE source code, trying to change this by evaluating pressed shift keys. Did not really work, though. Has anyone fiddled with this before? My current working state of DE's (1.0) WindowsKeyboard.cs and Keyboard.cs attached - lower case characters are shown now, but I can't get that shift key detection to work, somehow... Thanks File Attachment(s):  Desktop.zip (3kb) downloaded 0 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Joined: 12/27/2013(UTC) Posts: 41 Location: Regensburg
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Ah, think I got it now. Seems the conversion of windows special keys to DE key codes is not fully implemented yet. E.g. SHIFT keys come in as 16d (0x10) from windows, while DE defines Shift(157d), LeftShift(160d), RightShift(161d). The current conversion in WindowsKeyboard.cs is only making a 1:1 copy, tho (see HandleProcMessage()). The attached files are now changed so that right or left shift key is considered for regular keys (ASCII 0x41..0x5A). For overall consideration, it would need some other mapping, I reckon. So, this is merely a "case study" for those interested... File Attachment(s):  WindowsKeyboard.cs.txt (4kb) downloaded 4 time(s). Keyboard.cs.txt (4kb) downloaded 2 time(s).Michael Koch attached the following image(s):  Image1.png (4kb) downloaded 6 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Thanks for the fix. I guess people have not used it this far yet. One sample game that used a text box only used a font with big letters, so that is probably the reason no one noticed. Have not used TextBox myself yet ..
Fix will be integrated into the next nightly release.
|
|
|
|
Delta Engine
»
Support
»
Input
»
TextBox / Upper and Lower Case Characters
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.