@ -569,10 +569,10 @@ namespace MWInput
{
{
bool guiMode = false ;
bool guiMode = false ;
if ( id = = SDL_BUTTON_LEFT | | id = = SDL_BUTTON_RIGHT ) // MyGUI has no use for the se events
if ( id = = SDL_BUTTON_LEFT | | id = = SDL_BUTTON_RIGHT ) // MyGUI only uses these mou se events
{
{
MyGUI: : InputManager : : getInstance ( ) . injectMousePress ( mMouseX , mMouseY , sdlButtonToMyGUI ( id ) ) ;
guiMode = MWBase : : Environment : : get ( ) . getWindowManager ( ) - > isGuiMode ( ) ;
guiMode = guiMode & & MWBase : : Environment : : get ( ) . getWindowManager ( ) - > isGuiMode ( ) ;
guiMode = MyGUI: : InputManager : : getInstance ( ) . injectMousePress ( mMouseX , mMouseY , sdlButtonToMyGUI ( id ) ) & & guiMode ;
if ( MyGUI : : InputManager : : getInstance ( ) . getMouseFocusWidget ( ) ! = 0 )
if ( MyGUI : : InputManager : : getInstance ( ) . getMouseFocusWidget ( ) ! = 0 )
{
{
MyGUI : : Button * b = MyGUI : : InputManager : : getInstance ( ) . getMouseFocusWidget ( ) - > castType < MyGUI : : Button > ( false ) ;
MyGUI : : Button * b = MyGUI : : InputManager : : getInstance ( ) . getMouseFocusWidget ( ) - > castType < MyGUI : : Button > ( false ) ;
@ -596,8 +596,8 @@ namespace MWInput
{
{
mInputBinder - > mouseReleased ( arg , id ) ;
mInputBinder - > mouseReleased ( arg , id ) ;
} else {
} else {
bool guiMode = M yGUI: : InputManager : : getInstance ( ) . injectMouseRelease ( mMouseX , mMouseY , sdlButtonToMyGUI ( id ) ) ;
bool guiMode = M WBase: : Environment : : get ( ) . getWindowManager ( ) - > isGuiMode ( ) ;
guiMode = guiMode & & MWBase : : Environment : : get ( ) . getWindowManager ( ) - > isGuiMode ( ) ;
guiMode = MyGUI: : InputManager : : getInstance ( ) . injectMouseRelease ( mMouseX , mMouseY , sdlButtonToMyGUI ( id ) ) & & guiMode ;
if ( mInputBinder - > detectingBindingState ( ) ) return ; // don't allow same mouseup to bind as initiated bind
if ( mInputBinder - > detectingBindingState ( ) ) return ; // don't allow same mouseup to bind as initiated bind