Mesen-X/Windows/XInputManager.h

23 lines
411 B
C
Raw Normal View History

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