Reduce number of handled macros for the M719 to one

This commit is contained in:
dokutan 2021-04-07 22:23:55 +02:00
parent 0bdf5c59ba
commit 859dfb703b
3 changed files with 5 additions and 33 deletions

View file

@ -67,7 +67,8 @@ dpi2=0x1600
# Macro definitions
# Each macro (1-15) is defined in its own section, starting with ";## macro"
# Please note that the M719 appears to only support a single macro (macro1)
# Each macro is defined in its own section, starting with ";## macro"
# Each action is prefixed by ";# "
# A tab ('\t') is used to separate the action from the value
# There are 4 different possible actions:
@ -89,32 +90,3 @@ dpi2=0x1600
;# up o
;# down 1
;# up 1
;## macro2
;# down m
;# up m
;# down a
;# up a
;# down c
;# up c
;# down r
;# up r
;# down o
;# up o
;# down 2
;# up 2
;## macro3
;# down m
;# up m
;# down a
;# up a
;# down c
;# up c
;# down r
;# up r
;# down o
;# up o
;# down 3
;# up 3

View file

@ -275,7 +275,7 @@ int mouse_m719::read_and_print_settings( std::ostream& output ){
// decode macros
output << "\n# Macros\n";
for( int i = 0; i < 15; i++ ){
for( int i = 0; i < 1; i++ ){ // the M719 appears to only support a single macro
// is macro not defined ?
if( macro_bytes[i][0] == 0 && macro_bytes[i][1] == 0 && macro_bytes[i][2] == 0 )

View file

@ -127,8 +127,8 @@ int mouse_m719::write_settings(){
int mouse_m719::write_macro( int macro_number ){
//check if macro_number is valid
if( macro_number < 1 || macro_number > 15 ){
//check if macro_number is valid, the M719 only appears to supports a single macro
if( macro_number != 1 ){
return 1;
}