Virtual Notch settings and UI for octagonal stick

This commit is contained in:
Nick Michael
2020-10-29 22:11:34 +00:00
parent ab8a128588
commit 55dd3d7337
7 changed files with 108 additions and 2 deletions

View File

@ -15,6 +15,9 @@
namespace ControllerEmu
{
// Minimum stick distance from the center before virtual notches are applied.
constexpr ControlState MINIMUM_NOTCH_DISTANCE = 0.9;
// An abstract class representing the plastic shell that limits an analog stick's movement.
class StickGate
{
@ -85,6 +88,8 @@ public:
ControlState GetDeadzonePercentage() const;
virtual ControlState GetVirtualNotchSize() const { return 0.0; };
virtual ControlState GetGateRadiusAtAngle(double angle) const = 0;
virtual ReshapeData GetReshapableState(bool adjusted) = 0;
virtual ControlState GetDefaultInputRadiusAtAngle(double ang) const;