2023-04-23 14:13:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <dinput.h>
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
union idac_di_state {
|
|
|
|
DIJOYSTATE st;
|
|
|
|
uint8_t bytes[sizeof(DIJOYSTATE)];
|
|
|
|
};
|
|
|
|
|
|
|
|
HRESULT idac_di_dev_start(IDirectInputDevice8W *dev, HWND wnd);
|
2023-12-11 18:18:25 +00:00
|
|
|
void idac_di_dev_start_fx(IDirectInputDevice8W *dev, IDirectInputEffect **out, uint16_t strength);
|
2023-04-23 14:13:51 +00:00
|
|
|
HRESULT idac_di_dev_poll(
|
|
|
|
IDirectInputDevice8W *dev,
|
|
|
|
HWND wnd,
|
|
|
|
union idac_di_state *out);
|
|
|
|
|