Antura  1.1.0
Antura.Minigames.MinigamesInputManager Class Reference

Concrete implementation of an input manager accessible by minigames. More...

Inheritance diagram for Antura.Minigames.MinigamesInputManager:
Antura.Minigames.IInputManager

Public Member Functions

void Reset ()
 
void Update (float delta)
 

Properties

bool Enabled [get, set]
 
Vector2 LastPointerPosition [get]
 
Vector2 LastPointerDelta [get]
 
float LastDeltaTime [get]
 
Vector2 LastPointerPositionNormalized [get]
 
Vector2 LastPointerPositionPhysical [get]
 
Vector2 LastPointerDeltaNormalized [get]
 
Vector2 LastPointerDeltaPhysical [get]
 
- Properties inherited from Antura.Minigames.IInputManager
bool Enabled [set]
 
Vector2 LastPointerPosition [get]
 Pixel position of the touch More...
 
Vector2 LastPointerPositionNormalized [get]
 Normalized position of the touch: (0, 0) -> bottom left of the screen, (1, 1) -> top right of the screen More...
 
Vector2 LastPointerPositionPhysical [get]
 Physical position of the touch: it's equal to LastPointerPosition / ScreenDPI. The result is position in inches from screen's bottom left. Warning: on Android it is not a very precise measure on all devices. More...
 
Vector2 LastPointerDelta [get]
 Difference, in pixels, of current and previous values of pointer position More...
 
Vector2 LastPointerDeltaNormalized [get]
 Difference, in pixels, of current and previous values of pointer position More...
 
Vector2 LastPointerDeltaPhysical [get]
 Physical distance between current and previous values of pointer position. It equals to LastPointerDelta / ScreenDPI. Result is in inches. Warning: on Android it is not a very precise measure on all devices. More...
 
float LastDeltaTime [get]
 Time passed from the last update. More...
 

Events

Action onPointerDown
 
Action onPointerDrag
 
Action onPointerUp
 
- Events inherited from Antura.Minigames.IInputManager
System.Action onPointerDown
 
System.Action onPointerUp
 
System.Action onPointerDrag
 

Detailed Description

Concrete implementation of an input manager accessible by minigames.

Member Function Documentation

◆ Reset()

void Antura.Minigames.MinigamesInputManager.Reset ( )

◆ Update()

void Antura.Minigames.MinigamesInputManager.Update ( float  delta)

Property Documentation

◆ Enabled

bool Antura.Minigames.MinigamesInputManager.Enabled
getset

◆ LastDeltaTime

float Antura.Minigames.MinigamesInputManager.LastDeltaTime
get

◆ LastPointerDelta

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerDelta
get

◆ LastPointerDeltaNormalized

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerDeltaNormalized
get

◆ LastPointerDeltaPhysical

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerDeltaPhysical
get

◆ LastPointerPosition

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerPosition
get

◆ LastPointerPositionNormalized

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerPositionNormalized
get

◆ LastPointerPositionPhysical

Vector2 Antura.Minigames.MinigamesInputManager.LastPointerPositionPhysical
get

Event Documentation

◆ onPointerDown

Action Antura.Minigames.MinigamesInputManager.onPointerDown

◆ onPointerDrag

Action Antura.Minigames.MinigamesInputManager.onPointerDrag

◆ onPointerUp

Action Antura.Minigames.MinigamesInputManager.onPointerUp

The documentation for this class was generated from the following file: