Do not highlight joystick when pressing physical key

This commit is contained in:
Sergii Pylypenko
2013-03-06 16:16:37 +02:00
parent f3c877b759
commit 8cfa012e5b
3 changed files with 3 additions and 3 deletions

View File

@@ -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
{