DudeCooper
18-01-2009 20:54:04
sorry, the last post ended up going off topic because i messed up something in the process..... anywho....
i want to make OIS dissapear and use my SDL input but i have come across a problem when trying to inject keys.
thank you
i want to make OIS dissapear and use my SDL input but i have come across a problem when trying to inject keys.
mGUI->injectMouseMove(MouseXpos,MouseYpos,0);
works fine but when it comes down to pressing a button on the keyboard or mouse i become stuck. mGUI->injectMousePress(arg, id);
is how it is done using OIS but with SDL.... no idea. the alternative parameters for this function expect a xpos,ypos and a MyGUI::MouseButton id. for the last parameter all i can pass though is a SDL event type SDL_BUTTON_RIGHT or SDL_BUTTON_LEFT. would you have to do something like this.
if(SDL_BUTTON_LEFT)
{
MyGUI::mouseButtonid id = something
mGUI->InjectMousePress(getXPos,getYPos,id)
}
and then do the same for right...thank you