VirtualButtonSize

Family: Input · 2 forms

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

NameTypeIn forms
indexintegerall
sizefloat1
sizeXfloat2
sizeYfloat2

Every form returns

nothing

Example · generated

Form 1, the short one

VirtualButtonSize(1, 1.0)DO  Sync()LOOP

Form 2, with every argument

VirtualButtonSize(1, 1.0, 1.0)DO  Sync()LOOP

VirtualButtonSize 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.

95 commands in Input