Page 1 of 1

Touches

Posted: Fri Oct 11, 2013 6:20 am
by Mr. Kibernetik
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.