INGAMEPORT

Synopsis
INGAMEPORT mask
Description

Reads the value (or resistance across) the game port channel specified by mask. The mask input must be either 1, 2, 4, or 8. If mask is 1, then INGAMEPORT reads the x-axis. If mask is 1, then INGAMEPORT reads the y-axis. You can read the button states using INPORT 513.

INGAMEPORT outputs -1 if nothing is connected to the game port.

Example

REPEAT 10000 [SHOW INGAMEPORT 1]

Now move the Joystick around.


SourceForge.net Logo