android: jni: button_manager: Fix circle pad on subsequent game launch.

- We were missing an UnregisterFactory call for AnalogDevice.
This commit is contained in:
bunnei 2019-07-20 15:30:59 -04:00
parent a64a3b9a0e
commit 2a47fb0768
2 changed files with 2 additions and 1 deletions

View File

@ -311,6 +311,7 @@ void Init() {
void Shutdown() {
Input::UnregisterFactory<Input::ButtonDevice>("gamepad");
Input::UnregisterFactory<Input::AnalogDevice>("gamepad");
button.reset();
analog.reset();
}

View File

@ -132,4 +132,4 @@ std::string GenerateButtonParamPackage(int type);
std::string GenerateAnalogButtonParamPackage(int axis, float axis_val);
std::string GenerateAnalogParamPackage(int type);
} // namespace InputManager
} // namespace InputManager