Example #1
0
    void Update()
    {
        RemoteState input = Remote.Access(channel).state;

        TestButton(ref input, RemoteButton.Up, "D Pad/Up");
        TestButton(ref input, RemoteButton.Down, "D Pad/Down");
        TestButton(ref input, RemoteButton.Left, "D Pad/Left");
        TestButton(ref input, RemoteButton.Right, "D Pad/Right");

        TestButton(ref input, RemoteButton.One, "Button/1");
        TestButton(ref input, RemoteButton.Two, "Button/2");
        TestButton(ref input, RemoteButton.A, "Button/A");
        TestButton(ref input, RemoteButton.B, "Button/B");

        TestButton(ref input, RemoteButton.Minus, "Function/Minus");
        TestButton(ref input, RemoteButton.Plus, "Function/Plus");

        TestAcceleration(input.acc.x, "Accelerometer/X");
        TestAcceleration(input.acc.y, "Accelerometer/Y");
        TestAcceleration(input.acc.z, "Accelerometer/Z");
    }