mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
SI_DeviceKeyboard: Remove superfluous virtual specifiers.
Removes an unnecessary memset as well.
This commit is contained in:
parent
5cd8a80553
commit
566a7a4829
@ -51,8 +51,7 @@ int CSIDevice_Keyboard::RunBuffer(u8* _pBuffer, int _iLength)
|
|||||||
|
|
||||||
KeyboardStatus CSIDevice_Keyboard::GetKeyboardStatus()
|
KeyboardStatus CSIDevice_Keyboard::GetKeyboardStatus()
|
||||||
{
|
{
|
||||||
KeyboardStatus KeyStatus;
|
KeyboardStatus KeyStatus = {};
|
||||||
memset(&KeyStatus, 0, sizeof(KeyStatus));
|
|
||||||
Keyboard::GetStatus(ISIDevice::m_iDeviceNumber, &KeyStatus);
|
Keyboard::GetStatus(ISIDevice::m_iDeviceNumber, &KeyStatus);
|
||||||
return KeyStatus;
|
return KeyStatus;
|
||||||
}
|
}
|
||||||
|
@ -50,17 +50,17 @@ public:
|
|||||||
CSIDevice_Keyboard(SIDevices device, int _iDeviceNumber);
|
CSIDevice_Keyboard(SIDevices device, int _iDeviceNumber);
|
||||||
|
|
||||||
// Run the SI Buffer
|
// Run the SI Buffer
|
||||||
virtual int RunBuffer(u8* _pBuffer, int _iLength) override;
|
int RunBuffer(u8* _pBuffer, int _iLength) override;
|
||||||
|
|
||||||
// Return true on new data
|
// Return true on new data
|
||||||
virtual bool GetData(u32& _Hi, u32& _Low) override;
|
bool GetData(u32& _Hi, u32& _Low) override;
|
||||||
|
|
||||||
virtual KeyboardStatus GetKeyboardStatus();
|
KeyboardStatus GetKeyboardStatus();
|
||||||
virtual void MapKeys(KeyboardStatus& KeyStatus, u8* key);
|
void MapKeys(KeyboardStatus& KeyStatus, u8* key);
|
||||||
|
|
||||||
// Send a command directly
|
// Send a command directly
|
||||||
virtual void SendCommand(u32 _Cmd, u8 _Poll) override;
|
void SendCommand(u32 _Cmd, u8 _Poll) override;
|
||||||
|
|
||||||
// Savestate support
|
// Savestate support
|
||||||
virtual void DoState(PointerWrap& p) override;
|
void DoState(PointerWrap& p) override;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user