AppleWin/source/frontends/qt/gamepadpaddle.h
Andrea Odetti cc55d9e681 Modern syntax: virtual -> override.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:55:43 +00:00

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