Misc sanity checks

This commit is contained in:
Henrik Rydgård
2025-06-14 08:45:02 +02:00
parent aea6df0ca4
commit 70f1edb28f
8 changed files with 37 additions and 18 deletions
+4 -1
View File
@@ -160,7 +160,10 @@ void ControlMapper::SetCallbacks(
}
void ControlMapper::SetPSPAxis(int device, int stick, char axis, float value) {
int axisId = axis == 'X' ? 0 : 1;
const int axisId = axis == 'X' ? 0 : 1;
if (stick != 0 && stick != 1) {
return;
}
float position[2];
position[0] = history_[stick][0];