mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* 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.
49 lines
1.3 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|