gamepad_is_supported

Returns whether game pads are supported by the target platform.

Syntax:

gamepad_is_supported();


Returns: Boolean


Description

With this function you can find out whether the target platform supports game pads (returns true) or not (returns false).


Example:

global.GP = gamepad_is_supported();

The above code checks to see if a gamepad is supported and stores the return value in a global variable for future checks.


Back: GamePad Input
Next: gamepad_get_device_count
© Copyright YoYo Games Ltd. 2017 All Rights Reserved