コード例 #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);
                }
            }
コード例 #2
0
ファイル: BeatDivisorControl.cs プロジェクト: pujitm/osu
            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);
                }
            }