coastline 0.0.4
Loading...
Searching...
No Matches
coastline::ControlSource Struct Reference

A button or the half of an axis of a gamepad that drives an action. More...

#include <controls.h>

Public Attributes

bool axis
int index
int sign

Detailed Description

A button or the half of an axis of a gamepad that drives an action.

Member Data Documentation

◆ axis

bool coastline::ControlSource::axis

Whether the source is an axis rather than a button.

◆ index

int coastline::ControlSource::index

The SDL_GamepadButton or the SDL_GamepadAxis.

◆ sign

int coastline::ControlSource::sign

1 for the positive half of an axis, -1 for the negative half.


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