ControllerInterface: Implement dummy UpdateInput / UpdateOutputs
Make the implementation here a bit easier.
This commit is contained in:
parent
0c056c6411
commit
367a42dcfd
|
@ -39,9 +39,6 @@ private:
|
|||
};
|
||||
|
||||
public:
|
||||
bool UpdateInput() { return true; }
|
||||
bool UpdateOutput() { return true; }
|
||||
|
||||
Touchscreen(int padID);
|
||||
~Touchscreen() {}
|
||||
|
||||
|
|
|
@ -100,8 +100,8 @@ public:
|
|||
virtual std::string GetName() const = 0;
|
||||
virtual int GetId() const = 0;
|
||||
virtual std::string GetSource() const = 0;
|
||||
virtual bool UpdateInput() = 0;
|
||||
virtual bool UpdateOutput() = 0;
|
||||
virtual bool UpdateInput() { return true; }
|
||||
virtual bool UpdateOutput() { return true; }
|
||||
|
||||
virtual void ClearInputState();
|
||||
|
||||
|
|
|
@ -72,8 +72,6 @@ private:
|
|||
};
|
||||
|
||||
public:
|
||||
bool UpdateInput();
|
||||
|
||||
Joystick(IOHIDDeviceRef device, std::string name, int index);
|
||||
~Joystick();
|
||||
|
||||
|
|
|
@ -90,11 +90,6 @@ Joystick::~Joystick()
|
|||
m_ff_device->Release();
|
||||
}
|
||||
|
||||
bool Joystick::UpdateInput()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Joystick::GetName() const
|
||||
{
|
||||
return m_device_name;
|
||||
|
|
|
@ -53,8 +53,7 @@ private:
|
|||
};
|
||||
|
||||
public:
|
||||
bool UpdateInput();
|
||||
bool UpdateOutput();
|
||||
bool UpdateInput() override;
|
||||
|
||||
Keyboard(IOHIDDeviceRef device, std::string name, int index, void *window);
|
||||
|
||||
|
|
|
@ -89,11 +89,6 @@ bool Keyboard::UpdateInput()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Keyboard::UpdateOutput()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Keyboard::GetName() const
|
||||
{
|
||||
return m_device_name;
|
||||
|
|
|
@ -286,11 +286,6 @@ bool KeyboardMouse::UpdateInput()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool KeyboardMouse::UpdateOutput()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string KeyboardMouse::GetName() const
|
||||
{
|
||||
// This is the name string we got from the X server for this master
|
||||
|
|
|
@ -99,7 +99,6 @@ private:
|
|||
|
||||
public:
|
||||
bool UpdateInput() override;
|
||||
bool UpdateOutput() override;
|
||||
|
||||
KeyboardMouse(Window window, int opcode, int pointer_deviceid, int keyboard_deviceid);
|
||||
~KeyboardMouse();
|
||||
|
|
|
@ -68,12 +68,6 @@ bool KeyboardMouse::UpdateInput()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool KeyboardMouse::UpdateOutput()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
std::string KeyboardMouse::GetName() const
|
||||
{
|
||||
return "Keyboard Mouse";
|
||||
|
|
|
@ -71,7 +71,6 @@ private:
|
|||
|
||||
public:
|
||||
bool UpdateInput() override;
|
||||
bool UpdateOutput() override;
|
||||
|
||||
KeyboardMouse(Window window);
|
||||
~KeyboardMouse();
|
||||
|
|
Loading…
Reference in New Issue