Final Platform Layer  0.9.6-beta
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.
 
      fplGamepadButton   actionB
 Action button B.
 
      fplGamepadButton   actionX
 Action button X.
 
      fplGamepadButton   actionY
 Action button Y.
 
      fplGamepadButton   back
 Back button.
 
      fplGamepadButton   dpadDown
 Digital button down.
 
      fplGamepadButton   dpadLeft
 Digital button left.
 
      fplGamepadButton   dpadRight
 Digital button right.
 
      fplGamepadButton   dpadUp
 Digital button up.
 
      fplGamepadButton   leftShoulder
 Left shoulder button.
 
      fplGamepadButton   leftThumb
 Analog left thumb button.
 
      fplGamepadButton   rightShoulder
 Right shoulder button.
 
      fplGamepadButton   rightThumb
 Analog right thumb button.
 
      fplGamepadButton   start
 Start button.
 
   } 
 
   fplGamepadButton   buttons [14]
 All gamepad buttons.
 
}; 
 
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 5964 of file final_platform_layer.h.


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