EthanB
24-10-2010 17:27:17
Hi,
I'm having some trouble injecting inputs into the GUI from a Window Procedure, It seems to be only working when the GUI is not drawn. I've also tried by means of what the wiki says, but its very vague and I haven't gotten that to work either.
Example:
The same technique worked fine with CEGUI, so I know its not something i'm doing wrong...
Any help?
Thanks,
Ethan
I'm having some trouble injecting inputs into the GUI from a Window Procedure, It seems to be only working when the GUI is not drawn. I've also tried by means of what the wiki says, but its very vague and I haven't gotten that to work either.
Example:
case WM_MOUSEMOVE:
{
if ( gl_pmyGui->getInitialized() )
gl_pmyGui->getGui()->injectMouseMove( GET_X_LPARAM( lParam ), GET_Y_LPARAM( lParam ), 0 );
}
break;
The same technique worked fine with CEGUI, so I know its not something i'm doing wrong...
Any help?
Thanks,
Ethan