mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 02:19:45 +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:
parent
a80059ef40
commit
6f79f73033
1 changed files with 5 additions and 1 deletions
|
@ -618,7 +618,11 @@ void KeyPoll::Poll(void)
|
||||||
switch (evt.type)
|
switch (evt.type)
|
||||||
{
|
{
|
||||||
case SDL_KEYDOWN:
|
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)
|
if (evt.key.repeat == 0)
|
||||||
{
|
{
|
||||||
hidemouse = true;
|
hidemouse = true;
|
||||||
|
|
Loading…
Reference in a new issue