forked from TeamTofuShop/segatools
[apm3] add DInput and XInput support
This commit is contained in:
18
games/apm3io/di-dev.h
Normal file
18
games/apm3io/di-dev.h
Normal 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);
|
||||
|
Reference in New Issue
Block a user