2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 11:26:09 +00:00

Fix input not working properly

This commit is contained in:
2022-03-22 08:01:33 -07:00
parent e3c8fa1d8f
commit 9804543327
3 changed files with 31 additions and 26 deletions

View File

@@ -10,13 +10,13 @@ enum class EJoyAxis {
};
class CControllerAxis {
float x0_absolute = 0.f;
float x4_relative = 0.f;
float x0_relative = 0.f;
float x4_absolute = 0.f;
public:
void SetRelativeValue(float val) { x0_absolute = val; }
float GetRelativeValue() const { return x0_absolute; }
void SetAbsoluteValue(float val) { x4_relative = val; }
float GetAbsoluteValue() const { return x4_relative; }
void SetRelativeValue(float val) { x0_relative = val; }
float GetRelativeValue() const { return x0_relative; }
void SetAbsoluteValue(float val) { x4_absolute = val; }
float GetAbsoluteValue() const { return x4_absolute; }
};
} // namespace metaforce