Exemplo n.º 1
0
 public static string GetPromptPath(this SteamControllerAxis axis, ISteamController controller)
 {
     if (controller is SteamworksSteamController)
     {
         return(((SteamworksSteamController)controller).GetAxisPromptPath(axis.GetID(), axis.GetActionSet().GetID()));
     }
     return(null);
 }
Exemplo n.º 2
0
        public static string GetPrompt(this SteamControllerAxis axis, ISteamController controller)
        {
            var path = axis.GetPromptPath(controller);

            if (path != null)
            {
                return('[' + path + ']');
            }
            else
            {
                return("?");
            }
        }
Exemplo n.º 3
0
 public static SteamControllerActionSet GetActionSet(this SteamControllerAxis button)
 {
     return(SteamControllerActionSet.InGame);
 }
Exemplo n.º 4
0
 public static string GetID(this SteamControllerAxis button)
 {
     return(button.ToString().ToLowerUnderscored());
 }