android: jni: button_manager: Fix circle pad on subsequent game launch.
- We were missing an UnregisterFactory call for AnalogDevice.
This commit is contained in:
parent
a64a3b9a0e
commit
2a47fb0768
@ -311,6 +311,7 @@ void Init() {
|
||||
|
||||
void Shutdown() {
|
||||
Input::UnregisterFactory<Input::ButtonDevice>("gamepad");
|
||||
Input::UnregisterFactory<Input::AnalogDevice>("gamepad");
|
||||
button.reset();
|
||||
analog.reset();
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user