mirror of
https://github.com/izzy2lost/vba10.git
synced 2026-03-26 18:15:30 -07:00
28 lines
415 B
C++
28 lines
415 B
C++
|
|
|
|
#ifndef CXBOXCONTROLLER_H_
|
|
#define CXBOXCONTROLLER_H_
|
|
|
|
#ifndef NO_XBOX
|
|
#include <Windows.h>
|
|
#include <Xinput.h>
|
|
|
|
namespace VBA10
|
|
{
|
|
class CXBOXController
|
|
{
|
|
private:
|
|
XINPUT_STATE state;
|
|
int controllerNumber;
|
|
|
|
public:
|
|
CXBOXController (int playerNumber);
|
|
XINPUT_STATE GetState(void);
|
|
bool IsConnected();
|
|
void Vibrate(int leftVal = 0, int rightVal = 0);
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif |