MCPcopy Create free account
hub / github.com/demoth/jake2 / Real_IN_Init

Method Real_IN_Init

client/src/main/java/jake2/client/IN.java:103–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 public static void Real_IN_Init() {
104 // mouse variables
105 ClientGlobals.m_filter = Cvar.getInstance().Get("m_filter", "0", 0);
106 ClientGlobals.in_mouse = Cvar.getInstance().Get("in_mouse", "1", CVAR_ARCHIVE);
107 ClientGlobals.freelook = Cvar.getInstance().Get("freelook", "1", 0);
108 ClientGlobals.lookstrafe = Cvar.getInstance().Get("lookstrafe", "0", 0);
109 ClientGlobals.sensitivity = Cvar.getInstance().Get("sensitivity", "3", 0);
110 ClientGlobals.m_pitch = Cvar.getInstance().Get("m_pitch", "0.022", 0);
111 ClientGlobals.m_yaw = Cvar.getInstance().Get("m_yaw", "0.022", 0);
112 ClientGlobals.m_forward = Cvar.getInstance().Get("m_forward", "1", 0);
113 ClientGlobals.m_side = Cvar.getInstance().Get("m_side", "0.8", 0);
114
115 Cmd.AddCommand("+mlook", (List<String> args) -> MLookDown());
116 Cmd.AddCommand("-mlook", (List<String> args) -> MLookUp());
117 Cmd.AddCommand("force_centerview", (List<String> args) -> Force_CenterView_f());
118 Cmd.AddCommand("togglemouse", (List<String> args) -> toggleMouse());
119
120 IN.mouse_avail = true;
121 }
122
123 public static void Commands() {
124 int i;

Callers 1

LoadRefreshMethod · 0.95

Calls 7

getInstanceMethod · 0.95
AddCommandMethod · 0.95
MLookDownMethod · 0.95
MLookUpMethod · 0.95
Force_CenterView_fMethod · 0.95
toggleMouseMethod · 0.95
GetMethod · 0.80

Tested by

no test coverage detected