Implement decoding of alternative fire button code
This commit is contained in:
parent
f4be6ef325
commit
40eef1cf1b
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ){
|
||||
|
||||
|
|
Loading…
Reference in a new issue