mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-25 21:48:57 -05:00
Feature/codegen lua (#1906)
Adapting Lua functions to new codegen functionality Improve the documentation itself Add some styling to generated documentation Have parameter names for Lua-defined Lua function documentation Co-authored-by: Emma Broman <emma.broman@liu.se>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <openspace/scripting/lualibrary.h>
|
||||
#include <openspace/scripting/scriptengine.h>
|
||||
#include <openspace/util/json_helper.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <ghoul/misc/profiling.h>
|
||||
#include <ghoul/glm.h>
|
||||
#include <sstream>
|
||||
@@ -142,32 +143,10 @@ scripting::LuaLibrary KeybindingManager::luaLibrary() {
|
||||
return {
|
||||
"",
|
||||
{
|
||||
{
|
||||
"clearKeys",
|
||||
&luascriptfunctions::clearKeys,
|
||||
"",
|
||||
"Clear all key bindings"
|
||||
},
|
||||
{
|
||||
"clearKey",
|
||||
&luascriptfunctions::clearKey,
|
||||
"string or strings",
|
||||
"Unbinds the key or keys that have been provided. This function can be "
|
||||
"called with a single key or with an array of keys to remove all of the "
|
||||
"provided keys at once"
|
||||
},
|
||||
{
|
||||
"bindKey",
|
||||
&luascriptfunctions::bindKey,
|
||||
"string, string",
|
||||
"Binds a key by name to the action identified by the second argument"
|
||||
},
|
||||
{
|
||||
"getKeyBinding",
|
||||
&luascriptfunctions::getKeyBindings,
|
||||
"string",
|
||||
"Returns a list of information about the keybindings for the provided key"
|
||||
}
|
||||
codegen::lua::BindKey,
|
||||
codegen::lua::KeyBindings,
|
||||
codegen::lua::ClearKey,
|
||||
codegen::lua::ClearKeys
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user