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