1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Don't use nameof(MouseHandler)

This commit is contained in:
Leon Gebler 2020-12-02 19:45:59 +01:00
parent bbde1f6b9c
commit a2a10d4e13

View File

@ -76,10 +76,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{
// this is temporary until we support per-handler settings.
const string raw_mouse_handler = @"OsuTKRawMouseHandler";
const string osutk_standard_mouse_handler = @"OsuTKMouseHandler";
string standardMouseHandlers = $"{osutk_standard_mouse_handler} {nameof(MouseHandler)}";
const string standard_mouse_handlers = @"OsuTKMouseHandler MouseHandler";
ignoredInputHandlers.Value = enabled.NewValue ? standardMouseHandlers : raw_mouse_handler;
ignoredInputHandlers.Value = enabled.NewValue ? standard_mouse_handlers : raw_mouse_handler;
};
ignoredInputHandlers = config.GetBindable<string>(FrameworkSetting.IgnoredInputHandlers);