2020-06-23 07:47:46 +00:00
|
|
|
#pragma once
|
2021-04-12 06:34:26 +00:00
|
|
|
#include <stdint.h>
|
2020-07-01 00:54:29 +00:00
|
|
|
#include <guiddef.h>
|
2020-06-23 07:47:46 +00:00
|
|
|
|
|
|
|
enum BtnType
|
|
|
|
{
|
|
|
|
BTNTYPE_UNASSIGNED = 0,
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Joystick / controller
|
2020-06-23 07:47:46 +00:00
|
|
|
BTNTYPE_JOYBUTTON = 1,
|
|
|
|
BTNTYPE_JOYAXE = 2,
|
|
|
|
BTNTYPE_JOYPOV = 3,
|
|
|
|
BTNTYPE_JOYSLIDER = 4,
|
|
|
|
|
|
|
|
// Keyboard
|
|
|
|
BTNTYPE_KEYBUTTON = 5,
|
|
|
|
|
|
|
|
// Mouse
|
|
|
|
BTNTYPE_MOUSEBUTTON = 6,
|
|
|
|
BTNTYPE_MOUSEAXE = 7,
|
|
|
|
};
|
|
|
|
|
2020-07-01 00:54:29 +00:00
|
|
|
typedef struct _BUTTON
|
2020-06-23 07:47:46 +00:00
|
|
|
{
|
|
|
|
uint8_t Offset;
|
|
|
|
uint8_t AxisID;
|
|
|
|
BtnType BtnType;
|
2020-07-01 00:54:29 +00:00
|
|
|
GUID DeviceGuid;
|
|
|
|
void * Device;
|
2020-06-23 07:47:46 +00:00
|
|
|
} BUTTON;
|