Table of Contents

Class Options.ControlSetup

Namespace
Global
Assembly
Assembly-CSharp.dll
public class Options.ControlSetup
Inheritance
Options.ControlSetup
Inherited Members

Constructors

ControlSetup(int, bool)

public ControlSetup(int index, bool active)

Parameters

index int
active bool

Fields

active

public bool active

Field Value

bool

controlPreference

public Options.ControlSetup.ControlToUse controlPreference

Field Value

Options.ControlSetup.ControlToUse

gameControlMap

public ControllerMap gameControlMap

Field Value

ControllerMap

gamePadGuid

public string gamePadGuid

Field Value

string

gamePadNumber

public int gamePadNumber

Field Value

int

index

public int index

Field Value

int

player

public Player player

Field Value

Player

recentController

public Controller recentController

Field Value

Controller

recentPreset

public Options.ControlSetup.Preset recentPreset

Field Value

Options.ControlSetup.Preset

uiControlMap

public ControllerMap uiControlMap

Field Value

ControllerMap

unrecognizedControlAttrs

public string[] unrecognizedControlAttrs

Field Value

string[]

usingGamePadNumber

public int usingGamePadNumber

Field Value

int

xInvert

public bool xInvert

Field Value

bool

yInvert

public bool yInvert

Field Value

bool

Properties

KeyboardDown

public KeyCode KeyboardDown { get; }

Property Value

KeyCode

KeyboardJump

public KeyCode KeyboardJump { get; }

Property Value

KeyCode

KeyboardLeft

public KeyCode KeyboardLeft { get; }

Property Value

KeyCode

KeyboardMap

public KeyCode KeyboardMap { get; }

Property Value

KeyCode

KeyboardPause

public KeyCode KeyboardPause { get; }

Property Value

KeyCode

KeyboardPickUp

public KeyCode KeyboardPickUp { get; }

Property Value

KeyCode

KeyboardRight

public KeyCode KeyboardRight { get; }

Property Value

KeyCode

KeyboardThrow

public KeyCode KeyboardThrow { get; }

Property Value

KeyCode

KeyboardUp

public KeyCode KeyboardUp { get; }

Property Value

KeyCode

gamePad

public bool gamePad { get; }

Property Value

bool

Methods

ActionMatchesTemplate(ControllerMap, int, bool)

public bool ActionMatchesTemplate(ControllerMap compareMap, int actionID, bool axisPositive = true)

Parameters

compareMap ControllerMap
actionID int
axisPositive bool

Returns

bool

FromString(string)

public void FromString(string s)

Parameters

s string

GameActionMatchesTemplate(int, bool)

public bool GameActionMatchesTemplate(int actionID, bool axisPositive = true)

Parameters

actionID int
axisPositive bool

Returns

bool

GetActionElement(ControllerMap, int, bool)

public static ActionElementMap GetActionElement(ControllerMap cmap, int actionID, bool axisPositive = true)

Parameters

cmap ControllerMap
actionID int
axisPositive bool

Returns

ActionElementMap

GetActionElement(int, int, bool)

public ActionElementMap GetActionElement(int actionID, int categoryID, bool axisPositive = true)

Parameters

actionID int
categoryID int
axisPositive bool

Returns

ActionElementMap

GetActive()

public bool GetActive()

Returns

bool

GetActiveController()

public Controller GetActiveController()

Returns

Controller

GetActivePreset()

public Options.ControlSetup.Preset GetActivePreset()

Returns

Options.ControlSetup.Preset

GetAnyButton()

public bool GetAnyButton()

Returns

bool

GetButton(int)

public bool GetButton(int actionID)

Parameters

actionID int

Returns

bool

GetControlPreference()

public Options.ControlSetup.ControlToUse GetControlPreference()

Returns

Options.ControlSetup.ControlToUse

GetFirstMapInCategory(MapHelper, ControllerType, int, int)

public static ControllerMap GetFirstMapInCategory(Player.ControllerHelper.MapHelper maps, ControllerType ctype, int controllerId, int categoryId)

Parameters

maps Player.ControllerHelper.MapHelper
ctype ControllerType
controllerId int
categoryId int

Returns

ControllerMap

InitRewiredObjects()

public void InitRewiredObjects()

IsDefaultControlMapping(ControllerMap)

public bool IsDefaultControlMapping(ControllerMap compareMap)

Parameters

compareMap ControllerMap

Returns

bool

KeyCodeFromAction(int, int, bool)

public KeyCode KeyCodeFromAction(int actionID, int categoryID, bool axisPositive = true)

Parameters

actionID int
categoryID int
axisPositive bool

Returns

KeyCode

SaveAllControllerUserdata()

public static void SaveAllControllerUserdata()

SetActive(bool)

public void SetActive(bool activeState)

Parameters

activeState bool

ToString()

public override string ToString()

Returns

string

UIActionMatchesTemplate(int, bool)

public bool UIActionMatchesTemplate(int actionID, bool axisPositive = true)

Parameters

actionID int
axisPositive bool

Returns

bool

UpdateActiveController(Controller, bool)

public void UpdateActiveController(Controller newController, bool forceUpdate = false)

Parameters

newController Controller
forceUpdate bool

UpdateActiveController(Controller, int, bool)

public void UpdateActiveController(Controller newController, int controllerIndex, bool forceUpdate = false)

Parameters

newController Controller
controllerIndex int
forceUpdate bool

UpdateControlPreference(ControlToUse, bool)

public void UpdateControlPreference(Options.ControlSetup.ControlToUse preference, bool forceUpdate = false)

Parameters

preference Options.ControlSetup.ControlToUse
forceUpdate bool

UpdateTemplateToMatchControllers()

public void UpdateTemplateToMatchControllers()