AppleWin/source/frontends/qapple/gamepadpaddle.h
Andrea Odetti 31340919de Move Qt UI to private member.
This way it is clear which variables comes from the ui component.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-30 15:48:48 +00:00

22 lines
450 B
C++

#ifndef GAMEPADPADDLE_H
#define GAMEPADPADDLE_H
#include "linux/paddle.h"
class QGamepad;
class QString;
class GamepadPaddle : public Paddle
{
public:
static std::shared_ptr<Paddle> fromName(const QString & name);
virtual bool getButton(int i) const;
virtual int getAxis(int i) const;
private:
GamepadPaddle(const std::shared_ptr<QGamepad> & gamepad);
const std::shared_ptr<QGamepad> myGamepad;
};
#endif // GAMEPADPADDLE_H