2022-03-20 04:19:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace metaforce {
|
|
|
|
enum class EJoyAxis {
|
|
|
|
LeftX,
|
|
|
|
LeftY,
|
|
|
|
RightX,
|
|
|
|
RightY,
|
|
|
|
MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
class CControllerAxis {
|
2022-03-22 15:01:33 +00:00
|
|
|
float x0_relative = 0.f;
|
|
|
|
float x4_absolute = 0.f;
|
2022-03-20 04:19:43 +00:00
|
|
|
|
|
|
|
public:
|
2022-03-22 15:01:33 +00:00
|
|
|
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; }
|
2022-03-20 04:19:43 +00:00
|
|
|
};
|
|
|
|
} // namespace metaforce
|