Class WindowInput
- Namespace
- Lime
- Assembly
- Lime.dll
public class WindowInput
- Inheritance
-
WindowInput
- Inherited Members
Constructors
WindowInput(IWindow)
public WindowInput(IWindow ownerWindow)
Parameters
ownerWindow
IWindow
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
key
Key
GetModifiers()
public Modifiers GetModifiers()
Returns
GetNumTouches()
public int GetNumTouches()
Returns
GetTouchPosition(int)
public Vector2 GetTouchPosition(int index)
Parameters
index
int
Returns
IsKeyPressed(Key)
Returns true while the user holds down the key identified by name. Think auto fire.
public bool IsKeyPressed(Key key)
Parameters
key
Key
Returns
IsMousePressed()
public bool IsMousePressed()
Returns
IsMousePressed(int)
public bool IsMousePressed(int button)
Parameters
button
int
Returns
IsTouching(int)
public bool IsTouching(int index)
Parameters
index
int
Returns
MouseDesktopToLocal(Vector2)
Converts desktop mouse coordinates into transformed local mouse coordinates.
public Vector2 MouseDesktopToLocal(Vector2 desktopMousePosition)
Parameters
desktopMousePosition
Vector2
Returns
MouseLocalToDesktop(Vector2)
Converts transformed local mouse coordinates into desktop mouse coordinates.
public Vector2 MouseLocalToDesktop(Vector2 localMousePosition)
Parameters
localMousePosition
Vector2
Returns
WasDoubleClickPressed(int)
public bool WasDoubleClickPressed(int buttonIndex)
Parameters
buttonIndex
int
Returns
WasKeyPressed(Key)
Returns true during the frame the user starts pressing down the key identified by name.
public bool WasKeyPressed(Key key)
Parameters
key
Key
Returns
WasKeyReleased(Key)
Returns true during the frame the user releases the key identified by name.
public bool WasKeyReleased(Key key)
Parameters
key
Key
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
key
Key
Returns
WasMousePressed()
public bool WasMousePressed()
Returns
WasMousePressed(int)
public bool WasMousePressed(int button)
Parameters
button
int
Returns
WasMouseReleased()
public bool WasMouseReleased()
Returns
WasMouseReleased(int)
public bool WasMouseReleased(int button)
Parameters
button
int
Returns
WasTouchBegan(int)
public bool WasTouchBegan(int index)
Parameters
index
int
Returns
WasTouchEnded(int)
public bool WasTouchEnded(int index)
Parameters
index
int