AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawJoystick.Exists Property

Returns True if the current device has at least one physical joystick available as an input method. False if it has no physical joysticks.

Syntax
Pascal
class property Exists: Boolean;

If you find that the platform has no physical joysticks you can create virtual ones that appear on screen for use by touch screens or mice with TAgkVirtualJoystick. This function does not count virtual joysticks in its check. On some platforms joystick detection is run on a background thread that may not complete for some time after your app has started, to wait for the thread to complete use CompleteDetection to be sure that any connected joysticks have been found. 

See also HasJoystick to detect individual joysticks.

Copyright (c) 2012. All rights reserved.