コード例 #1
0
        /// <summary>Load resources here.</summary>
        /// <param name="e">Not used.</param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            new KeyboardControl(this);
            mouseControl = new MouseControl(this);

            if (Joysticks.Count == 1)
            {
                joystickControl = new JoystickControl(Joysticks[0], this);
            }

            Reset();
        }
コード例 #2
0
ファイル: SunflowerWindow.cs プロジェクト: bcourter/Sunflower
        /// <summary>Load resources here.</summary>
        /// <param name="e">Not used.</param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            new KeyboardControl(this);
            mouseControl = new MouseControl(this);

            if (Joysticks.Count == 1)
                joystickControl = new JoystickControl(Joysticks[0], this);

            Reset();
        }