btn.md 594 B

LIKO-12 has got 2 players controllers, each with 7 buttons:

Gamepad


Default Controllers Keysmap:

  • Player 1: Left,Right,Up,Down, Z,X, C.
  • Player 2: S,F,E,D, Tab,Q, W.

Note: The keymap can be changed by the user via the keymap program.


Checks if a gamepad button is down.


Syntax:

bool = btn(id,p)

Arguments:

  • (Number): The button number to check, [1,7].
  • p (1): The player number, 1 or 2.

Returns:

  • bool (Boolean): True if the gamepad button is down, false if not.