mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
ControllerInterface: Make UpdateInput / UpdateOutput return void
The return values here have never been checked, so it doesn't make sense to return a value to begin with.
This commit is contained in:
parent
61fcfc4bf2
commit
f2787f620e
19 changed files with 35 additions and 76 deletions
|
@ -53,7 +53,7 @@ private:
|
|||
};
|
||||
|
||||
public:
|
||||
bool UpdateInput() override;
|
||||
void UpdateInput() override;
|
||||
|
||||
Keyboard(IOHIDDeviceRef device, std::string name, int index, void *window);
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ Keyboard::Keyboard(IOHIDDeviceRef device, std::string name, int index, void *win
|
|||
AddInput(new Button(i, m_mousebuttons[i]));
|
||||
}
|
||||
|
||||
bool Keyboard::UpdateInput()
|
||||
void Keyboard::UpdateInput()
|
||||
{
|
||||
CGRect bounds = CGRectZero;
|
||||
uint32_t windowid[1] = { m_windowid };
|
||||
|
@ -85,8 +85,6 @@ bool Keyboard::UpdateInput()
|
|||
m_mousebuttons[0] = CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonLeft);
|
||||
m_mousebuttons[1] = CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonRight);
|
||||
m_mousebuttons[2] = CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonCenter);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Keyboard::GetName() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue