diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 02:33:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 02:33:48 +0300 |
commit | eade4818db87cc41e4c014688e5ee0d15ede6912 (patch) | |
tree | 422a84ea0dc5444fad986a75b6c783f83a111aec /src/input | |
parent | 1b27066e2d98c82b0bf135188ebb57e16af669df (diff) | |
download | manaplus-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.gz manaplus-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.bz2 manaplus-eade4818db87cc41e4c014688e5ee0d15ede6912.tar.xz manaplus-eade4818db87cc41e4c014688e5ee0d15ede6912.zip |
Move chat command /dumpogl into actions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 9 | ||||
-rw-r--r-- | src/input/pages/other.cpp | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index bc819bf1e..d372699ef 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -401,6 +401,7 @@ namespace InputAction DUMP_GRAPHICS, DUMP_ENVIRONMENT, DUMP_TESTS, + DUMP_OGL, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index b363a7ce1..0eb445c53 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3378,6 +3378,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "dumpt", + false}, + {"keyDumpOGL", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dumpOGL, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dumpogl", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index e91bd40b4..338f947c4 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -310,6 +310,12 @@ SetupActionData setupActionDataOther[] = "", }, { + // TRANSLATORS: input action name + N_("Dump OpenGL state into log"), + InputAction::DUMP_OGL, + "", + }, + { "", InputAction::NO_VALUE, "" |