mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 16:42:53 +08:00
Merge pull request #8407 from peppy/disable-raw-input
Disable raw input toggle on all but windows
This commit is contained in:
commit
5be8934c8c
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using osu.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
@ -56,6 +57,13 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
|
||||||
|
{
|
||||||
|
rawInputToggle.Disabled = true;
|
||||||
|
sensitivity.Bindable.Disabled = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
rawInputToggle.ValueChanged += enabled =>
|
rawInputToggle.ValueChanged += enabled =>
|
||||||
{
|
{
|
||||||
// this is temporary until we support per-handler settings.
|
// this is temporary until we support per-handler settings.
|
||||||
@ -75,6 +83,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
|
|
||||||
ignoredInputHandler.TriggerChange();
|
ignoredInputHandler.TriggerChange();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private class SensitivitySetting : SettingsSlider<double, SensitivitySlider>
|
private class SensitivitySetting : SettingsSlider<double, SensitivitySlider>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user