Merge branch 'master' of https://github.com/openfl/lime into wiimote
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user