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 KeyStatus;
|
||||
memset(&KeyStatus, 0, sizeof(KeyStatus));
|
||||
KeyboardStatus KeyStatus = {};
|
||||
Keyboard::GetStatus(ISIDevice::m_iDeviceNumber, &KeyStatus);
|
||||
return KeyStatus;
|
||||
}
|
||||
|
|
|
@ -50,17 +50,17 @@ public:
|
|||
CSIDevice_Keyboard(SIDevices device, int _iDeviceNumber);
|
||||
|
||||
// Run the SI Buffer
|
||||
virtual int RunBuffer(u8* _pBuffer, int _iLength) override;
|
||||
int RunBuffer(u8* _pBuffer, int _iLength) override;
|
||||
|
||||
// Return true on new data
|
||||
virtual bool GetData(u32& _Hi, u32& _Low) override;
|
||||
bool GetData(u32& _Hi, u32& _Low) override;
|
||||
|
||||
virtual KeyboardStatus GetKeyboardStatus();
|
||||
virtual void MapKeys(KeyboardStatus& KeyStatus, u8* key);
|
||||
KeyboardStatus GetKeyboardStatus();
|
||||
void MapKeys(KeyboardStatus& KeyStatus, u8* key);
|
||||
|
||||
// Send a command directly
|
||||
virtual void SendCommand(u32 _Cmd, u8 _Poll) override;
|
||||
void SendCommand(u32 _Cmd, u8 _Poll) override;
|
||||
|
||||
// Savestate support
|
||||
virtual void DoState(PointerWrap& p) override;
|
||||
void DoState(PointerWrap& p) override;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue