import GameInputDevice from "../ui/GameInputDevice"; import Event from "./Event"; declare namespace openfl.events { /** * The GameInputEvent class represents an event that is dispatched when a game input device has either been added or removed from the application platform. A game input device also dispatches events when it is turned on or off. * */ export class GameInputEvent extends Event { constructor(type: string, bubbles?: boolean, cancelable?: boolean, device?: GameInputDevice); /** * Indicates that a compatible device has been connected or turned on. * */ static readonly DEVICE_ADDED = "deviceAdded"; /** * Indicates that one of the enumerated devices has been disconnected or turned off. * */ static readonly DEVICE_REMOVED = "deviceRemoved"; /** * Dispatched when a game input device is connected but is not usable. * */ static readonly DEVICE_UNUSABLE = "deviceUnusable"; /** * Returns a reference to the device that was added or removed. When a device is added, use this property to get a reference to the new device, instead of enumerating all of the devices to find the new one. * */ device: GameInputDevice; override clone(): GameInputEvent; override toString(): string; } } export default openfl.events.GameInputEvent;