AppleWin/source/frontends/qapple/gamepadpaddle.h
Andrea Odetti d314546b11 Paddle: make raw interface to return values in [-1,1] to ease transformations.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-15 16:24:20 +01: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