Final Platform Layer 0.9.8-beta
Loading...
Searching...
No Matches
Data Fields
fplGamepadState Struct Reference

A structure containing the entire gamepad state. More...

#include <final_platform_layer.h>

Data Fields

union { 
 
   struct { 
 
      fplGamepadButton   actionA 
 Action button A. More...
 
      fplGamepadButton   actionB 
 Action button B. More...
 
      fplGamepadButton   actionX 
 Action button X. More...
 
      fplGamepadButton   actionY 
 Action button Y. More...
 
      fplGamepadButton   back 
 Back button. More...
 
      fplGamepadButton   dpadDown 
 Digital button down. More...
 
      fplGamepadButton   dpadLeft 
 Digital button left. More...
 
      fplGamepadButton   dpadRight 
 Digital button right. More...
 
      fplGamepadButton   dpadUp 
 Digital button up. More...
 
      fplGamepadButton   leftShoulder 
 Left shoulder button. More...
 
      fplGamepadButton   leftThumb 
 Analog left thumb button. More...
 
      fplGamepadButton   rightShoulder 
 Right shoulder button. More...
 
      fplGamepadButton   rightThumb 
 Analog right thumb button. More...
 
      fplGamepadButton   start 
 Start button. More...
 
   }  
 
   fplGamepadButton   buttons [14] 
 All gamepad buttons. More...
 
};  
 
const char * deviceName
 Device name.
 
fpl_b32 isActive
 Is this device active, which means are any buttons pressed or positions stick changed.
 
fpl_b32 isConnected
 Is device physical connected.
 
float leftStickX
 Analog left thumb X in range (-1.0 to 1.0f)
 
float leftStickY
 Analog left thumb Y in range (-1.0 to 1.0f)
 
float leftTrigger
 Analog left trigger in range (0.0 to 1.0f)
 
float rightStickX
 Analog right thumb X in range (-1.0 to 1.0f)
 
float rightStickY
 Analog right thumb Y in range (-1.0 to 1.0f)
 
float rightTrigger
 Analog right trigger in range (0.0 to 1.0f)
 

Detailed Description

A structure containing the entire gamepad state.

Definition at line 6097 of file final_platform_layer.h.

Field Documentation

◆ actionA

fplGamepadButton fplGamepadState::actionA

Action button A.

Definition at line 6110 of file final_platform_layer.h.

◆ actionB

fplGamepadButton fplGamepadState::actionB

Action button B.

Definition at line 6112 of file final_platform_layer.h.

◆ actionX

fplGamepadButton fplGamepadState::actionX

Action button X.

Definition at line 6114 of file final_platform_layer.h.

◆ actionY

fplGamepadButton fplGamepadState::actionY

Action button Y.

Definition at line 6116 of file final_platform_layer.h.

◆ back

fplGamepadButton fplGamepadState::back

Back button.

Definition at line 6121 of file final_platform_layer.h.

◆ buttons

fplGamepadButton fplGamepadState::buttons[14]

All gamepad buttons.

Definition at line 6134 of file final_platform_layer.h.

◆ deviceName

const char* fplGamepadState::deviceName

Device name.

Definition at line 6138 of file final_platform_layer.h.

◆ dpadDown

fplGamepadButton fplGamepadState::dpadDown

Digital button down.

Definition at line 6105 of file final_platform_layer.h.

◆ dpadLeft

fplGamepadButton fplGamepadState::dpadLeft

Digital button left.

Definition at line 6107 of file final_platform_layer.h.

◆ dpadRight

fplGamepadButton fplGamepadState::dpadRight

Digital button right.

Definition at line 6103 of file final_platform_layer.h.

◆ dpadUp

fplGamepadButton fplGamepadState::dpadUp

Digital button up.

Definition at line 6101 of file final_platform_layer.h.

◆ isActive

fpl_b32 fplGamepadState::isActive

Is this device active, which means are any buttons pressed or positions stick changed.

Definition at line 6157 of file final_platform_layer.h.

◆ isConnected

fpl_b32 fplGamepadState::isConnected

Is device physical connected.

Definition at line 6155 of file final_platform_layer.h.

◆ leftShoulder

fplGamepadButton fplGamepadState::leftShoulder

Left shoulder button.

Definition at line 6129 of file final_platform_layer.h.

◆ leftStickX

float fplGamepadState::leftStickX

Analog left thumb X in range (-1.0 to 1.0f)

Definition at line 6141 of file final_platform_layer.h.

◆ leftStickY

float fplGamepadState::leftStickY

Analog left thumb Y in range (-1.0 to 1.0f)

Definition at line 6143 of file final_platform_layer.h.

◆ leftThumb

fplGamepadButton fplGamepadState::leftThumb

Analog left thumb button.

Definition at line 6124 of file final_platform_layer.h.

◆ leftTrigger

float fplGamepadState::leftTrigger

Analog left trigger in range (0.0 to 1.0f)

Definition at line 6150 of file final_platform_layer.h.

◆ rightShoulder

fplGamepadButton fplGamepadState::rightShoulder

Right shoulder button.

Definition at line 6131 of file final_platform_layer.h.

◆ rightStickX

float fplGamepadState::rightStickX

Analog right thumb X in range (-1.0 to 1.0f)

Definition at line 6145 of file final_platform_layer.h.

◆ rightStickY

float fplGamepadState::rightStickY

Analog right thumb Y in range (-1.0 to 1.0f)

Definition at line 6147 of file final_platform_layer.h.

◆ rightThumb

fplGamepadButton fplGamepadState::rightThumb

Analog right thumb button.

Definition at line 6126 of file final_platform_layer.h.

◆ rightTrigger

float fplGamepadState::rightTrigger

Analog right trigger in range (0.0 to 1.0f)

Definition at line 6152 of file final_platform_layer.h.

◆ start

fplGamepadButton fplGamepadState::start

Start button.

Definition at line 6119 of file final_platform_layer.h.


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