API | Constants

Constants used by the Perlenspiel engine.

 

Generic arguments

These constants can be passed as arguments into many function calls.

 

Return values

Returned by various function calls.

 

Colors

Can be used anywhere an RGB triplet value is passed or returned.

 

Key codes

Arrow, keypad and function key codes for PS.keyDown() and PS.keyUp() events.

 

Input events

Constants associated with PS.input() events.

.wheel (scroll wheel activity)

.gamepad (gamepad activity)

Event identifiers for .gamepad.type:

Button identifiers used in .gamepad.data.buttons arrays:

Stick/axis identifiers used in .gamepad.data.sticks arrays:

 

Sprites

Collision codes for PS.spriteCollide().