StringGadget3d

Advanced game related topics
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

StringGadget3d

Post by Foz »

okay, I may be doing something wrong or it's by design... or it's a bug.

Adding a StringGadget3d to the Gadget3d demo, I can type but not delete what I have typed using either the backspace or the del key.

Is there more I need to add? Do I need to handle backspace/delete manually?
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: StringGadget3d

Post by PMV »

Possible, that the CEGUI-Version used by PB v4.51 is not compatible
with the returnvalue of KeyboardInkey(). Because i do not need this,
i doesn't have tested this much. You will need to search the CEGUI-Help
on the CEGUI-Website to find out, what CEGUI needs for input. :)

MFG PMV
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: StringGadget3d

Post by Comtois »

Code: Select all

InputEvent3D(MouseX(), MouseY(), MouseButton(#PB_MouseButton_Left), KeyboardInkey())
It doesn't handle the backspace and such, so you will have to handle it manually.
Please correct my english
http://purebasic.developpez.com/
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: StringGadget3d

Post by Foz »

Hmmm... Fred? Freak? According the the CEGUI docs, the injectors are expecting the keyboard scan codes for key down and key up... something that I don't have on hand.

Is there some api magic that can be conjured to make this work? (windows only is fine for now!)
Post Reply