Reformat vpad/input.h

This commit is contained in:
James Benton 2018-06-18 10:05:02 +01:00
parent 83583aa80b
commit e65cb2304b

View File

@ -49,6 +49,11 @@ typedef enum VPADButtons
VPAD_STICK_L_EMULATION_DOWN = 0x08000000, VPAD_STICK_L_EMULATION_DOWN = 0x08000000,
} VPADButtons; } VPADButtons;
typedef enum VPADChan
{
VPAD_CHAN_0 = 0,
} VPADChan;
typedef enum VPADTouchPadValidity typedef enum VPADTouchPadValidity
{ {
//! Both X and Y touchpad positions are accurate //! Both X and Y touchpad positions are accurate
@ -61,7 +66,6 @@ typedef enum VPADTouchPadValidity
VPAD_INVALID_Y = 0x2, VPAD_INVALID_Y = 0x2,
} VPADTouchPadValidity; } VPADTouchPadValidity;
typedef enum VPADReadError typedef enum VPADReadError
{ {
VPAD_READ_SUCCESS = 0, VPAD_READ_SUCCESS = 0,
@ -207,21 +211,21 @@ void
VPADShutdown(); VPADShutdown();
int32_t int32_t
VPADRead(uint32_t chan, VPADRead(VPADChan chan,
VPADStatus *buffers, VPADStatus *buffers,
uint32_t count, uint32_t count,
VPADReadError *error); VPADReadError *error);
void void
VPADGetTPCalibratedPoint(uint32_t chan, VPADGetTPCalibratedPoint(VPADChan chan,
VPADTouchData *calibratedData, VPADTouchData *calibratedData,
VPADTouchData *uncalibratedData); VPADTouchData *uncalibratedData);
int32_t int32_t
VPADBASEGetMotorOnRemainingCount(uint32_t chan); VPADBASEGetMotorOnRemainingCount(VPADChan chan);
int32_t int32_t
VPADBASESetMotorOnRemainingCount(uint32_t chan, VPADBASESetMotorOnRemainingCount(VPADChan chan,
int32_t counter); int32_t counter);
#ifdef __cplusplus #ifdef __cplusplus