From: Holger Schemel Date: Sun, 9 Aug 2020 23:14:31 +0000 (+0200) Subject: added disabling overlay touch buttons when using joystick X-Git-Tag: 4.2.0.0~3 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7cfc77935b7cf9395cde8e1bce6c3024143121e7;p=rocksndiamonds.git added disabling overlay touch buttons when using joystick --- 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: