Touches
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Touches
smart BASIC supports 11 simultaneous touches. Each touch is tracked individually and does not depend on other touches, this means that one touch can be active while other touches can appear and disappear at the same time. To distinguish touches from each other they receive numbers from 0 to 10. Touch receives its number as soon as it appears and keeps this number while it is active. Assigned number is minimal from currently available numbers. There is command GET TOUCH and functions TOUCH_X() and TOUCH_Y() to get touch coordinates. If touch with specified number does not exist then returned coordinate value is -1. If touch with specified number is currently active then its actual coordinates are returned. Touches work only in graphics mode.