Joystick input: Ignore in-deadzone events from a different device than previous events

Fixes #15465
This commit is contained in:
Henrik Rydgård
2022-11-23 12:22:59 +01:00
parent f4c88e0f80
commit 5230fc7c41
7 changed files with 99 additions and 71 deletions
+1
View File
@@ -583,6 +583,7 @@ void JoystickHistoryView::Update() {
AnalogSetupScreen::AnalogSetupScreen() {
mapper_.SetCallbacks([](int vkey) {}, [](int vkey) {}, [&](int stick, float x, float y) {
NOTICE_LOG(COMMON, "analog value from mapper: %f %f", x, y);
analogX_[stick] = x;
analogY_[stick] = y;
});