From 7c87b2ac8e01307e603bd85420f8d10724a296e6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 12:32:16 +0300 Subject: Move chat command /dumpgl into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/other.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index d372699ef..928b1d5b9 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -402,6 +402,7 @@ namespace InputAction DUMP_ENVIRONMENT, DUMP_TESTS, DUMP_OGL, + DUMP_GL, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 0eb445c53..eb430ddfa 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3387,6 +3387,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "dumpogl", + false}, + {"keyDumpGL", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dumpGL, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dumpgl", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 338f947c4..4ade43d61 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -303,6 +303,12 @@ SetupActionData setupActionDataOther[] = InputAction::DUMP_TESTS, "", }, + { + // TRANSLATORS: input action name + N_("Print OpenGL version in chat"), + InputAction::DUMP_GL, + "", + }, { // TRANSLATORS: input action name N_("Dump environments into log"), -- cgit v1.2.3-70-g09d2