Files
RobustToolbox/Robust.Client/GameController/GameController.Input.cs
Acruid 2183cd7ca1 Massive Namespace Cleanup (#1544)
* Removed the Interfaces folder.
* All objects inside the GameObjects subfolders are now in the GameObjects namespace.
* Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces.
* Simplified Robust.client.Graphics namespace.
* Automated remove redundant using statements.
2021-02-10 23:27:19 -08:00

49 lines
1.3 KiB
C#

using Robust.Client.Input;
namespace Robust.Client
{
internal sealed partial class GameController
{
/// <summary>
/// Invoked when a key on the keyboard or a mouse button is pressed down.
/// </summary>
public void KeyDown(KeyEventArgs keyEvent)
{
_inputManager.KeyDown(keyEvent);
}
/// <summary>
/// Invoked when a key on the keyboard or a mouse button is released.
/// </summary>
public void KeyUp(KeyEventArgs keyEvent)
{
_inputManager.KeyUp(keyEvent);
}
public void TextEntered(TextEventArgs textEvent)
{
_userInterfaceManager.TextEntered(textEvent);
}
/// <summary>
/// Invoked when the mouse is moved inside the game window.
/// </summary>
public void MouseMove(MouseMoveEventArgs mouseMoveEventArgs)
{
_userInterfaceManager.MouseMove(mouseMoveEventArgs);
}
/// <summary>
/// Invoked when the mouse wheel is moved.
/// </summary>
public void MouseWheel(MouseWheelEventArgs mouseWheelEventArgs)
{
_userInterfaceManager.MouseWheel(mouseWheelEventArgs);
if (mouseWheelEventArgs.Handled)
{
return;
}
}
}
}