Class InputData
Namespace: Unity.Tiny.Input
Syntax
public class InputData : IDisposable
Fields
hasMouse
Declaration
public bool hasMouse
Field Value
Type | Description |
---|---|
Boolean |
hasTouch
Declaration
public bool hasTouch
Field Value
Type | Description |
---|---|
Boolean |
keysJustDown
Declaration
public NativeList<KeyCode> keysJustDown
Field Value
Type | Description |
---|---|
NativeList<KeyCode> |
keysJustUp
Declaration
public NativeList<KeyCode> keysJustUp
Field Value
Type | Description |
---|---|
NativeList<KeyCode> |
keysPressed
Declaration
public NativeList<KeyCode> keysPressed
Field Value
Type | Description |
---|---|
NativeList<KeyCode> |
mouseDeltaX
Declaration
public int mouseDeltaX
Field Value
Type | Description |
---|---|
Int32 |
mouseDeltaY
Declaration
public int mouseDeltaY
Field Value
Type | Description |
---|---|
Int32 |
mouseJustDown
Declaration
public int mouseJustDown
Field Value
Type | Description |
---|---|
Int32 |
mouseJustUp
Declaration
public int mouseJustUp
Field Value
Type | Description |
---|---|
Int32 |
mousePressed
Declaration
public int mousePressed
Field Value
Type | Description |
---|---|
Int32 |
mouseX
Declaration
public int mouseX
Field Value
Type | Description |
---|---|
Int32 |
mouseY
Declaration
public int mouseY
Field Value
Type | Description |
---|---|
Int32 |
scrollDeltaX
Declaration
public float scrollDeltaX
Field Value
Type | Description |
---|---|
Single |
scrollDeltaY
Declaration
public float scrollDeltaY
Field Value
Type | Description |
---|---|
Single |
touches
Declaration
public NativeList<Touch> touches
Field Value
Type | Description |
---|---|
NativeList<Touch> |
Methods
AdvanceFrame()
Declaration
public void AdvanceFrame()
Clear()
Declaration
public void Clear()
ContainsKey(ref NativeList<KeyCode>, KeyCode)
Declaration
public bool ContainsKey(ref NativeList<KeyCode> list, KeyCode c)
Parameters
Type | Name | Description |
---|---|---|
NativeList<KeyCode> | list | |
KeyCode | c |
Returns
Type | Description |
---|---|
Boolean |
Dispose()
Declaration
public void Dispose()
KeyDown(KeyCode)
Declaration
public void KeyDown(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | key |
KeyUp(KeyCode)
Declaration
public void KeyUp(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | key |
MouseDown(Int32)
Declaration
public void MouseDown(int btn)
Parameters
Type | Name | Description |
---|---|---|
Int32 | btn |
MouseUp(Int32)
Declaration
public void MouseUp(int btn)
Parameters
Type | Name | Description |
---|---|---|
Int32 | btn |
RemoveKey(ref NativeList<KeyCode>, KeyCode)
Declaration
public void RemoveKey(ref NativeList<KeyCode> list, KeyCode c)
Parameters
Type | Name | Description |
---|---|---|
NativeList<KeyCode> | list | |
KeyCode | c |
TouchEvent(Int32, TouchState, Int32, Int32)
Declaration
public void TouchEvent(int fingerId, TouchState phase, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | fingerId | |
TouchState | phase | |
Int32 | x | |
Int32 | y |