Page 1 of 1

StringGadget3d

Posted: Fri Oct 08, 2010 11:02 pm
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?

Re: StringGadget3d

Posted: Sat Oct 09, 2010 5:52 pm
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

Re: StringGadget3d

Posted: Sat Oct 09, 2010 7:32 pm
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.

Re: StringGadget3d

Posted: Sat Oct 09, 2010 7:39 pm
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!)