Skip to content

Commit

Permalink
Pad: GCC compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 23, 2024
1 parent d26fc89 commit bb24d40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/pad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum class ActiveDevice : u8
Multitap
};

union JOY_CTRL
union JOYCTRLRegister
{
u16 bits;

Expand All @@ -61,7 +61,7 @@ union JOY_CTRL
BitField<u16, u8, 13, 1> SLOT;
};

union JOY_STAT
union JOYSTATRegister
{
u32 bits;

Expand All @@ -73,7 +73,7 @@ union JOY_STAT
BitField<u32, u32, 11, 21> TMR;
};

union JOY_MODE
union JOYMODERegister
{
u16 bits;

Expand Down Expand Up @@ -127,9 +127,9 @@ struct PadState
TimingEvent transfer_event{"Pad Serial Transfer", 1, 1, &Pad::TransferEvent, nullptr};
State state = State::Idle;

JOY_STAT JOY_STAT = {};
JOY_CTRL JOY_CTRL = {};
JOY_MODE JOY_MODE = {};
JOYSTATRegister JOY_STAT = {};
JOYCTRLRegister JOY_CTRL = {};
JOYMODERegister JOY_MODE = {};
u16 JOY_BAUD = 0;

ActiveDevice active_device = ActiveDevice::None;
Expand Down

0 comments on commit bb24d40

Please # to comment.