1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
Beef/BeefySysLib/platform/win/DInputManager.h

35 lines
547 B
C
Raw Permalink Normal View History

2020-11-27 06:24:47 -08:00
#pragma once
#include "../../BeefySysLib/Common.h"
#include "../../BeefySysLib/BFApp.h"
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
NS_BF_BEGIN
class DInputDevice : public BFInputDevice
{
public:
LPDIRECTINPUTDEVICE8 mDirectInputDevice;
public:
~DInputDevice();
virtual String GetState() override;
};
class DInputManager
{
public:
LPDIRECTINPUT8 mDirectInput;
String mEnumData;
public:
DInputManager();
~DInputManager();
String EnumerateDevices();
DInputDevice* CreateInputDevice(const StringImpl& guid);
};
NS_BF_END