| 1641 | } |
| 1642 | |
| 1643 | void PiuView_onTouchEnded(xsMachine* the) |
| 1644 | { |
| 1645 | PiuView* self = PIU(View, xsThis); |
| 1646 | PiuApplication* application = (*self)->application; |
| 1647 | if (!application) return; |
| 1648 | xsIntegerValue index = xsToInteger(xsArg(0)); |
| 1649 | PiuCoordinate x = xsToPiuCoordinate(xsArg(1)); |
| 1650 | PiuCoordinate y = xsToPiuCoordinate(xsArg(2)); |
| 1651 | xsNumberValue ticks = xsToNumber(xsArg(3)); |
| 1652 | #if (90 == kPocoRotation) |
| 1653 | PiuCoordinate c = x; |
| 1654 | x = y; |
| 1655 | y = (*application)->coordinates.height - c; |
| 1656 | #elif (180 == kPocoRotation) |
| 1657 | x = (*application)->coordinates.width - x; |
| 1658 | y = (*application)->coordinates.height - y; |
| 1659 | #elif (270 == kPocoRotation) |
| 1660 | PiuCoordinate c = x; |
| 1661 | x = (*application)->coordinates.width - y; |
| 1662 | y = c; |
| 1663 | #endif |
| 1664 | (*self)->updating = 1; |
| 1665 | (*self)->idleTicks = (PiuTick)ticks; |
| 1666 | PiuApplicationTouchEnded(application, index, x, y, ticks); |
| 1667 | PiuApplicationAdjust(application); |
| 1668 | (*self)->updating = 0; |
| 1669 | PiuViewUpdate(self, application); |
| 1670 | PiuApplicationIdleCheck(application); |
| 1671 | (*self)->idleTicks = 0; |
| 1672 | } |
| 1673 | |
| 1674 | void PiuView_onTouchMoved(xsMachine* the) |
| 1675 | { |
nothing calls this directly
no test coverage detected