From 7cfc77935b7cf9395cde8e1bce6c3024143121e7 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 10 Aug 2020 01:14:31 +0200 Subject: [PATCH] added disabling overlay touch buttons when using joystick --- src/libgame/sdl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 41af967e..93c6cd01 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -2557,6 +2557,9 @@ static void setJoystickButton(int nr, int button_id_raw, int button_state) void HandleJoystickEvent(Event *event) { + // when using joystick, disable overlay touch buttons + runtime.uses_touch_device = FALSE; + switch (event->type) { case SDL_CONTROLLERDEVICEADDED: -- 2.34.1