Quick Question Concerning Input Injections

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Viper
Just popping in
Just popping in
Posts: 16
Joined: Mon Aug 29, 2005 01:27
Location: US
Contact:

Quick Question Concerning Input Injections

Postby Viper » Sun Dec 11, 2005 21:31

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.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Quick Question Concerning Input Injections

Postby lindquist » Mon Dec 12, 2005 18:04

You must manually injectChar

User avatar
Viper
Just popping in
Just popping in
Posts: 16
Joined: Mon Aug 29, 2005 01:27
Location: US
Contact:

Re: Quick Question Concerning Input Injections

Postby Viper » Wed Dec 14, 2005 20:53

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.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests