2014-06-21 19:03:13 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include <Xinput.h>
|
|
|
|
|
|
|
|
class GamePad
|
|
|
|
{
|
|
|
|
private:
|
2015-07-10 21:07:24 -04:00
|
|
|
vector<shared_ptr<XINPUT_STATE>> _gamePadStates;
|
2014-06-21 19:03:13 -04:00
|
|
|
|
|
|
|
public:
|
|
|
|
GamePad();
|
|
|
|
|
2015-07-10 21:07:24 -04:00
|
|
|
void RefreshState();
|
|
|
|
bool IsPressed(uint8_t gamepadPort, WORD button);
|
2014-06-21 19:03:13 -04:00
|
|
|
};
|