Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Initialize()

static void Terraria.GameInput.PlayerInput.Initialize ( )
inlinestatic

Definition at line 528 of file PlayerInput.cs.

529 {
530 Main.InputProfiles.OnProcessText += PrettyPrintProfiles;
531 Player.Hooks.OnEnterWorld += Hook_OnEnterWorld;
532 PlayerInputProfile playerInputProfile = new PlayerInputProfile("Redigit's Pick");
535 playerInputProfile = new PlayerInputProfile("Yoraiz0r's Pick");
538 playerInputProfile = new PlayerInputProfile("Console (Playstation)");
541 playerInputProfile = new PlayerInputProfile("Console (Xbox)");
544 playerInputProfile = new PlayerInputProfile("Custom");
547 playerInputProfile = new PlayerInputProfile("Redigit's Pick");
550 playerInputProfile = new PlayerInputProfile("Yoraiz0r's Pick");
553 playerInputProfile = new PlayerInputProfile("Console (Playstation)");
556 playerInputProfile = new PlayerInputProfile("Console (Xbox)");
559 SetSelectedProfile("Custom");
560 Triggers.Initialize();
561 }
static void PrettyPrintProfiles(ref string text)
static TriggersPack Triggers
static void SetSelectedProfile(string name)
static void Hook_OnEnterWorld(Player player)
static Dictionary< string, PlayerInputProfile > OriginalProfiles
static Dictionary< string, PlayerInputProfile > Profiles

References Terraria.GameInput.PlayerInput.Hook_OnEnterWorld(), System.Collections.Generic.Dictionary< TKey, TValue >.Initialize(), Terraria.GameInput.PlayerInput.OriginalProfiles, Terraria.GameInput.PlayerInput.PrettyPrintProfiles(), Terraria.GameInput.PlayerInput.SetSelectedProfile(), and Terraria.GameInput.PlayerInput.Triggers.

Referenced by Terraria.Main.Initialize().