Scripting API
Scripting API
GameInput
Record struct in Abyss.Core, from Abyss.Core.
What of the devices a game has; see World.SetGameInput.
public readonly record struct GameInputConstructors
GameInput
public GameInput(bool KeyboardMouse, bool Gamepads, bool PutsCursor = true, GamePictureArea? Picture = null)What of the devices a game has; see World.SetGameInput.
Parameters
KeyboardMouse: Whether it reads the keyboard and the mouse; a key held as it is given them stays the editor's until it is let go.Gamepads: Whether it reads gamepads.PutsCursor: Whether the engine puts the game'sWorld.Cursoron the primary window itself, as for a game on its own; the editor holds it itself.Picture: Where its picture is, whichPointis measured in; null for the whole primary window.
Properties
KeyboardMouse
public bool KeyboardMouse { get; init; }Whether it reads the keyboard and the mouse; a key held as it is given them stays the editor's until it is let go.
Gamepads
public bool Gamepads { get; init; }Whether it reads gamepads.
PutsCursor
public bool PutsCursor { get; init; }Whether the engine puts the game's World.Cursor on the primary window itself, as for a game on its own; the editor holds it itself.
Picture
public GamePictureArea? Picture { get; init; }Where its picture is, which Point is measured in; null for the whole primary window.
