iOS Support (#113)

undefined
This commit is contained in:
Brent
2024-01-22 09:22:41 -06:00
committed by GitHub
parent 90a15340b1
commit afe875e4fa
109 changed files with 6523 additions and 1105 deletions

View File

@@ -50,14 +50,14 @@ void Multitouch::feed(MouseButtonType a1, bool a2, int a3, int a4, int fingerId)
MouseDevice* pDevice = g(fingerId);
pDevice->feed(a1, a2, a3, a4);
if (a1)
if (a1 != BUTTON_NONE)
{
if (a2)
{
_wasPressed[fingerId] = true;
_wasPressedThisUpdate[fingerId] = true;
}
else if (a2 == 0)
else
{
_wasReleased[fingerId] = true;
_wasReleasedThisUpdate[fingerId] = true;