Files
sbox-public/engine/Sandbox.Engine/Systems/Project/ProjectSettings/InputSettings.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

27 lines
587 B
C#

namespace Sandbox;
/// <summary>
/// A class that holds all configured input settings for a game.
/// This is serialized as a config and shared from the server to the client.
/// </summary>
[Expose]
public class InputSettings : ConfigData
{
public InputSettings()
{
Actions = new List<InputAction>();
InitDefault();
}
public void InitDefault()
{
Actions.Clear();
Actions.AddRange( Engine.Input.CommonInputs.Select( x => new InputAction( x ) ) );
}
/// <summary>
/// A list of actions used by the game.
/// </summary>
public List<InputAction> Actions { get; set; }
}