RetroArch
Enumerations | Functions
input_common.c File Reference
#include "../include/gamepad.h"
Include dependency graph for input_common.c:

Enumerations

enum  pad_axes {
  AXIS_LEFT_ANALOG_X, AXIS_LEFT_ANALOG_Y, AXIS_RIGHT_ANALOG_X, AXIS_RIGHT_ANALOG_Y,
  AXIS_INVALID
}
 

Functions

static int16_t clamp_axis (int16_t value, bool is_negative)
 
void gamepad_read_axis_data (uint32_t axis, axis_data *data)
 
int16_t gamepad_get_axis_value (int16_t state[3][2], axis_data *data)
 

Enumeration Type Documentation

◆ pad_axes

enum pad_axes
Enumerator
AXIS_LEFT_ANALOG_X 
AXIS_LEFT_ANALOG_Y 
AXIS_RIGHT_ANALOG_X 
AXIS_RIGHT_ANALOG_Y 
AXIS_INVALID 

Function Documentation

◆ clamp_axis()

static int16_t clamp_axis ( int16_t  value,
bool  is_negative 
)
static
Here is the caller graph for this function:

◆ gamepad_get_axis_value()

int16_t gamepad_get_axis_value ( int16_t  state[3][2],
axis_data data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gamepad_read_axis_data()

void gamepad_read_axis_data ( uint32_t  axis,
axis_data data 
)
Here is the caller graph for this function: