mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
GCPadStatus: coalescing magic numbers into consts
This commit is contained in:
parent
38d5197a2c
commit
0d2bef2743
4 changed files with 23 additions and 16 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue