mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Reformat all the things. Have fun with merge conflicts.
This commit is contained in:
@ -29,37 +29,36 @@ void Init(std::vector<Core::Device*>& devices);
|
||||
class PipeDevice : public Core::Device
|
||||
{
|
||||
public:
|
||||
PipeDevice(int fd, const std::string& name, int id);
|
||||
~PipeDevice();
|
||||
|
||||
void UpdateInput() override;
|
||||
std::string GetName() const override { return m_name; }
|
||||
int GetId() const override { return m_id; }
|
||||
std::string GetSource() const override { return "Pipe"; }
|
||||
PipeDevice(int fd, const std::string& name, int id);
|
||||
~PipeDevice();
|
||||
|
||||
void UpdateInput() override;
|
||||
std::string GetName() const override { return m_name; }
|
||||
int GetId() const override { return m_id; }
|
||||
std::string GetSource() const override { return "Pipe"; }
|
||||
private:
|
||||
class PipeInput : public Input
|
||||
{
|
||||
public:
|
||||
PipeInput(const std::string& name) : m_name(name), m_state(0.0) {}
|
||||
std::string GetName() const override { return m_name; }
|
||||
ControlState GetState() const override { return m_state; }
|
||||
void SetState(ControlState state) { m_state = state; }
|
||||
private:
|
||||
const std::string m_name;
|
||||
ControlState m_state;
|
||||
};
|
||||
class PipeInput : public Input
|
||||
{
|
||||
public:
|
||||
PipeInput(const std::string& name) : m_name(name), m_state(0.0) {}
|
||||
std::string GetName() const override { return m_name; }
|
||||
ControlState GetState() const override { return m_state; }
|
||||
void SetState(ControlState state) { m_state = state; }
|
||||
private:
|
||||
const std::string m_name;
|
||||
ControlState m_state;
|
||||
};
|
||||
|
||||
void AddAxis(const std::string& name, double value);
|
||||
void ParseCommand(const std::string& command);
|
||||
void SetAxis(const std::string& entry, double value);
|
||||
void AddAxis(const std::string& name, double value);
|
||||
void ParseCommand(const std::string& command);
|
||||
void SetAxis(const std::string& entry, double value);
|
||||
|
||||
const int m_fd;
|
||||
const std::string m_name;
|
||||
const int m_id;
|
||||
std::string m_buf;
|
||||
std::map<std::string, PipeInput*> m_buttons;
|
||||
std::map<std::string, PipeInput*> m_axes;
|
||||
const int m_fd;
|
||||
const std::string m_name;
|
||||
const int m_id;
|
||||
std::string m_buf;
|
||||
std::map<std::string, PipeInput*> m_buttons;
|
||||
std::map<std::string, PipeInput*> m_axes;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user