libspades
Ace of Spades library
PacketInputData Struct Reference

Changes the movement inputs of a player. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 3 (Client<->Server)
 
uint8_t playerID
 The ID of the player whose movement is changing.
 
uint8_t keyStates
 What movement is taking place.
 

Detailed Description

Changes the movement inputs of a player.

Piqueserver bug
Involved in a patched bug described on the PacketOrientationData page.

Field Documentation

◆ keyStates

uint8_t PacketInputData::keyStates

What movement is taking place.

Possible values (ORed together) are:

  • KeyStateTypeUp = 1,
  • KeyStateTypeDown = 2,
  • KeyStateTypeLeft = 4,
  • KeyStateTypeRight = 8,
  • KeyStateTypeJump = 16,
  • KeyStateTypeCrouch = 32,
  • KeyStateTypeSneak = 64,
  • KeyStateTypeSprint = 128

The documentation for this struct was generated from the following file: