2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-02-10 13:54:46 -05:00
|
|
|
|
|
|
|
#pragma once
|
2010-04-02 02:48:24 +00:00
|
|
|
|
2010-07-03 08:04:10 +00:00
|
|
|
#define DINPUT_SOURCE_NAME "DInput"
|
|
|
|
|
2014-02-19 02:17:31 +01:00
|
|
|
#include <windows.h>
|
2017-06-05 02:29:56 +02:00
|
|
|
#include <list>
|
2019-05-08 21:01:46 +02:00
|
|
|
#include <string>
|
2014-02-19 02:17:31 +01:00
|
|
|
|
2014-08-22 17:17:49 -07:00
|
|
|
#include "InputCommon/ControllerInterface/DInput/DInput8.h"
|
2010-04-02 02:48:24 +00:00
|
|
|
|
2019-06-17 16:39:24 -04:00
|
|
|
namespace ciface::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);
|
|
|
|
|
2016-10-16 13:39:05 -07:00
|
|
|
void PopulateDevices(HWND hwnd);
|
2021-05-15 12:20:20 +03:00
|
|
|
void ChangeWindow(HWND hwnd);
|
|
|
|
void DeInit();
|
2019-06-17 16:39:24 -04:00
|
|
|
} // namespace ciface::DInput
|