package openfl.events {
import openfl.ui.GameInputDevice;
/**
 * 	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.
 * 
 * @externs
 */
public class GameInputEvent extends openfl.events.Event {
	public function GameInputEvent(type:String, bubbles:Boolean = undefined, cancelable:Boolean = undefined, device:openfl.ui.GameInputDevice = undefined) {
		super(undefined, undefined, undefined);
	}
	/**
	 * 		Indicates that a compatible device has been connected or turned on.
	 * 	
	 */
	public static const DEVICE_ADDED:String = "deviceAdded";
	/**
	 * 		Indicates that one of the enumerated devices has been disconnected or turned off.
	 * 	
	 */
	public static const DEVICE_REMOVED:String = "deviceRemoved";
	/**
	 * 		Dispatched when a game input device is connected but is not usable.
	 * 	
	 */
	public static const DEVICE_UNUSABLE:String = "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.
	 * 	
	 */
	public var device:openfl.ui.GameInputDevice;
	override public function clone():openfl.events.GameInputEvent { return null; }
	override public function toString():String { return null; }
}
}
