mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
22 lines
384 B
C++
22 lines
384 B
C++
#pragma once
|
|
|
|
#include "Common.h"
|
|
#include <Xinput.h>
|
|
|
|
class Emulator;
|
|
|
|
class XInputManager
|
|
{
|
|
private:
|
|
Emulator* _emu;
|
|
vector<unique_ptr<XINPUT_STATE>> _gamePadStates;
|
|
vector<uint8_t> _gamePadConnected;
|
|
|
|
public:
|
|
XInputManager(Emulator* emu);
|
|
|
|
bool NeedToUpdate();
|
|
void UpdateDeviceList();
|
|
void RefreshState();
|
|
bool IsPressed(uint8_t gamepadPort, uint8_t button);
|
|
};
|