Class WindowInput
- Namespace
- Lime
- Assembly
- Lime.dll
public class WindowInput
- Inheritance
-
WindowInput
- Inherited Members
Constructors
WindowInput(IWindow)
public WindowInput(IWindow ownerWindow)
Parameters
ownerWindowIWindow
Properties
Changed
public bool Changed { get; }
Property Value
DroppedFiles
Returns list of files dropped on the window. This list automatically being cleaned up after window update.
public List<string> DroppedFiles { get; }
Property Value
MousePosition
The current mouse position in local coordinates. (read only)
public Vector2 MousePosition { get; }
Property Value
MousePositionTransform
public Matrix32 MousePositionTransform { get; set; }
Property Value
TextInput
public string TextInput { get; }
Property Value
WheelScrollAmount
Indicates how much the mouse wheel was moved
public float WheelScrollAmount { get; }
Property Value
Methods
ConsumeKey(Key)
public void ConsumeKey(Key key)
Parameters
keyKey
GetModifiers()
public Modifiers GetModifiers()
Returns
GetNumTouches()
public int GetNumTouches()
Returns
GetTouchPosition(int)
public Vector2 GetTouchPosition(int index)
Parameters
indexint
Returns
IsKeyPressed(Key)
Returns true while the user holds down the key identified by name. Think auto fire.
public bool IsKeyPressed(Key key)
Parameters
keyKey
Returns
IsMousePressed()
public bool IsMousePressed()
Returns
IsMousePressed(int)
public bool IsMousePressed(int button)
Parameters
buttonint
Returns
IsTouching(int)
public bool IsTouching(int index)
Parameters
indexint
Returns
MouseDesktopToLocal(Vector2)
Converts desktop mouse coordinates into transformed local mouse coordinates.
public Vector2 MouseDesktopToLocal(Vector2 desktopMousePosition)
Parameters
desktopMousePositionVector2
Returns
MouseLocalToDesktop(Vector2)
Converts transformed local mouse coordinates into desktop mouse coordinates.
public Vector2 MouseLocalToDesktop(Vector2 localMousePosition)
Parameters
localMousePositionVector2
Returns
WasDoubleClickPressed(int)
public bool WasDoubleClickPressed(int buttonIndex)
Parameters
buttonIndexint
Returns
WasKeyPressed(Key)
Returns true during the frame the user starts pressing down the key identified by name.
public bool WasKeyPressed(Key key)
Parameters
keyKey
Returns
WasKeyReleased(Key)
Returns true during the frame the user releases the key identified by name.
public bool WasKeyReleased(Key key)
Parameters
keyKey
Returns
WasKeyRepeated(Key)
Returns true during the frame the user starts pressing down the key identified by name or key event was repeated.
public bool WasKeyRepeated(Key key)
Parameters
keyKey
Returns
WasMousePressed()
public bool WasMousePressed()
Returns
WasMousePressed(int)
public bool WasMousePressed(int button)
Parameters
buttonint
Returns
WasMouseReleased()
public bool WasMouseReleased()
Returns
WasMouseReleased(int)
public bool WasMouseReleased(int button)
Parameters
buttonint
Returns
WasTouchBegan(int)
public bool WasTouchBegan(int index)
Parameters
indexint
Returns
WasTouchEnded(int)
public bool WasTouchEnded(int index)
Parameters
indexint