mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Remove unused GCPadStatus.err
This commit is contained in:
@ -174,8 +174,6 @@ InputConfig* GetConfig()
|
|||||||
|
|
||||||
void GetStatus()
|
void GetStatus()
|
||||||
{
|
{
|
||||||
s_hotkey.err = PAD_ERR_NONE;
|
|
||||||
|
|
||||||
// Get input
|
// Get input
|
||||||
static_cast<HotkeyManager*>(s_config.GetController(0))->GetInput(&s_hotkey);
|
static_cast<HotkeyManager*>(s_config.GetController(0))->GetInput(&s_hotkey);
|
||||||
}
|
}
|
||||||
|
@ -1110,12 +1110,6 @@ void PlayController(GCPadStatus* PadStatus, int controllerID)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// dtm files don't save the mic button or error bit. not sure if they're actually used, but better
|
|
||||||
// safe than sorry
|
|
||||||
signed char e = PadStatus->err;
|
|
||||||
memset(PadStatus, 0, sizeof(GCPadStatus));
|
|
||||||
PadStatus->err = e;
|
|
||||||
|
|
||||||
memcpy(&s_padState, &s_temp_input[s_currentByte], sizeof(ControllerState));
|
memcpy(&s_padState, &s_temp_input[s_currentByte], sizeof(ControllerState));
|
||||||
s_currentByte += sizeof(ControllerState);
|
s_currentByte += sizeof(ControllerState);
|
||||||
|
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
enum PadError
|
|
||||||
{
|
|
||||||
PAD_ERR_NONE = 0,
|
|
||||||
PAD_ERR_NO_CONTROLLER = -1,
|
|
||||||
PAD_ERR_NOT_READY = -2,
|
|
||||||
PAD_ERR_TRANSFER = -3,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PAD_USE_ORIGIN = 0x0080,
|
PAD_USE_ORIGIN = 0x0080,
|
||||||
@ -48,7 +40,6 @@ struct GCPadStatus
|
|||||||
u8 triggerRight; // 0 <= triggerRight <= 255
|
u8 triggerRight; // 0 <= triggerRight <= 255
|
||||||
u8 analogA; // 0 <= analogA <= 255
|
u8 analogA; // 0 <= analogA <= 255
|
||||||
u8 analogB; // 0 <= analogB <= 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_X = 0x80;
|
||||||
static const u8 MAIN_STICK_CENTER_Y = 0x80;
|
static const u8 MAIN_STICK_CENTER_Y = 0x80;
|
||||||
|
Reference in New Issue
Block a user