GCPadStatus: coalescing magic numbers into consts

This commit is contained in:
booto
2014-07-21 18:37:21 +08:00
parent 38d5197a2c
commit 0d2bef2743
4 changed files with 23 additions and 16 deletions

View File

@ -45,4 +45,11 @@ struct GCPadStatus
unsigned char analogA; // 0 <= analogA <= 255
unsigned char analogB; // 0 <= analogB <= 255
signed char err; // one of PAD_ERR_* number
static const u8 MAIN_STICK_CENTER_X = 0x80;
static const u8 MAIN_STICK_CENTER_Y = 0x80;
static const u8 MAIN_STICK_RADIUS = 0x7f;
static const u8 C_STICK_CENTER_X = 0x80;
static const u8 C_STICK_CENTER_Y = 0x80;
static const u8 C_STICK_RADIUS = 0x7f;
};