LOFI Blocks – Actions

When the key was pressed …

LOFI_Blocks_Actionspng (2)

A block that reproduces the instructions in its interior after pressing the indicated key.

Parameters:

  • The key – the keyboard key that calls the block execution.

The instruction sequence is executed only one, it is not looped.

Slider

slider

A block that returns a value from one of the sliders from the built-in gamepad.

Parameters:

  • Slider – number of the slider, 1 – upper slider, 2 – lower slider.

Button

LOFI_Blocks_Actionspng (3)

A block returning TRUE or FALSE. Depends on whether the indicated keyboard key is pressed.

Parameters:

  • Keyboard key – the keyboard key whose state we want to read.

Mouse

LOFI_Blocks_Actionspng (4)

Returns X and Y coordinate of mouse cursor OVER THE DRAWING BOARD.

Parameters:

  • Axis – X or Y.

Mouse button

LOFI_Blocks_Actionspng (5)

Returns TRUE or FALSE whether the left mouse button is pressed OVER THE DRAWING BOARD.

Pivot

Swing

A block returning the value read from a tablet or a smartphone accelerator. A value of 50 means the device is set horizontally.

Parameters:

  • Pivot axis – vertical or horizontal.

This block does not exist in the version for desktop computers.