ScummVM API documentation
Common::JoystickState Struct Reference

#include <events.h>

Public Attributes

byte axis
 
int16 position
 
uint8 button
 

Detailed Description

Data structure for joystick events.

Member Data Documentation

◆ axis

byte Common::JoystickState::axis

The axis for EVENT_JOYAXIS_MOTION events.

◆ position

int16 Common::JoystickState::position

The new axis position for EVENT_JOYAXIS_MOTION events.

◆ button

uint8 Common::JoystickState::button

The button index for EVENT_JOYBUTTON_DOWN/UP events.

Some of the button indices match well-known game controller buttons. See JoystickButton.


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