From: Holger Schemel Date: Tue, 14 Aug 2018 21:37:44 +0000 (+0200) Subject: fixed ignoring mouse actions with MM engine using virtual buttons X-Git-Tag: 4.1.1.0~82 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=5ef9148d1f605af02e872264519eda261a3e88ca fixed ignoring mouse actions with MM engine using virtual buttons As virtual buttons do not make much sense when playing games using the Mirror Magic game engine, mouse clicks should be handled as usual even when touch input is set to "virtual buttons" (causing mouse clicks to be ignored before this change). --- diff --git a/graphics/gfx_classic/RocksBusy.ilbm b/graphics/gfx_classic/RocksBusy.ilbm deleted file mode 100644 index a5cad7ee..00000000 Binary files a/graphics/gfx_classic/RocksBusy.ilbm and /dev/null differ diff --git a/src/events.c b/src/events.c index 12477eea..8e368b61 100644 --- a/src/events.c +++ b/src/events.c @@ -1370,6 +1370,8 @@ static void HandleButtonOrFinger(int mx, int my, int button) HandleButtonOrFinger_WipeGestures_MM(mx, my, button); else if (strEqual(setup.touch.control_type, TOUCH_CONTROL_FOLLOW_FINGER)) HandleButtonOrFinger_FollowFinger_MM(mx, my, button); + else if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS)) + SetPlayerMouseAction(mx, my, button); /* special case */ } else {