Jypeli
10
The simple game programming library
AccelerometerAnalogState.cs
Siirry tämän tiedoston dokumentaatioon.
1
namespace
Jypeli
2
{
3
public
class
AccelerometerAnalogState
:
AnalogState
4
{
5
public
double
State
{
get
;
private
set
; }
6
public
double
AnalogChange
{
get
;
private
set
; }
7
public
Vector
StateVector
{
get
;
private
set
; }
8
public
Vector
MouseMovement
{
get
;
private
set
; }
9
10
internal
AccelerometerAnalogState
(
Vector
prev,
Vector
curr )
11
{
12
StateVector
= curr;
13
State
= curr.
Magnitude
;
14
MouseMovement
= curr - prev;
15
AnalogChange
=
MouseMovement
.
Magnitude
;
16
}
17
}
18
}
Jypeli.AccelerometerAnalogState
Definition:
AccelerometerAnalogState.cs:4
Jypeli.AccelerometerAnalogState.AccelerometerAnalogState
AccelerometerAnalogState(Vector prev, Vector curr)
Definition:
AccelerometerAnalogState.cs:10
Jypeli.AccelerometerAnalogState.MouseMovement
Vector MouseMovement
Definition:
AccelerometerAnalogState.cs:8
Jypeli.AccelerometerAnalogState.State
double State
Definition:
AccelerometerAnalogState.cs:5
Jypeli.AccelerometerAnalogState.StateVector
Vector StateVector
Definition:
AccelerometerAnalogState.cs:7
Jypeli.AccelerometerAnalogState.AnalogChange
double AnalogChange
Definition:
AccelerometerAnalogState.cs:6
Jypeli.AnalogState
Parametrit analogisen ohjauksen (hiiren tai ohjaustikun) tapahtumalle. Vanhentunut tapa,...
Definition:
AnalogState.cs:37
Jypeli
Definition:
Automobile.cs:5
Jypeli.Vector
2D-vektori.
Definition:
Vector.cs:67
Jypeli.Vector.Magnitude
double Magnitude
Vektorin pituus.
Definition:
Vector.cs:345
Jypeli
Controls
Accelerometer
AccelerometerAnalogState.cs
Generoinut projektille Jypeli Tue Sep 14 2021 15:57:41
1.9.2