GetJoystickY

Description

The AGK joystick is an emulated input method that uses whatever device inputs are available to produce a joystick style input in the range -1 to 1. If a physical joystick is attached to the system then that will be used, otherwise if a full sized keyboard is found the keys W,A,S,D will be used as the four directions for the joystick. If neither of these exist then a virtual joystick will be created on screen that can be controlled with either a touch screen or mouse. The virtual joystick used will be index 1, if it already exists its values will be fed into this emulated joystick command. You may position this virtual joystick at a position of your choice on screen using SetJoystickScreenPosition. Every platform is guaranteed to have a method of generating an AGK joystick Y value.

Definition

float GetJoystickY()