 |
Touch Test
Automatic touch screen detection. This code uses mico8's mouse input functions to discern the type of input being given. If the mouse moves with the button not pressed, it is a physical mouse, not a touch screen, therefore a cursor must be drawn. If not, no cursor is needed and the mouse coords need to be placed offscreen when not touched. This has a variably sensitivty factor, because rapid multitouch inputs can trick it into thinking there is a mouse on a touchscreen.
Try it out!
|