diff --git a/Platformio/src/keys.cpp b/Platformio/src/keys.cpp index ee4e4a8..085fce0 100644 --- a/Platformio/src/keys.cpp +++ b/Platformio/src/keys.cpp @@ -56,11 +56,16 @@ void init_keys(void) { } enum repeatModes { - SHORT, // if you short press or old a key on the keypad, only one single command from keyCommands_short is sent -> best used if you do not want a command to be sent more than once, even if you press the key (too) long - SHORT_REPEATED, // if you hold a key on the keypad, a command from keyCommands_short is sent repeatedly -> best used e.g. for holding the key for "volume up" - SHORTorLONG, // if you short press a key, a command from keyCommands_short is sent once. - // if you hold a key on the keypad, a command from keyCommands_long is sent (no command from keyCommands_short before) - // -> best used if a long key press should send a different command than a short press + // if you short press or hold a key on the keypad, only one single command from keyCommands_short is sent + // -> best used if you do not want a command to be sent more than once, even if you press the key (too) long, e.g. when toggling power + SHORT, + // if you hold a key on the keypad, a command from keyCommands_short is sent repeatedly + // -> best used e.g. for holding the key for "volume up" + SHORT_REPEATED, + // if you short press a key, a command from keyCommands_short is sent once. + // if you hold a key on the keypad, a command from keyCommands_long is sent (no command from keyCommands_short before) + // -> best used if a long key press should send a different command than a short press + SHORTorLONG, }; std::map keyRepeatModes {