‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Input.FakeInput Class Reference

Static Public Member Functions

static void ActionInput (uint playerID=uint.MaxValue, bool toggleMode=false, bool forward=false, bool backward=false, bool up=false, bool down=false, bool left=false, bool right=false, bool sprint=false, bool toggleFly=false, bool alt=false, bool primary=false, bool secondary=false, bool tertiary=false, bool primaryHeld=false, bool secondaryHeld=false, bool toggleUnitGrid=false, bool ctrl=false, bool toggleColourMode=false, bool scaleBlockUp=false, bool scaleBlockDown=false, bool rotateBlockClockwise=false, bool rotateBlockCounterclockwise=false, bool cutSelection=false, bool copySelection=false, bool deleteSelection=false)
 
static void CustomInput (LocalCosmeticInputEntityComponent input)
 ‪Customize the local input. More...
 
static void CustomPlayerInput (LocalPlayerInputEntityStruct input, uint playerID=uint.MaxValue)
 ‪Customize the player input. More...
 
static LocalCosmeticInputEntityComponent GetInput ()
 
static LocalPlayerInputEntityStruct GetPlayerInput (uint playerID=uint.MaxValue)
 
static void GuiInput (int hotbar=-1, bool escape=false, bool enter=false, bool debug=false, int hotbarPage=-1, bool quickSave=false, bool paste=false)
 ‪Fake a GUI input. Omit any parameter you do not want to affect. Parameters that end with "?" don't do anything... yet. More...
 
static void Init ()
 

Static Package Attributes

static readonly FakeInputEngine inputEngine = new FakeInputEngine()
 

Member Function Documentation

◆ ActionInput()

static void TechbloxModdingAPI.Input.FakeInput.ActionInput ( uint  playerID = uint.MaxValue,
bool  toggleMode = false,
bool  forward = false,
bool  backward = false,
bool  up = false,
bool  down = false,
bool  left = false,
bool  right = false,
bool  sprint = false,
bool  toggleFly = false,
bool  alt = false,
bool  primary = false,
bool  secondary = false,
bool  tertiary = false,
bool  primaryHeld = false,
bool  secondaryHeld = false,
bool  toggleUnitGrid = false,
bool  ctrl = false,
bool  toggleColourMode = false,
bool  scaleBlockUp = false,
bool  scaleBlockDown = false,
bool  rotateBlockClockwise = false,
bool  rotateBlockCounterclockwise = false,
bool  cutSelection = false,
bool  copySelection = false,
bool  deleteSelection = false 
)
inlinestatic

◆ CustomInput()

static void TechbloxModdingAPI.Input.FakeInput.CustomInput ( LocalCosmeticInputEntityComponent  input)
inlinestatic

‪Customize the local input.

Parameters
input‪The custom input.

◆ CustomPlayerInput()

static void TechbloxModdingAPI.Input.FakeInput.CustomPlayerInput ( LocalPlayerInputEntityStruct  input,
uint  playerID = uint.MaxValue 
)
inlinestatic

‪Customize the player input.

Parameters
input‪The custom input.
playerID‪The player. Omit this to use the local player.

◆ GetInput()

static LocalCosmeticInputEntityComponent TechbloxModdingAPI.Input.FakeInput.GetInput ( )
inlinestatic

◆ GetPlayerInput()

static LocalPlayerInputEntityStruct TechbloxModdingAPI.Input.FakeInput.GetPlayerInput ( uint  playerID = uint.MaxValue)
inlinestatic

◆ GuiInput()

static void TechbloxModdingAPI.Input.FakeInput.GuiInput ( int  hotbar = -1,
bool  escape = false,
bool  enter = false,
bool  debug = false,
int  hotbarPage = -1,
bool  quickSave = false,
bool  paste = false 
)
inlinestatic

‪Fake a GUI input. Omit any parameter you do not want to affect. Parameters that end with "?" don't do anything... yet.

Parameters
hotbar‪Select the hotbar slot by number.
commandLine‪Toggle the command line?
escape‪Open escape menu?
enter‪Page return?
debug‪Toggle debug display?
colour‪Toggle to hotbar colour mode?
hotbarPage‪Select the hotbar page by number?
quickSave‪Quicksave?
paste‪Paste?

◆ Init()

static void TechbloxModdingAPI.Input.FakeInput.Init ( )
inlinestatic

Member Data Documentation

◆ inputEngine

readonly FakeInputEngine TechbloxModdingAPI.Input.FakeInput.inputEngine = new FakeInputEngine()
staticpackage

The documentation for this class was generated from the following file: