Procházet zdrojové kódy

Reverted setting the focus on SDL touch events, as it caused mouse and touch to 'fight' over UI elements on OS X.

Lasse Öörni před 13 roky
rodič
revize
ad174b967d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      ThirdParty/SDL/src/events/SDL_touch.c

+ 1 - 1
ThirdParty/SDL/src/events/SDL_touch.c

@@ -127,7 +127,7 @@ SDL_AddTouch(const SDL_Touch * touch, char *name)
     /* we're setting the touch properties */
     length = 0;
     length = SDL_strlen(name);
-    SDL_touchPads[index]->focus = SDL_GetFocusWindow();
+    SDL_touchPads[index]->focus = 0;
     SDL_touchPads[index]->name = SDL_malloc((length + 2) * sizeof(char));
     SDL_strlcpy(SDL_touchPads[index]->name, name, length + 1);