Ejemplo n.º 1
0
        void spinnerTimer_Tick(object sender, EventArgs e)
        {
            if (leftKeyDown)
            {
                tempestSoundIO.MoveWheel(-1);
            }
            else if (rightKeyDown)
            {
                tempestSoundIO.MoveWheel(1);
            }

            // update our LED's
            if (tempestSoundIO.OnePlayerLED())
            {
                onePlayer.Fill = ledOnBrush;
            }
            else
            {
                onePlayer.Fill = ledOffBrush;
            }
            if (tempestSoundIO.TwoPlayerLED())
            {
                twoPlayer.Fill = ledOnBrush;
            }
            else
            {
                twoPlayer.Fill = ledOffBrush;
            }
        }
Ejemplo n.º 2
0
        void spinnerTimer_Tick(object sender, EventArgs e)
        {
            // update the spinner if we should
            if (leftKeyDown)
            {
                tempestSoundIO.MoveWheel(-1);
            }
            else if (rightKeyDown)
            {
                tempestSoundIO.MoveWheel(1);
            }

            // update our LED's
            if (tempestSoundIO.OnePlayerLED())
            {
                buttonOnePlayerStart.Fill = ledOnBrush;
            }
            else
            {
                buttonOnePlayerStart.Fill = ledOffBrush;
            }
            if (tempestSoundIO.TwoPlayerLED())
            {
                buttonTwoPlayerStart.Fill = ledOnBrush;
            }
            else
            {
                buttonTwoPlayerStart.Fill = ledOffBrush;
            }
        }