[apm3] add DInput and XInput support

This commit is contained in:
2025-07-20 18:11:34 +02:00
parent e2e4b37e3f
commit e974a76fe6
21 changed files with 1157 additions and 176 deletions

18
games/apm3io/di-dev.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
#include <windows.h>
#include <dinput.h>
#include <stdint.h>
union apm3_di_state {
DIJOYSTATE st;
uint8_t bytes[sizeof(DIJOYSTATE)];
};
HRESULT apm3_di_dev_start(IDirectInputDevice8W *dev, HWND wnd);
HRESULT apm3_di_dev_poll(
IDirectInputDevice8W *dev,
HWND wnd,
union apm3_di_state *out);