1
0

Fix TOUCH

This commit is contained in:
otya128
2016-12-11 20:44:07 +09:00
parent 77d7c4366e
commit 6b5bf35584
2 changed files with 18 additions and 10 deletions

View File

@@ -340,8 +340,16 @@ class BuiltinFunction
{
auto pos = p.touchPosition;
tm = pos.tm;
tchx = pos.x;
tchy = pos.y;
if (p.x.mode == PetitComputer.XMode.WIIU)
{
tchx = pos.display1X;
tchy = pos.display1Y;
}
else
{
tchx = pos.x;
tchy = pos.y;
}
}
static void TOUCH(PetitComputer p, int id, out int tm, out int tchx, out int tchy)
{