d314546b11
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
22 lines
453 B
C++
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
|