Page 1 of 1
Quick Question Concerning Input Injections
Posted: Sun Dec 11, 2005 21:31
by Viper
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.
Re: Quick Question Concerning Input Injections
Posted: Mon Dec 12, 2005 18:04
by lindquist
You must manually injectChar
Re: Quick Question Concerning Input Injections
Posted: Wed Dec 14, 2005 20:53
by Viper
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.