AppleWin/source/frontends/qapple/gamepadpaddle.h
Andrea Odetti 256815eff9 Rationalise QApple options.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-24 19:30:34 +00:00

21 lines
439 B
C++

#ifndef GAMEPADPADDLE_H
#define GAMEPADPADDLE_H
#include <QGamepad>
#include "linux/paddle.h"
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