2015-06-11 14:53:59 +00:00
|
|
|
|
2015-06-06 23:38:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2015-06-11 14:53:59 +00:00
|
|
|
#ifndef NO_XBOX
|
|
|
|
|
|
2015-06-06 23:38:27 +00:00
|
|
|
#include "Input.h"
|
|
|
|
|
#include "CXBOXController.h"
|
|
|
|
|
#include "EmulatorInput.h"
|
|
|
|
|
|
|
|
|
|
namespace VBA10
|
|
|
|
|
{
|
2015-08-11 16:59:47 +00:00
|
|
|
class ControllerInput: public EmulatorInput
|
2015-06-06 23:38:27 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ControllerInput(int index);
|
|
|
|
|
~ControllerInput(void);
|
|
|
|
|
|
|
|
|
|
const ControllerState *GetControllerState(void);
|
|
|
|
|
void Update(void);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ControllerState state;
|
|
|
|
|
CXBOXController *xboxPad;
|
2015-10-07 03:37:47 +00:00
|
|
|
|
|
|
|
|
void GetMapping(int pressedButton, bool* a, bool* b, bool* l, bool* r, bool* turbo);
|
2015-06-06 23:38:27 +00:00
|
|
|
};
|
2015-06-11 14:53:59 +00:00
|
|
|
}
|
|
|
|
|
#endif
|