mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 20:42:24 +00:00
20 lines
336 B
C++
20 lines
336 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include <Xinput.h>
|
|
|
|
class XInputManager
|
|
{
|
|
private:
|
|
vector<shared_ptr<XINPUT_STATE>> _gamePadStates;
|
|
vector<uint8_t> _gamePadConnected;
|
|
|
|
public:
|
|
XInputManager();
|
|
|
|
bool NeedToUpdate();
|
|
void UpdateDeviceList();
|
|
void RefreshState();
|
|
bool IsPressed(uint8_t gamepadPort, uint8_t button);
|
|
};
|