mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-04 02:57: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
48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
using Robust.Shared;
|
|
using Robust.Shared.IoC;
|
|
using System;
|
|
using Robust.Client.Input;
|
|
using Robust.Shared.Maths;
|
|
using Robust.Shared.Input;
|
|
|
|
namespace Robust.Client.Interfaces.Input
|
|
{
|
|
/// <summary>
|
|
/// Manages key bindings, input commands and other misc. input systems.
|
|
/// </summary>
|
|
public interface IInputManager
|
|
{
|
|
bool Enabled { get; set; }
|
|
|
|
Vector2 MouseScreenPosition { get; }
|
|
|
|
BoundKeyMap NetworkBindMap { get; }
|
|
|
|
IInputContextContainer Contexts { get; }
|
|
|
|
void Initialize();
|
|
|
|
void KeyDown(KeyEventArgs e);
|
|
void KeyUp(KeyEventArgs e);
|
|
|
|
/// <summary>
|
|
/// Gets a key binding according to the function it is bound to.
|
|
/// </summary>
|
|
/// <param name="function">The function the key binding is bound to.</param>
|
|
/// <returns>The key binding.</returns>
|
|
IKeyBinding GetKeyBinding(BoundKeyFunction function);
|
|
bool TryGetKeyBinding(BoundKeyFunction function, out IKeyBinding binding);
|
|
|
|
/// <summary>
|
|
/// Returns the input command bound to a key function.
|
|
/// </summary>
|
|
/// <param name="function">The key function to find the bound input command for.</param>
|
|
/// <returns>An input command, if any. Null if no command is set.</returns>
|
|
InputCmdHandler GetInputCommand(BoundKeyFunction function);
|
|
|
|
void SetInputCommand(BoundKeyFunction function, InputCmdHandler cmdHandler);
|
|
|
|
event Action<BoundKeyEventArgs> KeyBindStateChanged;
|
|
}
|
|
}
|