project64/Source/Project64-input/Button.h

31 lines
479 B
C
Raw Normal View History

2020-06-23 07:47:46 +00:00
#pragma once
#include <Common\stdtypes.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,
// Joystick
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;