Paddleboat_Controller_Data

#include <paddleboat.h>

A structure that contains the current data for a controller's inputs and sensors.

Summary

Public attributes

battery
Battery status.
buttonsDown
uint32_t
Bit-per-button bitfield array.
leftStick
Left analog thumbstick axis data.
rightStick
Right analog thumbstick axis data.
timestamp
uint64_t
Timestamp of most recent controller data update, timestamp is microseconds elapsed since clock epoch.
triggerL1
float
L1 trigger axis data.
triggerL2
float
L2 trigger axis data.
triggerR1
float
R1 trigger axis data.
triggerR2
float
R2 trigger axis data.
virtualPointer
Virtual pointer pixel coordinates in window space.

Public attributes

battery

Paddleboat_Controller_Battery Paddleboat_Controller_Data::battery

Battery status.

This structure will only be populated if the controller has PADDLEBOAT_CONTROLLER_FLAG_BATTERY set in Paddleboat_Controller_Info.controllerFlags

buttonsDown

uint32_t Paddleboat_Controller_Data::buttonsDown

Bit-per-button bitfield array.

leftStick

Paddleboat_Controller_Thumbstick Paddleboat_Controller_Data::leftStick

Left analog thumbstick axis data.

rightStick

Paddleboat_Controller_Thumbstick Paddleboat_Controller_Data::rightStick

Right analog thumbstick axis data.

timestamp

uint64_t Paddleboat_Controller_Data::timestamp

Timestamp of most recent controller data update, timestamp is microseconds elapsed since clock epoch.

triggerL1

float Paddleboat_Controller_Data::triggerL1

L1 trigger axis data.

Axis range is 0.0 to 1.0.

triggerL2

float Paddleboat_Controller_Data::triggerL2

L2 trigger axis data.

Axis range is 0.0 to 1.0.

triggerR1

float Paddleboat_Controller_Data::triggerR1

R1 trigger axis data.

Axis range is 0.0 to 1.0.

triggerR2

float Paddleboat_Controller_Data::triggerR2

R2 trigger axis data.

Axis range is 0.0 to 1.0.

virtualPointer

Paddleboat_Controller_Pointer Paddleboat_Controller_Data::virtualPointer

Virtual pointer pixel coordinates in window space.

If Paddleboat_Controller_Info.controllerFlags has the PADDLEBOAT_CONTROLLER_FLAG_VIRTUAL_MOUSE bit set, pointer coordinates are valid. If this bit is not set, pointer coordinates will always be 0,0.