4 #define DIRECTINPUT_VERSION 0x0800 28 using KeyData = std::array<bool, KEY_NUM>;
36 DInput(HINSTANCE hInst, HWND hWnd,
bool foreground =
true,
bool exclusive =
false);
48 void updateControllers(HWND hwnd,
bool foreground =
true,
bool exclusive =
false);
65 void getPadState(DIJOYSTATE *state,
int index)
const;
70 std::vector<DIDEVICEINSTANCE> m_padInstList;
71 std::vector<util::ComPtr<IDirectInputDevice8>> m_pPadDevs;
73 std::vector<DIJOYSTATE> m_pad;
std::unique_ptr< T, ComDeleter > ComPtr
unique_ptr of IUnknown with ComDeleter.