inputLast

function

inputLast()

Description

Returns the last input pressed of any type: keyboard, mouse, gamepad. Or undefined if no input is pressed.

Arguments

Name Type Description
gamepad_device None The gamepad to check (default: 0)

Returns

input/undefined

Example

inputLast(global.gamepads_connected[0]);


Copyright © 2021, Milan Varady. Built on June 28, 2021 using GMDoc.