Home › Engine Lua tables › Input

Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.

Input

Static table with 25 methods. named from how the game scripts call it (17 of 25 methods matched). Registering function 0x4c8ab0.

Methods are called with a dot (Input.Method(...)).

Method Returns In game scripts Example Status
Input.BeginRecordingGestures(arg1: boolean, …) — 1 calls, 1 files Input.BeginRecordingGestures(true) inferred
Input.BindAction(arg1: integer, arg2: integer, arg3: integer) -> boolean boolean 1 calls, 1 files Input.BindAction(_CurrentAction, _CurrentActionIndex, gesture) inferred
Input.ClearGesture(arg1: integer, arg2: integer) — 1 calls, 1 files Input.ClearGesture(currentAction, currentActionIndex) inferred
Input.ClearGestures(arg1: integer) — not called — inferred
Input.ClearRecordedGestures() — 1 calls, 1 files Input.ClearRecordedGestures() inferred
Input.GetActionCategory(arg1: integer, …) -> 1 value 1 value 1 calls, 1 files Locale.Lookup(Input.GetActionCategory(action) inferred
Input.GetActionContext(arg1: integer) -> number, number number, number not called — inferred
Input.GetActionCount() -> number number 1 calls, 1 files local count = Input.GetActionCount() inferred
Input.GetActionDescription(arg1: integer, …) -> 1 value 1 value 2 calls, 1 files binding:SetToolTipString(Locale.Lookup(Input.GetActionDescription(action[ActionIdIndex]) inferred
Input.GetActionEnabled(arg1: integer) -> boolean boolean not called — inferred
Input.GetActionId(arg1: number\|string) -> number, number number, number 68 calls, 23 files if ( actionId == Input.GetActionId("ToggleTechTree") inferred
Input.GetActionName(arg1: integer, …) -> 1 value 1 value 2 calls, 1 files Locale.Lookup(Input.GetActionName(action) inferred
Input.GetActiveContext() -> number, number number, number 2 calls, 1 files if(Input.GetActiveContext() inferred
Input.GetActiveLayout() -> number number not called — inferred
Input.GetGestureDisplayIcons(arg1: integer, arg2: integer, …) -> table table not called — inferred
Input.GetGestureDisplayString(arg1: integer, arg2: integer, …) -> 1 value 1 value 2 calls, 1 files Input.GetGestureDisplayString(action, 0) inferred
Input.GetRecordedGestureCount() -> number number not called — inferred
Input.HasGesture(arg1: integer, arg2: integer) -> boolean boolean not called — inferred
Input.IsRecordingGestures() -> boolean boolean not called — inferred
Input.PopContext() -> boolean boolean 12 calls, 6 files Input.PopContext() inferred
Input.PushActiveContext(arg1: integer, [arg2: integer]) — 11 calls, 5 files Input.PushActiveContext( InputContext.Popup ) inferred
Input.SetActiveContext(arg1: integer, [arg2: integer]) — 8 calls, 4 files Input.SetActiveContext( InputContext.Shell ) inferred
Input.SetActiveLayout(arg1: integer) — 2 calls, 1 files Input.SetActiveLayout(InputLayoutTypes.PC) inferred
Input.ShouldShowActionKeybinding(arg1: integer) -> boolean boolean 1 calls, 1 files if(Input.ShouldShowActionKeybinding(action) inferred
Input.StopRecordingGestures() — 1 calls, 1 files Input.StopRecordingGestures() inferred