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) {
cache.clear (name + ":");
library.unload ();
library.eventCallback = null;
}
@@ -1140,6 +1141,13 @@ class AssetLibrary {
}
private function unload ():Void {
}
}

View File

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