mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 05:40:27 +00:00
Keyboard control: show info also when pressing 'i'
This commit is contained in:
@@ -211,6 +211,9 @@ void keyboard_control::run()
|
||||
case 'h':
|
||||
usage();
|
||||
break;
|
||||
case 'i':
|
||||
info();
|
||||
break;
|
||||
case '\n':
|
||||
cout << endl;
|
||||
break;
|
||||
@@ -276,21 +279,8 @@ after_protected:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void keyboard_control::usage()
|
||||
void keyboard_control::info()
|
||||
{
|
||||
cout << "\nAvailable keybindings:\n" <<
|
||||
"\t * 0 - increase volume\n" <<
|
||||
"\t / 9 - decrease volume\n" <<
|
||||
"\t + - increase audio delay by 10 ms\n" <<
|
||||
"\t - - decrease audio delay by 10 ms\n" <<
|
||||
"\t m - mute/unmute\n" <<
|
||||
"\t v - increase verbosity level\n" <<
|
||||
"\t e - record captured content (toggle)\n" <<
|
||||
"\t h - show help\n" <<
|
||||
"\tCtrl-x - unlock/lock against changes\n" <<
|
||||
"\tCtrl-c - exit\n" <<
|
||||
"\n";
|
||||
cout << "Verbosity level: " << log_level << (log_level == LOG_LEVEL_INFO ? " (default)" : "") << "\n";
|
||||
cout << "Locked against changes: " << (m_locked_against_changes ? "true" : "false") << "\n";
|
||||
cout << "Audio playback delay: " << get_audio_delay() << " ms\n";
|
||||
@@ -363,3 +353,22 @@ void keyboard_control::usage()
|
||||
cout << "\n";
|
||||
}
|
||||
|
||||
void keyboard_control::usage()
|
||||
{
|
||||
cout << "\nAvailable keybindings:\n" <<
|
||||
"\t * 0 - increase volume\n" <<
|
||||
"\t / 9 - decrease volume\n" <<
|
||||
"\t + - increase audio delay by 10 ms\n" <<
|
||||
"\t - - decrease audio delay by 10 ms\n" <<
|
||||
"\t m - mute/unmute\n" <<
|
||||
"\t v - increase verbosity level\n" <<
|
||||
"\t e - record captured content (toggle)\n" <<
|
||||
"\t h - show help\n" <<
|
||||
"\t i - show various information\n" <<
|
||||
"\tCtrl-x - unlock/lock against changes\n" <<
|
||||
"\tCtrl-c - exit\n" <<
|
||||
"\n";
|
||||
|
||||
info();
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
void start(struct module *root);
|
||||
void stop();
|
||||
void run();
|
||||
void info();
|
||||
void usage();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user