mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
SI_DeviceKeyboard: In-class initialize variables
This commit is contained in:
@ -28,7 +28,7 @@ protected:
|
|||||||
|
|
||||||
union UCommand
|
union UCommand
|
||||||
{
|
{
|
||||||
u32 Hex;
|
u32 Hex = 0;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
u32 Parameter1 : 8;
|
u32 Parameter1 : 8;
|
||||||
@ -36,15 +36,15 @@ protected:
|
|||||||
u32 Command : 8;
|
u32 Command : 8;
|
||||||
u32 : 8;
|
u32 : 8;
|
||||||
};
|
};
|
||||||
UCommand() { Hex = 0; }
|
UCommand() = default;
|
||||||
UCommand(u32 _iValue) { Hex = _iValue; }
|
UCommand(u32 value) : Hex{value} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// PADAnalogMode
|
// PADAnalogMode
|
||||||
u8 m_Mode;
|
u8 m_Mode = 0;
|
||||||
|
|
||||||
// Internal counter synchonizing GC and keyboard
|
// Internal counter synchonizing GC and keyboard
|
||||||
u8 m_Counter;
|
u8 m_Counter = 0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
|
Reference in New Issue
Block a user