Antura  1.1.0
Antura.Minigames.IInputManager Interface Reference

Provides generic input access to the core and to minigames.

See also
MinigamesInputManager
More...

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

Public Member Functions

void Update (float delta)
 
void Reset ()
 

Properties

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

System.Action onPointerDown
 
System.Action onPointerUp
 
System.Action onPointerDrag
 

Detailed Description

Provides generic input access to the core and to minigames.

See also
MinigamesInputManager

Member Function Documentation

◆ Reset()

void Antura.Minigames.IInputManager.Reset ( )

◆ Update()

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

Property Documentation

◆ Enabled

bool Antura.Minigames.IInputManager.Enabled
set

◆ LastDeltaTime

float Antura.Minigames.IInputManager.LastDeltaTime
get

Time passed from the last update.

◆ LastPointerDelta

Vector2 Antura.Minigames.IInputManager.LastPointerDelta
get

Difference, in pixels, of current and previous values of pointer position

◆ LastPointerDeltaNormalized

Vector2 Antura.Minigames.IInputManager.LastPointerDeltaNormalized
get

Difference, in pixels, of current and previous values of pointer position

◆ LastPointerDeltaPhysical

Vector2 Antura.Minigames.IInputManager.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.

◆ LastPointerPosition

Vector2 Antura.Minigames.IInputManager.LastPointerPosition
get

Pixel position of the touch

◆ LastPointerPositionNormalized

Vector2 Antura.Minigames.IInputManager.LastPointerPositionNormalized
get

Normalized position of the touch: (0, 0) -> bottom left of the screen, (1, 1) -> top right of the screen

◆ LastPointerPositionPhysical

Vector2 Antura.Minigames.IInputManager.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.

Event Documentation

◆ onPointerDown

System.Action Antura.Minigames.IInputManager.onPointerDown

◆ onPointerDrag

System.Action Antura.Minigames.IInputManager.onPointerDrag

◆ onPointerUp

System.Action Antura.Minigames.IInputManager.onPointerUp

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