mirror of
https://github.com/ppy/osu.git
synced 2024-12-30 12:42:56 +08:00
38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Input;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Localisation;
|
|
|
|
namespace osu.Game.Input
|
|
{
|
|
/// <summary>
|
|
/// Determines the situations in which the mouse cursor should be confined to the window.
|
|
/// Expands upon <see cref="ConfineMouseMode"/> by providing the option to confine during gameplay.
|
|
/// </summary>
|
|
public enum OsuConfineMouseMode
|
|
{
|
|
/// <summary>
|
|
/// The mouse cursor will be free to move outside the game window.
|
|
/// </summary>
|
|
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.NeverConfine))]
|
|
Never,
|
|
|
|
/// <summary>
|
|
/// The mouse cursor will be locked to the window bounds during gameplay,
|
|
/// but may otherwise move freely.
|
|
/// </summary>
|
|
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.ConfineDuringGameplay))]
|
|
DuringGameplay,
|
|
|
|
/// <summary>
|
|
/// The mouse cursor will always be locked to the window bounds while the game has focus.
|
|
/// </summary>
|
|
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.AlwaysConfine))]
|
|
Always
|
|
}
|
|
}
|