AppleWin/source/frontends/qt/gamepadpaddle.h
Andrea Odetti 2fecd3bd1c Rename folder qapple -> qt for consistency.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 19:23:13 +00:00

22 lines
453 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 double getAxis(int i) const;
private:
GamepadPaddle(const std::shared_ptr<QGamepad> & gamepad);
const std::shared_ptr<QGamepad> myGamepad;
};
#endif // GAMEPADPADDLE_H