Merge branch 'master' of https://github.com/openfl/lime into wiimote

This commit is contained in:
Lars A. Doucet
2015-07-15 12:56:13 -05:00
2 changed files with 14 additions and 4 deletions

View File

@@ -935,6 +935,7 @@ class Assets {
if (library != null) { if (library != null) {
cache.clear (name + ":"); cache.clear (name + ":");
library.unload ();
library.eventCallback = null; library.eventCallback = null;
} }
@@ -1140,6 +1141,13 @@ class AssetLibrary {
} }
private function unload ():Void {
}
} }

View File

@@ -144,9 +144,11 @@ class NativeApplication {
case CONNECT: case CONNECT:
var gamepad = new Gamepad (gamepadEventInfo.id); if (!Gamepad.devices.exists(gamepadEventInfo.id)) {
Gamepad.devices.set (gamepadEventInfo.id, gamepad); var gamepad = new Gamepad (gamepadEventInfo.id);
parent.window.onGamepadConnect.dispatch (gamepad); Gamepad.devices.set (gamepadEventInfo.id, gamepad);
parent.window.onGamepadConnect.dispatch (gamepad);
}
case DISCONNECT: case DISCONNECT: