Just a quick question concerning input injections. Does CEGUI convert a KeyDown and a KeyPressed into a Char or do I have to do this on my own? I'm just wondering because I'm trying to convert DX codes to CEGUI codes, and InjectKeyDown/InjectKeyUp don't work, but InjectChar does and I want to make sure that I'm doing everything right.
Thanks.
Quick Question Concerning Input Injections
Moderators: CEGUI MVP, CEGUI Team
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Quick Question Concerning Input Injections
You must manually injectChar
Re: Quick Question Concerning Input Injections
Then is this perhaps something that is better done within the Windows message pump? After all, to do the message pump correctly, you need to use TranslateMessage to convert any KeyDown/KeyUp pairs into KeyPressed as an ASCII value.
Also, if KeyDown/KeyUp doesn't really work, then what exactly is the point of them? Perhaps for keys that have no ASCII equivalent, such as ESC and control keys like shift?
Sorry for all of the questions, but I'm just trying to get my mind around the whole CEGUI system.
Also, if KeyDown/KeyUp doesn't really work, then what exactly is the point of them? Perhaps for keys that have no ASCII equivalent, such as ESC and control keys like shift?
Sorry for all of the questions, but I'm just trying to get my mind around the whole CEGUI system.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 1 guest