mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 09:16:11 +00:00
Make help more selective from binary name
This commit is contained in:
parent
c887ad1773
commit
b87c2595a7
2
TODO.md
2
TODO.md
@ -14,7 +14,7 @@
|
|||||||
ArchLinux (in AUR): g810-led-git
|
ArchLinux (in AUR): g810-led-git
|
||||||
|
|
||||||
## Tasks (Assigned to MatMoul but you can participate) :
|
## Tasks (Assigned to MatMoul but you can participate) :
|
||||||
* (0%) Avoid sending keys that not supported by a keyboard model
|
* (20%) Avoid sending keys that not supported by a keyboard model
|
||||||
* (0%) Add deamon mode for custom effects
|
* (0%) Add deamon mode for custom effects
|
||||||
|
|
||||||
## Tasks (Assigned to MatMoul) :
|
## Tasks (Assigned to MatMoul) :
|
||||||
|
@ -56,41 +56,55 @@ namespace help {
|
|||||||
cout<<"-------------"<<endl;
|
cout<<"-------------"<<endl;
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
cout<<"Group List :"<<endl;
|
cout<<"Group List :"<<endl;
|
||||||
cout<<" logo"<<endl;
|
|
||||||
cout<<" indicators"<<endl;
|
cout<<" logo"<<endl; // need confirmation for g410
|
||||||
cout<<" gkeys"<<endl;
|
if (cmdName != "g410-led") cout<<" indicators"<<endl;
|
||||||
|
if (cmdName != "g910-led") cout<<" gkeys"<<endl;
|
||||||
cout<<" fkeys"<<endl;
|
cout<<" fkeys"<<endl;
|
||||||
cout<<" modifiers"<<endl;
|
cout<<" modifiers"<<endl;
|
||||||
cout<<" multimedia"<<endl;
|
if (cmdName != "g410-led") cout<<" multimedia"<<endl;
|
||||||
cout<<" arrows"<<endl;
|
cout<<" arrows"<<endl;
|
||||||
cout<<" numeric"<<endl;
|
if (cmdName != "g410-led") cout<<" numeric"<<endl;
|
||||||
cout<<" functions"<<endl;
|
cout<<" functions"<<endl;
|
||||||
cout<<" keys"<<endl;
|
cout<<" keys"<<endl;
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
cout<<"Group logo :"<<endl;
|
|
||||||
cout<<" logo"<<endl;
|
|
||||||
|
|
||||||
// g910, ... ?
|
// need confirmation for g410
|
||||||
cout<<" logo2"<<endl;
|
if (cmdName == "g610-led") {
|
||||||
|
cout<<"Group logo :"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<" logo (Need confirmation)"<<endl;
|
||||||
cout<<"Group indicators :"<<endl;
|
cout<<" logo2 (Need confirmation)"<<endl;
|
||||||
cout<<" num_indicator, numindicator, num"<<endl;
|
} if (cmdName == "g910-led") {
|
||||||
cout<<" caps_indicator, capsindicator, caps"<<endl;
|
cout<<"Group logo :"<<endl;
|
||||||
cout<<" scroll_indicator, scrollindicator, scroll"<<endl;
|
cout<<" logo"<<endl;
|
||||||
cout<<" game_mode, gamemode, game"<<endl;
|
cout<<" logo2"<<endl;
|
||||||
cout<<" back_light, backlight, light"<<endl;
|
} else {
|
||||||
|
cout<<"Group logo :"<<endl;
|
||||||
|
cout<<" logo"<<endl;
|
||||||
|
}
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
|
||||||
// Only g910
|
if (cmdName != "g410-led") {
|
||||||
cout<<"Group gkeys :"<<endl;
|
cout<<"Group indicators :"<<endl;
|
||||||
cout<<" g1 - g9"<<endl;
|
cout<<" num_indicator, numindicator, num"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<" caps_indicator, capsindicator, caps"<<endl;
|
||||||
|
cout<<" scroll_indicator, scrollindicator, scroll"<<endl;
|
||||||
|
cout<<" game_mode, gamemode, game"<<endl;
|
||||||
|
cout<<" back_light, backlight, light"<<endl;
|
||||||
|
cout<<""<<endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cmdName == "g910-led") {
|
||||||
|
cout<<"Group gkeys :"<<endl;
|
||||||
|
cout<<" g1 - g9"<<endl;
|
||||||
|
cout<<""<<endl;
|
||||||
|
}
|
||||||
|
|
||||||
cout<<"Group fkeys :"<<endl;
|
cout<<"Group fkeys :"<<endl;
|
||||||
cout<<" f1 - f12"<<endl;
|
cout<<" f1 - f12"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
|
||||||
cout<<"Group modifiers :"<<endl;
|
cout<<"Group modifiers :"<<endl;
|
||||||
cout<<" shift_left, shiftleft, shiftl"<<endl;
|
cout<<" shift_left, shiftleft, shiftl"<<endl;
|
||||||
cout<<" ctrl_left, ctrlleft, ctrll"<<endl;
|
cout<<" ctrl_left, ctrlleft, ctrll"<<endl;
|
||||||
@ -103,14 +117,15 @@ namespace help {
|
|||||||
cout<<" shift_right, shiftright, shiftr"<<endl;
|
cout<<" shift_right, shiftright, shiftr"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
|
||||||
// Exclude g610
|
if (cmdName != "g410-led" || cmdName != "g910-led") {
|
||||||
cout<<"Group multimedia :"<<endl;
|
cout<<"Group multimedia :"<<endl;
|
||||||
cout<<" mute"<<endl;
|
cout<<" mute"<<endl;
|
||||||
cout<<" play_pause, playpause, play"<<endl;
|
cout<<" play_pause, playpause, play"<<endl;
|
||||||
cout<<" stop"<<endl;
|
cout<<" stop"<<endl;
|
||||||
cout<<" previous, prev"<<endl;
|
cout<<" previous, prev"<<endl;
|
||||||
cout<<" next"<<endl;
|
cout<<" next"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
}
|
||||||
|
|
||||||
cout<<"Group arrows :"<<endl;
|
cout<<"Group arrows :"<<endl;
|
||||||
cout<<" arrow_top, arrowtop, top"<<endl;
|
cout<<" arrow_top, arrowtop, top"<<endl;
|
||||||
@ -119,17 +134,18 @@ namespace help {
|
|||||||
cout<<" arrow_right, arrowright, right"<<endl;
|
cout<<" arrow_right, arrowright, right"<<endl;
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
|
||||||
// Exclude g610
|
if (cmdName != "g410-led") {
|
||||||
cout<<"Group numeric :"<<endl;
|
cout<<"Group numeric :"<<endl;
|
||||||
cout<<" num_lock, numlock"<<endl;
|
cout<<" num_lock, numlock"<<endl;
|
||||||
cout<<" num_slash, numslash, num/"<<endl;
|
cout<<" num_slash, numslash, num/"<<endl;
|
||||||
cout<<" num_asterisk, numasterisk, num*"<<endl;
|
cout<<" num_asterisk, numasterisk, num*"<<endl;
|
||||||
cout<<" num_minus, numminus, num-"<<endl;
|
cout<<" num_minus, numminus, num-"<<endl;
|
||||||
cout<<" num_plus, numplus, num+"<<endl;
|
cout<<" num_plus, numplus, num+"<<endl;
|
||||||
cout<<" numenter"<<endl;
|
cout<<" numenter"<<endl;
|
||||||
cout<<" num0 - num9"<<endl;
|
cout<<" num0 - num9"<<endl;
|
||||||
cout<<" num_dot, numdot, num."<<endl;
|
cout<<" num_dot, numdot, num."<<endl;
|
||||||
cout<<""<<endl;
|
cout<<""<<endl;
|
||||||
|
}
|
||||||
|
|
||||||
cout<<"Group functions :"<<endl;
|
cout<<"Group functions :"<<endl;
|
||||||
cout<<" escape, esc"<<endl;
|
cout<<" escape, esc"<<endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user