mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Misc sanity checks
This commit is contained in:
1 parent
aea6df0ca4
commit
70f1edb28f
8 files changed
+37
-18
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user