Input
csharp
public static class InputNamespace NodeWorld.Flux.
The input of the local player, read each frame.
Properties
isDesktop
csharp
public static bool isDesktop { get; }The player plays with the keyboard and the mouse.
Methods
GetKey
csharp
public static bool GetKey(Key key)The key is held (players on a computer). The keys of NodeWorld (Escape, Tab, P, and R while a Shift key is held) always read false, and so does every key while the player types in a text field.
GetKeyDown
csharp
public static bool GetKeyDown(Key key)The key was pressed this frame.
GetKeyUp
csharp
public static bool GetKeyUp(Key key)The key was released this frame.
GetButton
csharp
public static bool GetButton(InputButton button)The button is held. The left controller's secondary button (Y), which opens the menu, always reads false.
GetButtonDown
csharp
public static bool GetButtonDown(InputButton button)The button was pressed this frame.
GetButtonUp
csharp
public static bool GetButtonUp(InputButton button)The button was released this frame.
GetAxis
csharp
public static float GetAxis(InputAxis axis)The value of an axis this frame.
