Esempio n. 1
0
        // Token: 0x060017EC RID: 6124 RVA: 0x00072344 File Offset: 0x00070544
        public static string GetGlyphString(MPEventSystemLocator eventSystemLocator, string actionName)
        {
            MPEventSystem eventSystem = eventSystemLocator.eventSystem;

            if (eventSystem)
            {
                return(Glyphs.GetGlyphString(eventSystem, actionName, AxisRange.Full));
            }
            return("UNKNOWN");
        }
Esempio n. 2
0
 // Token: 0x060017E7 RID: 6119 RVA: 0x00072108 File Offset: 0x00070308
 private static void RegisterDS4Controller(string controllerName)
 {
     Glyphs.AddGlyph(controllerName, 4, "tmpsprSteamGlyphs", "texSteamGlyphs_110");
     Glyphs.AddGlyph(controllerName, 5, "tmpsprSteamGlyphs", "texSteamGlyphs_112");
     Glyphs.AddGlyph(controllerName, 10, "tmpsprSteamGlyphs", "texSteamGlyphs_84");
     Glyphs.AddGlyph(controllerName, 11, "tmpsprSteamGlyphs", "texSteamGlyphs_85");
     Glyphs.AddGlyph(controllerName, 6, "tmpsprSteamGlyphs", "texSteamGlyphs_49");
     Glyphs.AddGlyph(controllerName, 7, "tmpsprSteamGlyphs", "texSteamGlyphs_39");
     Glyphs.AddGlyph(controllerName, 8, "tmpsprSteamGlyphs", "texSteamGlyphs_46");
     Glyphs.AddGlyph(controllerName, 9, "tmpsprSteamGlyphs", "texSteamGlyphs_47");
 }
Esempio n. 3
0
 // Token: 0x060017E6 RID: 6118 RVA: 0x00072028 File Offset: 0x00070228
 private static void RegisterXBoxController(string controllerName)
 {
     Glyphs.AddGlyph(controllerName, 4, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_5");
     Glyphs.AddGlyph(controllerName, 5, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_9");
     Glyphs.AddGlyph(controllerName, 10, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_2");
     Glyphs.AddGlyph(controllerName, 11, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_6");
     Glyphs.AddGlyph(controllerName, 6, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_0");
     Glyphs.AddGlyph(controllerName, 7, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_1");
     Glyphs.AddGlyph(controllerName, 8, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_7");
     Glyphs.AddGlyph(controllerName, 9, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_11");
     Glyphs.AddGlyph(controllerName, 12, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_10");
     Glyphs.AddGlyph(controllerName, 13, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_3");
     Glyphs.AddGlyph(controllerName, 14, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_4");
     Glyphs.AddGlyph(controllerName, 15, "tmpsprXboxOneGlyphs", "texXBoxOneGlyphs_8");
 }
Esempio n. 4
0
        // Token: 0x060016ED RID: 5869 RVA: 0x0006D378 File Offset: 0x0006B578
        private void Refresh()
        {
            string glyphString;

            if (this.useExplicitInputSource)
            {
                glyphString = Glyphs.GetGlyphString(this.eventSystemLocator.eventSystem, this.actionName, this.axisRange, this.explicitInputSource);
            }
            else
            {
                glyphString = Glyphs.GetGlyphString(this.eventSystemLocator.eventSystem, this.actionName, AxisRange.Full);
            }
            if (this.guiLabel)
            {
                this.guiLabel.text = glyphString;
                return;
            }
            if (this.label)
            {
                this.label.text = glyphString;
            }
        }
Esempio n. 5
0
        // Token: 0x060017EA RID: 6122 RVA: 0x000721D8 File Offset: 0x000703D8
        static Glyphs()
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Left Mouse Button"]  = "M1";
            dictionary["Right Mouse Button"] = "M2";
            dictionary["Mouse Button 3"]     = "M3";
            dictionary["Mouse Button 4"]     = "M4";
            dictionary["Mouse Button 5"]     = "M5";
            dictionary["Mouse Button 6"]     = "M6";
            dictionary["Mouse Button 7"]     = "M7";
            dictionary["Mouse Wheel"]        = "MW";
            dictionary["Mouse Wheel +"]      = "MW+";
            dictionary["Mouse Wheel -"]      = "MW-";
            Glyphs.mouseElementRenameMap     = dictionary;
            Glyphs.resultsList = new List <ActionElementMap>();
            Glyphs.RegisterXBoxController("Xbox 360 Controller");
            Glyphs.RegisterXBoxController("Xbox One Controller");
            for (int i = 0; i < 4; i++)
            {
                Glyphs.RegisterXBoxController("XInput Gamepad " + i);
            }
            Glyphs.RegisterDS4Controller("Sony DualShock 4");
        }
Esempio n. 6
0
 // Token: 0x060017E8 RID: 6120 RVA: 0x000721A0 File Offset: 0x000703A0
 private static void RegisterMouse(string controllerName)
 {
     Glyphs.AddGlyph(controllerName, 3, "tmpsprSteamGlyphs", "texSteamGlyphs_17");
     Glyphs.AddGlyph(controllerName, 4, "tmpsprSteamGlyphs", "texSteamGlyphs_18");
     Glyphs.AddGlyph(controllerName, 5, "tmpsprSteamGlyphs", "texSteamGlyphs_19");
 }
Esempio n. 7
0
 // Token: 0x060017ED RID: 6125 RVA: 0x0007236E File Offset: 0x0007056E
 public static string GetGlyphString(MPEventSystem eventSystem, string actionName, AxisRange axisRange = AxisRange.Full)
 {
     return(Glyphs.GetGlyphString(eventSystem, actionName, axisRange, eventSystem.currentInputSource));
 }