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

Initial CDolphinController RE

This commit is contained in:
2022-03-19 21:19:43 -07:00
parent ec430567c3
commit a96fe24260
16 changed files with 293 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
namespace metaforce {
enum class EJoyAxis {
LeftX,
LeftY,
RightX,
RightY,
MAX
};
class CControllerAxis {
float x0_absolute = 0.f;
float x4_relative = 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; }
};
} // namespace metaforce