AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkJoystick Class

Static class for universal, platform independent, joystick input.

TAgkJoystick
Syntax
Pascal
TAgkJoystick = class;

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.

Copyright (c) 2012. All rights reserved.