Add support for X1/X2 mouse buttons and Super keys

This commit is contained in:
Cameron Gutman
2020-01-18 16:08:07 -08:00
parent b2d41b3c64
commit 992cce946c
4 changed files with 26 additions and 8 deletions

View File

@@ -120,7 +120,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;
}