mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Make reverse mapping lookup work for the simple PSP buttons.
This commit is contained in:
1 parent
2814668cf5
commit
38f4cc4cc9
12 files changed
+129
-64
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user