11#ifndef INCGUARD_MGL_GAMEPAD_DELEGATE_DIRECTINPUT_H_1617271837
12#define INCGUARD_MGL_GAMEPAD_DELEGATE_DIRECTINPUT_H_1617271837
15#if defined(MGL_GAMEPAD_DELEGATE_ENABLE_DIRECTINPUT)
18#define DIRECTINPUT_VERSION 0x0800
39 bool AddDevice(
const DIDEVICEINSTANCE *deviceInstance)
noexcept;
40 void ApplyState(
PadState *state,
const DIJOYSTATE2 &diState)
noexcept;
42 static void OnEventDeviceArrival(
void *callbackArg,
void *notifyArg)
noexcept;
43 static void OnEventDeviceRemove(
void *callbackArg,
void *notifyArg)
noexcept;
45 CComPtr<IDirectInput8> _dinput;
47 struct DirectInputGamepad
50 CComPtr<IDirectInputDevice8> device;
54 std::vector<DirectInputGamepad> _padArray;
イベントハンドルクラス
Definition mgl_event_handle.h:21