What it does
RawTouchValue takes iIndex (an integer), and answers an integer. That is the first of 2 forms.
Syntax
1
RawTouchValue(iIndex integer) → integer2
RawTouchValue(iIndex integer, value integer)Parameters
| Name | Type | In forms |
|---|---|---|
| iIndex | integer | all |
| value | integer | 2 |
What each form returns
| 1 | RawTouchValue(1) | integer |
| 2 | RawTouchValue(1, 1) | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(RawTouchValue(1)) Sync()LOOPForm 2, you choose the id yourself
RawTouchValue(1, 1)DO Sync()LOOPRawTouchValue is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.