Mesen/Windows/XInputManager.h

20 lines
336 B
C
Raw Normal View History

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