10eeeda581
How they can coexist is still not clear to me. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
20 lines
314 B
C++
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;
|
|
};
|