ControllerInterface: Fix -Winconsistent-missing-override warnings on OSX
This commit is contained in:
parent
7681d7b67a
commit
c3332604fa
|
@ -33,7 +33,7 @@ private:
|
||||||
~Force();
|
~Force();
|
||||||
|
|
||||||
std::string GetName() const override;
|
std::string GetName() const override;
|
||||||
void SetState(ControlState state);
|
void SetState(ControlState state) override;
|
||||||
void Update();
|
void Update();
|
||||||
void Stop();
|
void Stop();
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -20,10 +20,10 @@ private:
|
||||||
class Button : public Input
|
class Button : public Input
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string GetName() const;
|
|
||||||
Button(IOHIDElementRef element, IOHIDDeviceRef device)
|
Button(IOHIDElementRef element, IOHIDDeviceRef device)
|
||||||
: m_element(element), m_device(device) {}
|
: m_element(element), m_device(device) {}
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
ControlState GetState() const override;
|
||||||
private:
|
private:
|
||||||
const IOHIDElementRef m_element;
|
const IOHIDElementRef m_element;
|
||||||
const IOHIDDeviceRef m_device;
|
const IOHIDDeviceRef m_device;
|
||||||
|
@ -37,9 +37,10 @@ private:
|
||||||
positive = 0,
|
positive = 0,
|
||||||
negative
|
negative
|
||||||
};
|
};
|
||||||
std::string GetName() const;
|
|
||||||
Axis(IOHIDElementRef element, IOHIDDeviceRef device, direction dir);
|
Axis(IOHIDElementRef element, IOHIDDeviceRef device, direction dir);
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
ControlState GetState() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const IOHIDElementRef m_element;
|
const IOHIDElementRef m_element;
|
||||||
|
@ -60,9 +61,10 @@ private:
|
||||||
down,
|
down,
|
||||||
left
|
left
|
||||||
};
|
};
|
||||||
std::string GetName() const;
|
|
||||||
Hat(IOHIDElementRef element, IOHIDDeviceRef device, direction dir);
|
Hat(IOHIDElementRef element, IOHIDDeviceRef device, direction dir);
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
ControlState GetState() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const IOHIDElementRef m_element;
|
const IOHIDElementRef m_element;
|
||||||
|
@ -75,9 +77,9 @@ public:
|
||||||
Joystick(IOHIDDeviceRef device, std::string name, int index);
|
Joystick(IOHIDDeviceRef device, std::string name, int index);
|
||||||
~Joystick();
|
~Joystick();
|
||||||
|
|
||||||
std::string GetName() const;
|
std::string GetName() const override;
|
||||||
std::string GetSource() const;
|
std::string GetSource() const override;
|
||||||
int GetId() const;
|
int GetId() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const IOHIDDeviceRef m_device;
|
const IOHIDDeviceRef m_device;
|
||||||
|
|
|
@ -19,9 +19,9 @@ private:
|
||||||
class Key : public Input
|
class Key : public Input
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string GetName() const;
|
|
||||||
Key(IOHIDElementRef element, IOHIDDeviceRef device);
|
Key(IOHIDElementRef element, IOHIDDeviceRef device);
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
ControlState GetState() const override;
|
||||||
private:
|
private:
|
||||||
const IOHIDElementRef m_element;
|
const IOHIDElementRef m_element;
|
||||||
const IOHIDDeviceRef m_device;
|
const IOHIDDeviceRef m_device;
|
||||||
|
@ -31,10 +31,10 @@ private:
|
||||||
class Cursor : public Input
|
class Cursor : public Input
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string GetName() const;
|
|
||||||
bool IsDetectable() { return false; }
|
|
||||||
Cursor(u8 index, const float& axis, const bool positive) : m_axis(axis), m_index(index), m_positive(positive) {}
|
Cursor(u8 index, const float& axis, const bool positive) : m_axis(axis), m_index(index), m_positive(positive) {}
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
bool IsDetectable() override { return false; }
|
||||||
|
ControlState GetState() const override;
|
||||||
private:
|
private:
|
||||||
const float& m_axis;
|
const float& m_axis;
|
||||||
const u8 m_index;
|
const u8 m_index;
|
||||||
|
@ -44,9 +44,9 @@ private:
|
||||||
class Button : public Input
|
class Button : public Input
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string GetName() const;
|
|
||||||
Button(u8 index, const unsigned char& button) : m_button(button), m_index(index) {}
|
Button(u8 index, const unsigned char& button) : m_button(button), m_index(index) {}
|
||||||
ControlState GetState() const;
|
std::string GetName() const override;
|
||||||
|
ControlState GetState() const override;
|
||||||
private:
|
private:
|
||||||
const unsigned char& m_button;
|
const unsigned char& m_button;
|
||||||
const u8 m_index;
|
const u8 m_index;
|
||||||
|
|
Loading…
Reference in New Issue