2017-04-30 15:42:09 +02:00
|
|
|
|
|
2015-02-08 22:51:52 +01:00
|
|
|
|
namespace DS4Windows
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
|
|
|
|
public class DS4StateExposed
|
|
|
|
|
{
|
|
|
|
|
private DS4State _state;
|
|
|
|
|
|
|
|
|
|
public DS4StateExposed()
|
|
|
|
|
{
|
|
|
|
|
_state = new DS4State();
|
|
|
|
|
}
|
2017-07-16 10:30:49 +02:00
|
|
|
|
|
2014-03-28 02:50:40 +01:00
|
|
|
|
public DS4StateExposed(DS4State state)
|
|
|
|
|
{
|
|
|
|
|
_state = state;
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-18 22:37:01 +02:00
|
|
|
|
bool Square { get { return _state.Square; } }
|
|
|
|
|
bool Triangle { get { return _state.Triangle; } }
|
|
|
|
|
bool Circle { get { return _state.Circle; } }
|
|
|
|
|
bool Cross { get { return _state.Cross; } }
|
|
|
|
|
bool DpadUp { get { return _state.DpadUp; } }
|
|
|
|
|
bool DpadDown { get { return _state.DpadDown; } }
|
|
|
|
|
bool DpadLeft { get { return _state.DpadLeft; } }
|
|
|
|
|
bool DpadRight { get { return _state.DpadRight; } }
|
|
|
|
|
bool L1 { get { return _state.L1; } }
|
|
|
|
|
bool L3 { get { return _state.L3; } }
|
|
|
|
|
bool R1 { get { return _state.R1; } }
|
|
|
|
|
bool R3 { get { return _state.R3; } }
|
|
|
|
|
bool Share { get { return _state.Share; } }
|
|
|
|
|
bool Options { get { return _state.Options; } }
|
|
|
|
|
bool PS { get { return _state.PS; } }
|
|
|
|
|
bool Touch1 { get { return _state.Touch1; } }
|
|
|
|
|
bool Touch2 { get { return _state.Touch2; } }
|
|
|
|
|
bool TouchButton { get { return _state.TouchButton; } }
|
|
|
|
|
bool Touch1Finger { get { return _state.Touch1Finger; } }
|
2017-06-22 12:24:51 +02:00
|
|
|
|
bool Touch2Fingers { get { return _state.Touch2Fingers; } }
|
2017-07-18 22:37:01 +02:00
|
|
|
|
byte LX { get { return _state.LX; } }
|
|
|
|
|
byte RX { get { return _state.RX; } }
|
|
|
|
|
byte LY { get { return _state.LY; } }
|
|
|
|
|
byte RY { get { return _state.RY; } }
|
|
|
|
|
byte L2 { get { return _state.L2; } }
|
|
|
|
|
byte R2 { get { return _state.R2; } }
|
2014-03-28 02:50:40 +01:00
|
|
|
|
int Battery { get { return _state.Battery; } }
|
|
|
|
|
|
2017-07-17 02:42:43 +02:00
|
|
|
|
public int GyroYaw { get { return _state.Motion.gyroYaw; } }
|
2017-07-18 22:37:01 +02:00
|
|
|
|
public int getGyroYaw()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.gyroYaw;
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-17 02:42:43 +02:00
|
|
|
|
public int GyroPitch { get { return _state.Motion.gyroPitch; } }
|
2017-07-18 22:37:01 +02:00
|
|
|
|
public int getGyroPitch()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.gyroPitch;
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-17 02:42:43 +02:00
|
|
|
|
public int GyroRoll { get { return _state.Motion.gyroRoll; } }
|
2017-07-18 22:37:01 +02:00
|
|
|
|
public int getGyroRoll()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.gyroRoll;
|
|
|
|
|
}
|
2017-06-22 03:07:21 +02:00
|
|
|
|
|
2017-07-16 10:30:49 +02:00
|
|
|
|
public int AccelX { get { return _state.Motion.accelX; } }
|
2017-07-13 15:17:00 +02:00
|
|
|
|
public int getAccelX()
|
2017-04-21 11:48:13 +02:00
|
|
|
|
{
|
2017-07-16 10:30:49 +02:00
|
|
|
|
return _state.Motion.accelX;
|
2017-04-21 11:48:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
2017-07-16 10:30:49 +02:00
|
|
|
|
public int AccelY { get { return _state.Motion.accelY; } }
|
2017-07-13 15:17:00 +02:00
|
|
|
|
public int getAccelY()
|
2017-04-21 11:48:13 +02:00
|
|
|
|
{
|
2017-07-16 10:30:49 +02:00
|
|
|
|
return _state.Motion.accelY;
|
2017-04-21 11:48:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
2017-07-16 10:30:49 +02:00
|
|
|
|
public int AccelZ { get { return _state.Motion.accelZ; } }
|
2017-07-13 15:17:00 +02:00
|
|
|
|
public int getAccelZ()
|
2017-04-21 11:48:13 +02:00
|
|
|
|
{
|
2017-07-16 10:30:49 +02:00
|
|
|
|
return _state.Motion.accelZ;
|
2017-04-21 11:48:13 +02:00
|
|
|
|
}
|
2017-08-09 03:19:17 +02:00
|
|
|
|
|
|
|
|
|
public int OutputAccelX { get { return _state.Motion.outputAccelX; } }
|
|
|
|
|
public int getOutputAccelX()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.outputAccelX;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int OutputAccelY { get { return _state.Motion.outputAccelY; } }
|
|
|
|
|
public int getOutputAccelY()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.outputAccelY;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int OutputAccelZ { get { return _state.Motion.outputAccelZ; } }
|
|
|
|
|
public int getOutputAccelZ()
|
|
|
|
|
{
|
|
|
|
|
return _state.Motion.outputAccelZ;
|
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
}
|