Permalink
Browse files

Do not highlight joystick when pressing physical key

  • Loading branch information...
1 parent f3c877b commit 8cfa012e5b8d3fcab9f892df8a9604c966ebdb82 @pelya committed Mar 6, 2013
@@ -225,7 +225,7 @@ static void drawTouchscreenKeyboardLegacy()
( SDL_GetKeyboardState(NULL)[SDL_KEY(RIGHT)] ? 1 : 0 ) +
( SDL_GetKeyboardState(NULL)[SDL_KEY(UP)] ? 1 : 0 ) +
( SDL_GetKeyboardState(NULL)[SDL_KEY(DOWN)] ? 1 : 0 );
- if( blendFactor == 0 )
+ if( blendFactor == 0 || SDL_ANDROID_isJoystickUsed )
drawCharTex( &arrowImages[0], NULL, &arrowsDraw, 1.0f, 1.0f, 1.0f, transparency );
else
{

0 comments on commit 8cfa012

Please sign in to comment.