Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game/Localisation/JoystickSettingsStrings.cs
2264 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Localisation;

namespace osu.Game.Localisation
{
    public static class JoystickSettingsStrings
    {
        private const string prefix = @"osu.Game.Resources.Localisation.JoystickSettings";

        /// <summary>
        /// "Joystick / Gamepad"
        /// </summary>
        public static LocalisableString JoystickGamepad => new TranslatableString(getKey(@"joystick_gamepad"), @"Joystick / Gamepad");

        /// <summary>
        /// "Deadzone"
        /// </summary>
        public static LocalisableString DeadzoneThreshold => new TranslatableString(getKey(@"deadzone_threshold"), @"Deadzone");

        private static string getKey(string key) => $@"{prefix}:{key}";
    }
}