Skip to content

PlayerDevice

namespace Griff.Runtime;
public enum PlayerDevice

What a player at this machine plays with (see LocalPlayers).

  • Auto = 0: Shared out by how many play and how many controllers are plugged in (see LocalPlayers).
  • Keyboard = 1: The whole keyboard and the mouse.
  • LeftKeys = 2: The left side of the keyboard: WASD to move, F and G for the first buttons, Space, Left Shift, E.
  • RightKeys = 3: The right side of the keyboard: the arrows to move, K and L (or the number pad’s 1 and 2) for the first buttons.
  • Gamepad1 = 4: The first controller plugged in.
  • Gamepad2 = 5: The second controller plugged in.
  • Gamepad3 = 6: The third controller plugged in.
  • Gamepad4 = 7: The fourth controller plugged in.