Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Input.AccelerometerState Struct Reference

An encapsulation of the accelerometer's current state. More...

Public Member Functions

 AccelerometerState (Vector3 acceleration, bool isActive)
 Initializes a new AccelerometerState.
 
override string ToString ()
 Returns a string containing the values of the Acceleration and IsActive properties.
 

Properties

Vector3 Acceleration [get]
 Gets the accelerometer's current value in G-force.
 
bool IsActive [get]
 Gets whether or not the accelerometer is active and running.
 

Detailed Description

An encapsulation of the accelerometer's current state.

Constructor & Destructor Documentation

◆ AccelerometerState()

VerticesEngine.Input.AccelerometerState.AccelerometerState ( Vector3 acceleration,
bool isActive )

Initializes a new AccelerometerState.

Parameters
accelerationThe current acceleration (in G-force) of the accelerometer.
isActiveWhether or not the accelerometer is active.

Member Function Documentation

◆ ToString()

override string VerticesEngine.Input.AccelerometerState.ToString ( )

Returns a string containing the values of the Acceleration and IsActive properties.

Returns
A new string describing the state.

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