Skip to content

Instantly share code, notes, and snippets.

Created May 28, 2013 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5660696 to your computer and use it in GitHub Desktop.
Save anonymous/5660696 to your computer and use it in GitHub Desktop.
CEGUI::GUIContext& guiContext = CEGUI::System::getSingleton().getDefaultGUIContext();
guiContext.injectMouseMove( arg.state.X.rel, arg.state.Y.rel );
if ( arg.state.Z.rel ) {
guiContext.injectMouseWheelChange( arg.state.Z.rel / 120.0f );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment