2010-07-03 08:04:10 +00:00
|
|
|
#ifndef _CIFACE_DINPUT_H_
|
|
|
|
#define _CIFACE_DINPUT_H_
|
2010-04-02 02:48:24 +00:00
|
|
|
|
2013-06-17 00:07:10 +00:00
|
|
|
#include "../Device.h"
|
2010-04-02 02:48:24 +00:00
|
|
|
|
2010-07-03 08:04:10 +00:00
|
|
|
#define DINPUT_SOURCE_NAME "DInput"
|
|
|
|
|
2010-04-02 02:48:24 +00:00
|
|
|
#define DIRECTINPUT_VERSION 0x0800
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#define NOMINMAX
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <dinput.h>
|
|
|
|
|
2010-06-21 03:12:16 +00:00
|
|
|
#include <list>
|
2010-04-02 02:48:24 +00:00
|
|
|
|
|
|
|
namespace ciface
|
|
|
|
{
|
2010-07-03 08:04:10 +00:00
|
|
|
namespace DInput
|
2010-04-02 02:48:24 +00:00
|
|
|
{
|
|
|
|
|
2010-06-21 03:12:16 +00:00
|
|
|
//BOOL CALLBACK DIEnumEffectsCallback(LPCDIEFFECTINFO pdei, LPVOID pvRef);
|
|
|
|
BOOL CALLBACK DIEnumDeviceObjectsCallback(LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef);
|
|
|
|
BOOL CALLBACK DIEnumDevicesCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
|
|
|
|
std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device);
|
|
|
|
|
2013-06-17 00:07:10 +00:00
|
|
|
void Init(std::vector<Core::Device*>& devices, HWND hwnd);
|
2010-04-02 02:48:24 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|