Implement decoding of alternative fire button code

This commit is contained in:
dokutan 2021-03-25 18:33:20 +01:00
parent f4be6ef325
commit 40eef1cf1b
2 changed files with 14 additions and 1 deletions

View file

@ -38,7 +38,7 @@ dpi5=0x8c00
# usb report rate (125, 250, 500, 1000) Hz
report_rate=500
# button mapping: this will not work for your mouse
# button mapping: not all buttons are currently supported
# keymap.md for full details
button_left=left
button_right=right

View file

@ -647,7 +647,20 @@ int rd_mouse::_i_decode_button_mapping( std::array<uint8_t, 4>& bytes, std::stri
output << (int)bytes.at(3);
found_name = true;
// fire button (alternative code)
} else if( bytes.at(0) == 0x92 ){
output << "fire:" << "mouse_left:";
// repeats
output << (int)bytes.at(1) << ":";
// delay
output << (int)bytes.at(2);
found_name = true;
// snipe button
} else if( bytes.at(0) == 0x9a && bytes.at(1) == 0x01 ){