Scripting API

Scripting API

InputDevice

Record struct in Abyss.Core, from Abyss.Core.

The device a player last used.

public readonly record struct InputDevice

Constructors

InputDevice

public InputDevice(InputDeviceKind Kind, ushort Vendor)

The device a player last used.

Parameters

  • Kind: The keyboard and mouse, or a gamepad.
  • Vendor: A gamepad's maker's number, as USB numbers them; zero for the keyboard, or a pad that does not say.

Properties

Kind

public InputDeviceKind Kind { get; init; }

The keyboard and mouse, or a gamepad.

Vendor

public ushort Vendor { get; init; }

A gamepad's maker's number, as USB numbers them; zero for the keyboard, or a pad that does not say.

Gamepad

public GamepadKind Gamepad { get; }

Whose gamepad it is, by its maker's number; GamepadKind.Other for the keyboard and mouse.