mirror of
				https://github.com/MatMoul/g810-led.git
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	Add custom effects to help.
This commit is contained in:
		
							parent
							
								
									01790b0b1f
								
							
						
					
					
						commit
						48b9406d59
					
				| @ -33,6 +33,8 @@ namespace help { | ||||
| 		cout<<endl; | ||||
| 		cout<<"  -fx ...\t\t\t\tUse --help-effects for more detail"<<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<<"  |\t\t\t\t\tSet a profile from stdin (for scripting) (use --help-samples for more detail)"<<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; | ||||
| 	} | ||||
| 	 | ||||
| 	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; | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  | ||||
| @ -9,6 +9,7 @@ namespace help { | ||||
| 	void keys(char *arg0); | ||||
| 	void effects(char *arg0); | ||||
| 	void samples(char *arg0); | ||||
| 	void custom_effects(char *arg0); | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -225,6 +225,7 @@ int main(int argc, char **argv) { | ||||
| 		else if (arg == "--help-keys") help::keys(argv[0]); | ||||
| 		else if (arg == "--help-effects") help::effects(argv[0]); | ||||
| 		else if (arg == "--help-samples") help::samples(argv[0]); | ||||
| 		else if (arg == "--help-custom-effects") help::custom_effects(argv[0]); | ||||
| 		 | ||||
| 		else { | ||||
| 			LedKeyboard kbd; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Landrovan
						Landrovan