public void Clear() { Generation = 0; Buttons[0].Clear(); Buttons[1].Clear(); Acc = Vector3.Zero; AccPitch = 0; AccRoll = 0; AccGesture = EAccelerometerGesture.None; Heading = 0; Pins[0].Clear(); Pins[1].Clear(); Pins[2].Clear(); }
public DeviceState(int _) { Generation = 0; Buttons = new ButtonState[2]; Buttons[0] = new ButtonState(EButton.A); Buttons[1] = new ButtonState(EButton.B); Acc = Vector3.Zero; AccPitch = 0; AccRoll = 0; AccGesture = EAccelerometerGesture.None; Heading = 0; Pins = new PinState[3]; Pins[0] = new PinState(0); Pins[1] = new PinState(1); Pins[2] = new PinState(2); }