Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

touch()

Purpose

Read input from the touch screen

Description

Read the cooridinates of up to ten points on the touch screen that have been touched

Syntax

list = touch( )

Arguments

list An array of up to 10 points that are currently being touched

Example

list = []
loop
    clear()
    printAt( 0, 0, "Touch the screen" )
    list = touch()
    count = len( list )
    if count > 0 then
        printAt( 0, 1, "count = ", count, " x0 = ", list[0].x, " y0 = ", list[0].y )
        for i = 0 to count loop     
            circle( list[i].x, list[i].y, 75, 100, red, 0 )      
        repeat
    endIf
    update()
repeat 

Associated Commands

input(), controls(), docked(), getKeyboardBuffer(), showKeyboard(), touch(), hideKeyboard()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.