1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 17:26:11 +00:00

Add custom effects to help.

This commit is contained in:
Landrovan 2017-03-25 08:24:36 -04:00
parent 01790b0b1f
commit 48b9406d59
3 changed files with 17 additions and 0 deletions

View File

@ -33,6 +33,8 @@ namespace help {
cout<<endl; cout<<endl;
cout<<" -fx ...\t\t\t\tUse --help-effects for more detail"<<endl; cout<<" -fx ...\t\t\t\tUse --help-effects for more detail"<<endl;
cout<<endl; cout<<endl;
cout<<" -cfx ...\t\t\t\tUse --help-custom-effects for more detail"<<endl;
cout<<endl;
cout<<" < {profile}\t\t\t\tSet a profile from a file (use --help-samples for more detail)"<<endl; cout<<" < {profile}\t\t\t\tSet a profile from a file (use --help-samples for more detail)"<<endl;
cout<<" |\t\t\t\t\tSet a profile from stdin (for scripting) (use --help-samples for more detail)"<<endl; cout<<" |\t\t\t\t\tSet a profile from stdin (for scripting) (use --help-samples for more detail)"<<endl;
cout<<endl; cout<<endl;
@ -248,4 +250,17 @@ namespace help {
cout<<"echo -e \"k w ff0000\\nk a ff0000\\nk s ff0000\\nk d ff0000\\nc\" | g810-led -pp # Set multiple keys"<<endl; cout<<"echo -e \"k w ff0000\\nk a ff0000\\nk s ff0000\\nk d ff0000\\nc\" | g810-led -pp # Set multiple keys"<<endl;
} }
void custom_effects(char *arg0)
{
string cmdName = utils::getCmdName(arg0);
cout<<cmdName<<" Custom Effects"<<endl;
cout<<"----------------"<<endl;
cout<<endl;
cout<<" -cfx {effect1} [{effect2} ...]"<<endl;
cout<<endl;
cout<<" One effect can be used, or multiple."<<endl;
cout<<" Valid custom effects: test1, test2"<<endl;
cout<<endl;
}
} }

View File

@ -9,6 +9,7 @@ namespace help {
void keys(char *arg0); void keys(char *arg0);
void effects(char *arg0); void effects(char *arg0);
void samples(char *arg0); void samples(char *arg0);
void custom_effects(char *arg0);
} }

View File

@ -225,6 +225,7 @@ int main(int argc, char **argv) {
else if (arg == "--help-keys") help::keys(argv[0]); else if (arg == "--help-keys") help::keys(argv[0]);
else if (arg == "--help-effects") help::effects(argv[0]); else if (arg == "--help-effects") help::effects(argv[0]);
else if (arg == "--help-samples") help::samples(argv[0]); else if (arg == "--help-samples") help::samples(argv[0]);
else if (arg == "--help-custom-effects") help::custom_effects(argv[0]);
else { else {
LedKeyboard kbd; LedKeyboard kbd;