Scripting API
Scripting API
SimulatedGamepad
Class in Abyss.Core, from Abyss.Core.
A gamepad that is not there, for a test of a game's input: what it is written as pressing is read on the next frame.
public sealed class SimulatedGamepadProperties
Entity
public ulong Entity { get; }The entity the engine keeps it as.
Methods
Press
public void Press(GamepadButton button, float value = 1)Writes button at value, zero to one: one for pressed, between for a trigger part way.
Parameters
buttonvalue
Release
public void Release(GamepadButton button)Writes button let go.
Parameters
button
Move
public void Move(GamepadAxis axis, float value)Writes axis at value, negative one to one.
Parameters
axisvalue
Disconnect
public void Disconnect()Unplugs it.
