ignore mouse event switches

This commit is contained in:
niels
2012-04-22 11:17:38 +02:00
parent 528a649383
commit e3be86ee82

View File

@@ -1589,7 +1589,7 @@ static void veejay_event_handle(veejay_t *info)
mouse_y = event.button.y;
}
if( event.type == SDL_MOUSEBUTTONDOWN )
if( info->use_mouse && event.type == SDL_MOUSEBUTTONDOWN )
{
mouse_x = event.button.x;
mouse_y = event.button.y;
@@ -1623,7 +1623,7 @@ static void veejay_event_handle(veejay_t *info)
}
}
if( event.type == SDL_MOUSEBUTTONUP )
if( info->use_mouse && event.type == SDL_MOUSEBUTTONUP )
{
SDL_MouseButtonEvent *mev = &(event.button);
alt_pressed = (mod & KMOD_RSHIFT );