1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-14 15:09:42 +01:00

Ignore Android's back button when disabling touch

Touch input automatically "disables" when you press a key on your
keyboard. The back button on Android counts as a key press, so let's
just ignore it.
This commit is contained in:
NyakoFox 2024-04-02 18:49:28 -03:00
parent 23fc220903
commit 2943c2fbe1

View file

@ -598,7 +598,11 @@ void KeyPoll::Poll(void)
switch (evt.type)
{
case SDL_KEYDOWN:
using_touch = false;
if (evt.key.keysym.sym != SDLK_AC_BACK)
{
// If we hit the back button on Android, this doesn't mean we're not using touch
using_touch = false;
}
if (evt.key.repeat == 0)
{
hidemouse = true;