Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Michael Koch  
#1 Posted : Friday, January 10, 2014 11:51:18 PM(UTC)
Michael Koch

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.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Michael Koch  
#2 Posted : Saturday, January 11, 2014 4:44:38 PM(UTC)
Michael Koch

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...Blushing
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.
Offline Benjamin  
#3 Posted : Saturday, January 11, 2014 8:41:28 PM(UTC)
Benjamin

Medals: Admin

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.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.046 seconds.