M990 Chroma: map all buttons

This commit is contained in:
dokutan 2022-06-21 22:36:50 +02:00
parent 86a8bd8edb
commit 05a8d2ac1c
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ const std::string mouse_m990chroma::_c_name = "990chroma";
const uint16_t mouse_m990chroma::_c_mouse_vid = 0x04d9;
const uint16_t mouse_m990chroma::_c_mouse_pid = 0xfc41;
// Names of the physical buttons
// Names of the physical buttons TODO! are these correct?
std::map< int, std::string > mouse_m990chroma::_c_button_names = {
{ 0, "button_left" },
{ 1, "button_right" },

View file

@ -95,7 +95,7 @@ int mouse_m990chroma::write_settings(){
}
//key mapping
for( int i = 0; i < 5; i++ ){
for( int j = 0; j < 8; j++ ){
for( int j = 0; j < 26; j++ ){ // TODO! is 25 correct?
buffer3[35+(8*i)+j][8] = _s_keymap_data[i][j][0];
buffer3[35+(8*i)+j][9] = _s_keymap_data[i][j][1];
buffer3[35+(8*i)+j][10] = _s_keymap_data[i][j][2];