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

Prepare avoid sending keys that not supported by a keyboard model

This commit is contained in:
MatMoul 2017-02-07 00:03:50 +01:00
parent eb825184c6
commit c887ad1773

View File

@ -70,7 +70,10 @@ namespace help {
cout<<endl; cout<<endl;
cout<<"Group logo :"<<endl; cout<<"Group logo :"<<endl;
cout<<" logo"<<endl; cout<<" logo"<<endl;
// g910, ... ?
cout<<" logo2"<<endl; cout<<" logo2"<<endl;
cout<<""<<endl; cout<<""<<endl;
cout<<"Group indicators :"<<endl; cout<<"Group indicators :"<<endl;
cout<<" num_indicator, numindicator, num"<<endl; cout<<" num_indicator, numindicator, num"<<endl;
@ -79,9 +82,12 @@ namespace help {
cout<<" game_mode, gamemode, game"<<endl; cout<<" game_mode, gamemode, game"<<endl;
cout<<" back_light, backlight, light"<<endl; cout<<" back_light, backlight, light"<<endl;
cout<<""<<endl; cout<<""<<endl;
// Only g910
cout<<"Group gkeys :"<<endl; cout<<"Group gkeys :"<<endl;
cout<<" g1 - g9"<<endl; cout<<" g1 - g9"<<endl;
cout<<""<<endl; cout<<""<<endl;
cout<<"Group fkeys :"<<endl; cout<<"Group fkeys :"<<endl;
cout<<" f1 - f12"<<endl; cout<<" f1 - f12"<<endl;
cout<<""<<endl; cout<<""<<endl;
@ -96,6 +102,8 @@ namespace help {
cout<<" ctrl_right, ctrlright, ctrlr"<<endl; cout<<" ctrl_right, ctrlright, ctrlr"<<endl;
cout<<" shift_right, shiftright, shiftr"<<endl; cout<<" shift_right, shiftright, shiftr"<<endl;
cout<<""<<endl; cout<<""<<endl;
// Exclude g610
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;
@ -103,12 +111,15 @@ namespace help {
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;
cout<<" arrow_left, arrowleft, left"<<endl; cout<<" arrow_left, arrowleft, left"<<endl;
cout<<" arrow_bottom, arrowbottom, bottom"<<endl; cout<<" arrow_bottom, arrowbottom, bottom"<<endl;
cout<<" arrow_right, arrowright, right"<<endl; cout<<" arrow_right, arrowright, right"<<endl;
cout<<""<<endl; cout<<""<<endl;
// Exclude g610
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;
@ -119,6 +130,7 @@ namespace help {
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;
cout<<" print_screen, printscreen, printscr"<<endl; cout<<" print_screen, printscreen, printscr"<<endl;
@ -154,6 +166,7 @@ namespace help {
cout<<" slash"<<endl; cout<<" slash"<<endl;
} }
// Need info for supported model (g810 : ok)
void effects(char *arg0) { void effects(char *arg0) {
string cmdName = utils::getCmdName(arg0); string cmdName = utils::getCmdName(arg0);
cout<<cmdName<<" Effects"<<endl; cout<<cmdName<<" Effects"<<endl;
@ -174,6 +187,7 @@ namespace help {
cout<<endl; cout<<endl;
} }
// Need more samples
void samples(char *arg0) { void samples(char *arg0) {
string cmdName = utils::getCmdName(arg0); string cmdName = utils::getCmdName(arg0);
cout<<cmdName<<" Samples"<<endl; cout<<cmdName<<" Samples"<<endl;