ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
asw::input::ControllerAxisBinding Struct Reference

Binding to a controller axis, activated when the axis exceeds a threshold. More...

#include <action.h>

Public Attributes

ControllerAxis axis
 
uint32_t controller_index { 0 }
 
float threshold { 0.5F }
 
bool positive_direction { true }
 

Detailed Description

Binding to a controller axis, activated when the axis exceeds a threshold.

Set positive_direction to false to bind to the negative axis direction (e.g. left stick left, or left trigger in inverted mode).

Definition at line 52 of file action.h.

Member Data Documentation

◆ axis

ControllerAxis asw::input::ControllerAxisBinding::axis

Definition at line 53 of file action.h.

◆ controller_index

uint32_t asw::input::ControllerAxisBinding::controller_index { 0 }

Definition at line 54 of file action.h.

◆ positive_direction

bool asw::input::ControllerAxisBinding::positive_direction { true }

Definition at line 56 of file action.h.

◆ threshold

float asw::input::ControllerAxisBinding::threshold { 0.5F }

Definition at line 55 of file action.h.


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