mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
* Harmonize capitalization of action names (closes #2215) * Fix confusion between delta time and simulation time (closes #2536)
23 lines
632 B
Lua
23 lines
632 B
Lua
--testing_keybindings.asset
|
|
|
|
local propertyHelper = asset.require("./property_helper")
|
|
|
|
local take_screenshot = {
|
|
Identifier = "testing_keyboard.take_screenshot",
|
|
Name = "Take screenshot",
|
|
Command = "openspace.takeScreenshot()",
|
|
Documentation = "Saves the contents of the screen to a file in the ${SCREENSHOTS} directory",
|
|
GuiPath = "/Rendering",
|
|
IsLocal = true
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.action.registerAction(take_screenshot)
|
|
openspace.bindKey("F7", take_screenshot.Identifier)
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.action.removeAction(take_screenshot)
|
|
openspace.clearKey("F7")
|
|
end)
|