AppleWin/source/frontends/retro/joypad.h
Andrea Odetti 10eeeda581 Add support for the RetroPad and disable keyboard.
How they can coexist is still not clear to me.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-19 14:26:48 +00:00

20 lines
314 B
C++

#pragma once
#include "linux/paddle.h"
#include <vector>
#include <map>
class Joypad : public Paddle
{
public:
Joypad();
virtual bool getButton(int i) const;
virtual double getAxis(int i) const;
private:
std::vector<unsigned> myButtonCodes;
std::vector<std::map<unsigned, double> > myAxisCodes;
};