Files
RobustToolbox/Robust.Client/Interfaces/Input/IKeyBinding.cs
T
Pieter-Jan BriersandGitHub b282881482 Key name API, slight input manager cleanup. (#985)
* Adds API for retrieving correct key names & key combination strings.

* Remove (most) bit flag stuff from InputManager.cs.

Replaced it with a union.
2020-02-17 11:13:12 +01:00

18 lines
465 B
C#

using Robust.Client.Input;
using Robust.Shared.Input;
namespace Robust.Client.Interfaces.Input
{
public interface IKeyBinding
{
BoundKeyState State { get; }
BoundKeyFunction Function { get; }
KeyBindingType BindingType { get; }
/// <summary>
/// Gets a user-presentable, localized & keyboard-adjusted string for which buttons the user has to press.
/// </summary>
string GetKeyString();
}
}