Change valid key check in m908/getters.cpp
This commit is contained in:
parent
0c7b25be08
commit
2e1c6ff40d
2 changed files with 5 additions and 3 deletions
|
@ -70,7 +70,8 @@ bool mouse_m908::get_detach_kernel_driver(){
|
|||
|
||||
int mouse_m908::get_key_mapping_raw( mouse_m908::rd_profile profile, int key, std::array<uint8_t, 4>& mapping ){
|
||||
|
||||
if( key < 0 || key > 19 ) // valid key ?
|
||||
// valid key ?
|
||||
if( _c_button_names[key] == "" )
|
||||
return 1;
|
||||
|
||||
mapping[0] = _s_keymap_data[profile][key][0];
|
||||
|
@ -83,7 +84,8 @@ int mouse_m908::get_key_mapping_raw( mouse_m908::rd_profile profile, int key, st
|
|||
|
||||
int mouse_m908::get_key_mapping( mouse_m908::rd_profile profile, int key, std::string& mapping ){
|
||||
|
||||
if( key < 0 || key > 19 ) // valid key ?
|
||||
// valid key ?
|
||||
if( _c_button_names[key] == "" )
|
||||
return 1;
|
||||
|
||||
uint8_t b1 = _s_keymap_data[profile][key][0];
|
||||
|
|
|
@ -93,7 +93,7 @@ class rd_mouse{
|
|||
|
||||
};
|
||||
|
||||
// include header files for the individual models TODO!
|
||||
// include header files for the individual models
|
||||
#include "m908/mouse_m908.h"
|
||||
#include "m709/mouse_m709.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue