diff --git a/core/src/avm2/globals/flash/events/GameInputEvent.as b/core/src/avm2/globals/flash/events/GameInputEvent.as new file mode 100644 index 000000000000..a712d743bb51 --- /dev/null +++ b/core/src/avm2/globals/flash/events/GameInputEvent.as @@ -0,0 +1,7 @@ +package flash.events { + public final class GameInputEvent extends Event { + public static const DEVICE_ADDED:String = "deviceAdded"; + public static const DEVICE_REMOVED:String = "deviceRemoved"; + public static const DEVICE_UNUSABLE:String = "deviceUnusable"; + } +} \ No newline at end of file diff --git a/core/src/avm2/globals/flash/ui/GameInput.as b/core/src/avm2/globals/flash/ui/GameInput.as new file mode 100644 index 000000000000..f6bb5b5880e1 --- /dev/null +++ b/core/src/avm2/globals/flash/ui/GameInput.as @@ -0,0 +1,13 @@ +package flash.ui { + import flash.events.EventDispatcher; + + public final class GameInput extends EventDispatcher { + public static function get isSupported():Boolean { + return false; + } + + public static function get numDevices():int { + return 0; + } + } +} \ No newline at end of file diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index cd459eae891a..81e76af7cac1 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -79,6 +79,7 @@ include "flash/events/DRMReturnVoucherCompleteEvent.as" include "flash/events/DRMReturnVoucherErrorEvent.as" include "flash/events/FocusEvent.as" include "flash/events/FullScreenEvent.as" +include "flash/events/GameInputEvent.as" include "flash/events/HTTPStatusEvent.as" include "flash/events/IOErrorEvent.as" include "flash/events/KeyboardEvent.as" @@ -170,6 +171,7 @@ include "flash/text/TextLineMetrics.as" include "flash/ui/ContextMenu.as" include "flash/ui/ContextMenuBuiltInItems.as" include "flash/ui/ContextMenuItem.as" +include "flash/ui/GameInput.as" include "flash/ui/KeyLocation.as" include "flash/ui/KeyboardType.as" include "flash/ui/MouseCursor.as"