mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-02-05 03:15:25 +00:00
Merge pull request #6 from cgutman/input_fixes
Add support for X1/X2 mouse buttons and Super keys
This commit is contained in:
@ -104,7 +104,7 @@ void passthrough(std::shared_ptr<input_t> &input, PNV_MOUSE_BUTTON_PACKET packet
|
||||
display_cursor = true;
|
||||
|
||||
auto button = util::endian::big(packet->button);
|
||||
if(button > 0 && button < 4) {
|
||||
if(button > 0 && button < input->mouse_press.size()) {
|
||||
input->mouse_press[button] = packet->action != BUTTON_RELEASED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user