From 97f68be70ab4d1d07752ce033e769cf6c2df2090 Mon Sep 17 00:00:00 2001 From: Charles Rozhon Date: Thu, 14 Aug 2014 14:14:07 -0500 Subject: [PATCH] Changed GCPadStatus struct to use cstdint types instead of char, short etc. --- Source/Core/InputCommon/GCPadStatus.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Source/Core/InputCommon/GCPadStatus.h b/Source/Core/InputCommon/GCPadStatus.h index aa31982783..ed28311566 100644 --- a/Source/Core/InputCommon/GCPadStatus.h +++ b/Source/Core/InputCommon/GCPadStatus.h @@ -4,6 +4,8 @@ #pragma once +#include "Common/CommonTypes.h" + enum PadError { PAD_ERR_NONE = 0, @@ -35,16 +37,16 @@ enum PadButton struct GCPadStatus { - unsigned short button; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits - unsigned char stickX; // 0 <= stickX <= 255 - unsigned char stickY; // 0 <= stickY <= 255 - unsigned char substickX; // 0 <= substickX <= 255 - unsigned char substickY; // 0 <= substickY <= 255 - unsigned char triggerLeft; // 0 <= triggerLeft <= 255 - unsigned char triggerRight; // 0 <= triggerRight <= 255 - unsigned char analogA; // 0 <= analogA <= 255 - unsigned char analogB; // 0 <= analogB <= 255 - signed char err; // one of PAD_ERR_* number + u16 button; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits + u8 stickX; // 0 <= stickX <= 255 + u8 stickY; // 0 <= stickY <= 255 + u8 substickX; // 0 <= substickX <= 255 + u8 substickY; // 0 <= substickY <= 255 + u8 triggerLeft; // 0 <= triggerLeft <= 255 + u8 triggerRight; // 0 <= triggerRight <= 255 + u8 analogA; // 0 <= analogA <= 255 + u8 analogB; // 0 <= analogB <= 255 + s8 err; // one of PAD_ERR_* number static const u8 MAIN_STICK_CENTER_X = 0x80; static const u8 MAIN_STICK_CENTER_Y = 0x80;