mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
InputCommon:SDL: Add SDL 2.26 left and right motion inputs
This commit is contained in:
@ -161,16 +161,16 @@ private:
|
||||
class MotionInput : public Input
|
||||
{
|
||||
public:
|
||||
MotionInput(const char* name, SDL_GameController* gc, SDL_SensorType type, int index,
|
||||
MotionInput(std::string name, SDL_GameController* gc, SDL_SensorType type, int index,
|
||||
ControlState scale)
|
||||
: m_name(name), m_gc(gc), m_type(type), m_index(index), m_scale(scale){};
|
||||
: m_name(std::move(name)), m_gc(gc), m_type(type), m_index(index), m_scale(scale){};
|
||||
|
||||
std::string GetName() const override { return m_name; };
|
||||
bool IsDetectable() const override { return false; };
|
||||
ControlState GetState() const override;
|
||||
|
||||
private:
|
||||
const char* m_name;
|
||||
std::string m_name;
|
||||
|
||||
SDL_GameController* const m_gc;
|
||||
SDL_SensorType const m_type;
|
||||
|
Reference in New Issue
Block a user