AnalogController: Show controller number in OSD messages

This commit is contained in:
Connor McLaughlin
2020-05-08 15:32:39 +10:00
parent 95468901f2
commit 9539ce032b
6 changed files with 16 additions and 15 deletions

View File

@ -41,10 +41,10 @@ public:
static constexpr u8 NUM_MOTORS = 2;
AnalogController(System* system);
AnalogController(System* system, u32 index);
~AnalogController() override;
static std::unique_ptr<AnalogController> Create(System* system);
static std::unique_ptr<AnalogController> Create(System* system, u32 index);
static std::optional<s32> StaticGetAxisCodeByName(std::string_view axis_name);
static std::optional<s32> StaticGetButtonCodeByName(std::string_view button_name);
static AxisList StaticGetAxisNames();
@ -130,6 +130,7 @@ private:
void SetMotorState(u8 motor, u8 value);
System* m_system;
u32 m_index;
bool m_analog_mode = false;
bool m_analog_locked = false;