mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 02:27:08 +02:00
RobustToolbox projects should be named Robust.* This PR changes the RobustToolbox projects from SS14.* to Robust.* Updates SS14.* prefixes/namespaces to Robust.* Updates SpaceStation14.sln to RobustToolbox.sln Updates MSBUILD/SS14.* to MSBUILD/Robust.* Updates CSProject and MSBuild references for the above Updates git_helper.py Removes Runserver and Runclient as they are unusable
37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using Robust.Shared.Input;
|
|
|
|
namespace Robust.Client.Input
|
|
{
|
|
/// <summary>
|
|
/// Contains a helper function for setting up all default engine contexts.
|
|
/// </summary>
|
|
internal static class EngineContexts
|
|
{
|
|
/// <summary>
|
|
/// Adds the default set of engine contexts to a context container.
|
|
/// </summary>
|
|
/// <param name="contexts">Default contexts will be set up inside this container.</param>
|
|
public static void SetupContexts(IInputContextContainer contexts)
|
|
{
|
|
var common = contexts.GetContext(InputContextContainer.DefaultContextName);
|
|
common.AddFunction(EngineKeyFunctions.EscapeMenu);
|
|
common.AddFunction(EngineKeyFunctions.HideUI);
|
|
common.AddFunction(EngineKeyFunctions.ShowDebugMonitors);
|
|
common.AddFunction(EngineKeyFunctions.MoveUp);
|
|
common.AddFunction(EngineKeyFunctions.MoveDown);
|
|
common.AddFunction(EngineKeyFunctions.MoveLeft);
|
|
common.AddFunction(EngineKeyFunctions.MoveRight);
|
|
common.AddFunction(EngineKeyFunctions.Run);
|
|
|
|
var editor = contexts.New("editor", common);
|
|
editor.AddFunction(EngineKeyFunctions.EditorLinePlace);
|
|
editor.AddFunction(EngineKeyFunctions.EditorGridPlace);
|
|
editor.AddFunction(EngineKeyFunctions.EditorPlaceObject);
|
|
editor.AddFunction(EngineKeyFunctions.EditorCancelPlace);
|
|
editor.AddFunction(EngineKeyFunctions.EditorRotateObject);
|
|
|
|
var human = contexts.New("human", common);
|
|
}
|
|
}
|
|
}
|