Make reverse mapping lookup work for the simple PSP buttons.

This commit is contained in:
Henrik Rydgård committed 2023-03-31 11:05:29 +02:00
1 parent 2814668cf5
commit 38f4cc4cc9
12 files changed
+129 -64

No files matched your search

+2
View File
@@ -129,6 +129,8 @@ inline float clamp(float f) {
return f;
}
// TODO: Instead of __Ctrl, route data into the ControlMapper.
void GenerateAnalogStickEvent(float tiltX, float tiltY) {
__CtrlSetAnalogXY(CTRL_STICK_LEFT, clamp(tiltX), clamp(tiltY));
}