Пример #1
0
        private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
        {
            // use local bindable to avoid changing enabled state of game host's bindable.
            configSensitivity = config.GetBindable <double>(FrameworkSetting.CursorSensitivity);
            localSensitivity  = configSensitivity.GetUnboundCopy();

            windowMode           = config.GetBindable <WindowMode>(FrameworkSetting.WindowMode);
            ignoredInputHandlers = config.GetBindable <string>(FrameworkSetting.IgnoredInputHandlers);

            Children = new Drawable[]
            {
                new SettingsCheckbox
                {
                    LabelText = "Raw input",
                    Current   = rawInputToggle
                },
                new SensitivitySetting
                {
                    LabelText = "Cursor sensitivity",
                    Current   = localSensitivity
                },
                new SettingsCheckbox
                {
                    LabelText = "Map absolute input to window",
                    Current   = config.GetBindable <bool>(FrameworkSetting.MapAbsoluteInputToWindow)
                },
                confineMouseModeSetting = new SettingsEnumDropdown <OsuConfineMouseMode>
                {
                    LabelText = "Confine mouse cursor to window",
                    Current   = osuConfig.GetBindable <OsuConfineMouseMode>(OsuSetting.ConfineMouseMode)
                },
                new SettingsCheckbox
                {
                    LabelText = "Disable mouse wheel during gameplay",
                    Current   = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableWheel)
                },
                new SettingsCheckbox
                {
                    LabelText = "Disable mouse buttons during gameplay",
                    Current   = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableButtons)
                },
            };
        }
Пример #2
0
        private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
        {
            // use local bindable to avoid changing enabled state of game host's bindable.
            handlerSensitivity = mouseHandler.Sensitivity.GetBoundCopy();
            localSensitivity   = handlerSensitivity.GetUnboundCopy();

            relativeMode = mouseHandler.UseRelativeMode.GetBoundCopy();
            windowMode   = config.GetBindable <WindowMode>(FrameworkSetting.WindowMode);

            Children = new Drawable[]
            {
                highPrecisionMouse = new SettingsCheckbox
                {
                    LabelText   = MouseSettingsStrings.HighPrecisionMouse,
                    TooltipText = MouseSettingsStrings.HighPrecisionMouseTooltip,
                    Current     = relativeMode,
                    Keywords    = new[] { @"raw", @"input", @"relative", @"cursor" }
                },
                new SensitivitySetting
                {
                    LabelText = MouseSettingsStrings.CursorSensitivity,
                    Current   = localSensitivity
                },
                confineMouseModeSetting = new SettingsEnumDropdown <OsuConfineMouseMode>
                {
                    LabelText = MouseSettingsStrings.ConfineMouseMode,
                    Current   = osuConfig.GetBindable <OsuConfineMouseMode>(OsuSetting.ConfineMouseMode)
                },
                new SettingsCheckbox
                {
                    LabelText   = MouseSettingsStrings.DisableMouseWheelVolumeAdjust,
                    TooltipText = MouseSettingsStrings.DisableMouseWheelVolumeAdjustTooltip,
                    Current     = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableWheel)
                },
                new SettingsCheckbox
                {
                    LabelText = MouseSettingsStrings.DisableMouseButtons,
                    Current   = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableButtons)
                },
            };
        }
Пример #3
0
        private void load()
        {
            // use local bindable to avoid changing enabled state of game host's bindable.
            handlerDeadzone = joystickHandler.DeadzoneThreshold.GetBoundCopy();
            localDeadzone   = handlerDeadzone.GetUnboundCopy();

            Children = new Drawable[]
            {
                new SettingsCheckbox
                {
                    LabelText = CommonStrings.Enabled,
                    Current   = enabled
                },
                deadzoneSlider = new SettingsSlider <float>
                {
                    LabelText           = JoystickSettingsStrings.DeadzoneThreshold,
                    KeyboardStep        = 0.01f,
                    DisplayAsPercentage = true,
                    Current             = localDeadzone,
                },
            };
        }
Пример #4
0
        private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
        {
            // use local bindable to avoid changing enabled state of game host's bindable.
            handlerSensitivity = mouseHandler.Sensitivity.GetBoundCopy();
            localSensitivity   = handlerSensitivity.GetUnboundCopy();

            relativeMode = mouseHandler.UseRelativeMode.GetBoundCopy();
            windowMode   = config.GetBindable <WindowMode>(FrameworkSetting.WindowMode);

            Children = new Drawable[]
            {
                new SettingsCheckbox
                {
                    LabelText = "High precision mouse",
                    Current   = relativeMode
                },
                new SensitivitySetting
                {
                    LabelText = "Cursor sensitivity",
                    Current   = localSensitivity
                },
                confineMouseModeSetting = new SettingsEnumDropdown <OsuConfineMouseMode>
                {
                    LabelText = "Confine mouse cursor to window",
                    Current   = osuConfig.GetBindable <OsuConfineMouseMode>(OsuSetting.ConfineMouseMode)
                },
                new SettingsCheckbox
                {
                    LabelText = "Disable mouse wheel during gameplay",
                    Current   = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableWheel)
                },
                new SettingsCheckbox
                {
                    LabelText = "Disable mouse buttons during gameplay",
                    Current   = osuConfig.GetBindable <bool>(OsuSetting.MouseDisableButtons)
                },
            };
        }