InputDevice

Parent Userdata
Revision Release 2024.3703
Keywords device, input, key

Overview

An object of this type respresent one input device such as a keyboard, mouse, touchscreen, gamepad, etc. This object provides access to the input device's information and its current connection status.

An input device object is normally provided with a key event, which allows an application to identify which device the input event came from. This is important for multiplayer games, allowing an application to associate input devices with a particular players.

Properties

Methods

object:vibrate()