AppleWin/source/frontends/qapple/gamepadpaddle.h
Andrea Odetti 348ba1ecd9 Use QGamepad in QApple.
This requires an interface as napple uses libevdev.


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00

20 lines
372 B
C++

#ifndef GAMEPADPADDLE_H
#define GAMEPADPADDLE_H
#include <QGamepad>
#include "linux/paddle.h"
class GamepadPaddle : public Paddle
{
public:
GamepadPaddle(const std::shared_ptr<QGamepad> & gamepad);
virtual bool getButton(int i) const;
virtual int getAxis(int i) const;
private:
const std::shared_ptr<QGamepad> myGamepad;
};
#endif // GAMEPADPADDLE_H