ControllerInterface: Implement axis scaling for axis-to-axis mappings

This feature allows us to work around analog stick range issues at the
intercardinal directions in certain titles (e.g. Rockman DASH 2) caused
by modern controllers having a tighter logical range of reporting than
PS1 analog controllers.
This commit is contained in:
Albert Liu
2020-06-06 18:49:25 -07:00
parent 840a80670f
commit 6b7c068f83
4 changed files with 25 additions and 1 deletions

View File

@ -43,6 +43,9 @@ public:
virtual u32 GetControllerRumbleMotorCount(int controller_index) = 0;
virtual void SetControllerRumbleStrength(int controller_index, const float* strengths, u32 num_motors) = 0;
// Set scaling that will be applied on axis-to-axis mappings
virtual bool SetControllerAxisScale(int controller_index, float scale) = 0;
// Input monitoring for external access.
struct Hook
{