Jypeli 10
The simple game programming library
AccelerometerAnalogState.cs
Siirry tämän tiedoston dokumentaatioon.
1namespace Jypeli
2{
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;
16 }
17 }
18}
AccelerometerAnalogState(Vector prev, Vector curr)
Parametrit analogisen ohjauksen (hiiren tai ohjaustikun) tapahtumalle. Vanhentunut tapa,...
Definition: AnalogState.cs:37
2D-vektori.
Definition: Vector.cs:67
double Magnitude
Vektorin pituus.
Definition: Vector.cs:345