What it does
VirtualButtonSize writes a value: it sets rather than reads. It takes index (an integer) and size (a float), and returns nothing. That is the first of 2 forms.
Syntax
1
VirtualButtonSize(index integer, size float)2
VirtualButtonSize(index integer, sizeX float, sizeY float)Parameters
| Name | Type | In forms |
|---|---|---|
| index | integer | all |
| size | float | 1 |
| sizeX | float | 2 |
| sizeY | float | 2 |
Every form returns
nothing
Example · generated
Form 1, the short one
VirtualButtonSize(1, 1.0)DO Sync()LOOPForm 2, with every argument
VirtualButtonSize(1, 1.0, 1.0)DO Sync()LOOPVirtualButtonSize is called with values of the types its signature asks for. 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.