Mesen/Windows/GamePad.h

17 lines
234 B
C
Raw Normal View History

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