Project64-input: Add device to button

This commit is contained in:
zilmar 2020-07-01 10:24:29 +09:30
parent f78e292796
commit 1a19934916
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <Common\stdtypes.h> #include <Common\stdtypes.h>
#include <guiddef.h>
enum BtnType enum BtnType
{ {
@ -19,9 +20,11 @@ enum BtnType
BTNTYPE_MOUSEAXE = 7, BTNTYPE_MOUSEAXE = 7,
}; };
typedef struct typedef struct _BUTTON
{ {
uint8_t Offset; uint8_t Offset;
uint8_t AxisID; uint8_t AxisID;
BtnType BtnType; BtnType BtnType;
GUID DeviceGuid;
void * Device;
} BUTTON; } BUTTON;