mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-18 10:36:59 +00:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
32
src/input/api/XInput/XInputControllerProvider.h
Normal file
32
src/input/api/XInput/XInputControllerProvider.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
#if BOOST_OS_WINDOWS
|
||||
#include "input/api/ControllerProvider.h"
|
||||
|
||||
#include <Xinput.h>
|
||||
|
||||
#ifndef HAS_XINPUT
|
||||
#define HAS_XINPUT 1
|
||||
#endif
|
||||
|
||||
|
||||
class XInputControllerProvider : public ControllerProviderBase
|
||||
{
|
||||
friend class XInputController;
|
||||
public:
|
||||
XInputControllerProvider();
|
||||
~XInputControllerProvider() override;
|
||||
|
||||
inline static InputAPI::Type kAPIType = InputAPI::XInput;
|
||||
InputAPI::Type api() const override { return kAPIType; }
|
||||
|
||||
std::vector<std::shared_ptr<ControllerBase>> get_controllers() override;
|
||||
|
||||
private:
|
||||
HMODULE m_module = nullptr;
|
||||
decltype(&XInputGetBatteryInformation) m_XInputGetBatteryInformation;
|
||||
decltype(&XInputGetCapabilities) m_XInputGetCapabilities;
|
||||
decltype(&XInputSetState) m_XInputSetState;
|
||||
decltype(&XInputGetState) m_XInputGetState;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue