Exemplo n.º 1
0
            protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
            {
                switch (args.Key)
                {
                case Key.Right:
                    beatDivisor.Next();
                    OnUserChange();
                    return(true);

                case Key.Left:
                    beatDivisor.Previous();
                    OnUserChange();
                    return(true);

                default:
                    return(false);
                }
            }
Exemplo n.º 2
0
            protected override bool OnKeyDown(KeyDownEvent e)
            {
                switch (e.Key)
                {
                case Key.Right:
                    beatDivisor.Next();
                    OnUserChange();
                    return(true);

                case Key.Left:
                    beatDivisor.Previous();
                    OnUserChange();
                    return(true);

                default:
                    return(false);
                }
            }