mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
SI_DeviceKeyboard: Amend variable naming
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,25 @@ struct KeyboardStatus;
|
||||
|
||||
class CSIDevice_Keyboard : public ISIDevice
|
||||
{
|
||||
public:
|
||||
// Constructor
|
||||
CSIDevice_Keyboard(SIDevices device, int device_number);
|
||||
|
||||
// Run the SI Buffer
|
||||
int RunBuffer(u8* buffer, int length) override;
|
||||
|
||||
// Return true on new data
|
||||
bool GetData(u32& hi, u32& low) override;
|
||||
|
||||
KeyboardStatus GetKeyboardStatus() const;
|
||||
void MapKeys(const KeyboardStatus& key_status, u8* key);
|
||||
|
||||
// Send a command directly
|
||||
void SendCommand(u32 command, u8 poll) override;
|
||||
|
||||
// Savestate support
|
||||
void DoState(PointerWrap& p) override;
|
||||
|
||||
protected:
|
||||
// Commands
|
||||
enum EBufferCommands
|
||||
@@ -28,40 +47,21 @@ protected:
|
||||
|
||||
union UCommand
|
||||
{
|
||||
u32 Hex = 0;
|
||||
u32 hex = 0;
|
||||
struct
|
||||
{
|
||||
u32 Parameter1 : 8;
|
||||
u32 Parameter2 : 8;
|
||||
u32 Command : 8;
|
||||
u32 parameter1 : 8;
|
||||
u32 parameter2 : 8;
|
||||
u32 command : 8;
|
||||
u32 : 8;
|
||||
};
|
||||
UCommand() = default;
|
||||
UCommand(u32 value) : Hex{value} {}
|
||||
UCommand(u32 value) : hex{value} {}
|
||||
};
|
||||
|
||||
// PADAnalogMode
|
||||
u8 m_Mode = 0;
|
||||
u8 m_mode = 0;
|
||||
|
||||
// Internal counter synchonizing GC and keyboard
|
||||
u8 m_Counter = 0;
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
CSIDevice_Keyboard(SIDevices device, int _iDeviceNumber);
|
||||
|
||||
// Run the SI Buffer
|
||||
int RunBuffer(u8* _pBuffer, int _iLength) override;
|
||||
|
||||
// Return true on new data
|
||||
bool GetData(u32& _Hi, u32& _Low) override;
|
||||
|
||||
KeyboardStatus GetKeyboardStatus() const;
|
||||
void MapKeys(const KeyboardStatus& KeyStatus, u8* key);
|
||||
|
||||
// Send a command directly
|
||||
void SendCommand(u32 _Cmd, u8 _Poll) override;
|
||||
|
||||
// Savestate support
|
||||
void DoState(PointerWrap& p) override;
|
||||
u8 m_counter = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user