Dreambox C/C++ SDK v1.0.0
C/C++ SDK for creating Dreambox games
Loading...
Searching...
No Matches
gamepad_State Struct Reference

Represents current input state of a gamepad. More...

#include <db_gamepad.h>

Data Fields

uint16_t btnMask
 Bitmask of currently pressed buttons. Refer to GAMEPAD_BTN_* mask defines to check these bits. More...
 
int16_t lStickX
 The X position of the left stick, as a value between -32767 and +32767. More...
 
int16_t lStickY
 The Y position of the left stick, as a value between -32767 and +32767. More...
 
int16_t rStickX
 The X position of the right stick, as a value between -32767 and +32767. More...
 
int16_t rStickY
 The Y position of the right stick, as a value between -32767 and +32767. More...
 

Detailed Description

Represents current input state of a gamepad.

Definition at line 28 of file db_gamepad.h.

Field Documentation

◆ btnMask

uint16_t btnMask

Bitmask of currently pressed buttons. Refer to GAMEPAD_BTN_* mask defines to check these bits.

Definition at line 31 of file db_gamepad.h.

◆ lStickX

int16_t lStickX

The X position of the left stick, as a value between -32767 and +32767.

Definition at line 34 of file db_gamepad.h.

◆ lStickY

int16_t lStickY

The Y position of the left stick, as a value between -32767 and +32767.

Definition at line 37 of file db_gamepad.h.

◆ rStickX

int16_t rStickX

The X position of the right stick, as a value between -32767 and +32767.

Definition at line 40 of file db_gamepad.h.

◆ rStickY

int16_t rStickY

The Y position of the right stick, as a value between -32767 and +32767.

Definition at line 43 of file db_gamepad.h.


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