Paddleboat_Controller_Mapping_Data

#include <paddleboat.h>

A structure that describes the button and axis mappings for a specified controller device running on a specified range of Android API levels.

Summary


See Paddleboat_Mapping_Axis for axis order. Hat axis should be mapped to dpad buttons. Deprecated. Use the Paddleboat_Controller_Mapping_File_Header in combination with the Paddleboat_addControllerRemapDataFromFileBuffer function instead.

Public attributes

axisMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]
uint16_t
AMOTION_EVENT_AXIS value for the corresponding Paddleboat control axis, or PADDLEBOAT_AXIS_IGNORED if unsupported.
axisNegativeButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]
uint8_t
Button to set on negative axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.
axisPositiveButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]
uint8_t
Button to set on positive axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.
buttonMapping[PADDLEBOAT_BUTTON_COUNT]
uint16_t
AKEYCODE_ value corresponding with the corresponding Paddleboat button.
flags
int32_t
Flag bits, will be ORed with Paddleboat_Controller_Info.controllerFlags
maximumEffectiveApiLevel
int16_t
Maximum API level required for this entry, 0 = no max.
minimumEffectiveApiLevel
int16_t
Minimum API level required for this entry.
productId
int32_t
ProductID of the controller device for this entry.
vendorId
int32_t
VendorID of the controller device for this entry.

Public attributes

axisMapping

uint16_t Paddleboat_Controller_Mapping_Data::axisMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]

AMOTION_EVENT_AXIS value for the corresponding Paddleboat control axis, or PADDLEBOAT_AXIS_IGNORED if unsupported.

axisNegativeButtonMapping

uint8_t Paddleboat_Controller_Mapping_Data::axisNegativeButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]

Button to set on negative axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.

axisPositiveButtonMapping

uint8_t Paddleboat_Controller_Mapping_Data::axisPositiveButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]

Button to set on positive axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.

buttonMapping

uint16_t Paddleboat_Controller_Mapping_Data::buttonMapping[PADDLEBOAT_BUTTON_COUNT]

AKEYCODE_ value corresponding with the corresponding Paddleboat button.

PADDLEBOAT_BUTTON_IGNORED if unsupported.

flags

int32_t Paddleboat_Controller_Mapping_Data::flags

Flag bits, will be ORed with Paddleboat_Controller_Info.controllerFlags

maximumEffectiveApiLevel

int16_t Paddleboat_Controller_Mapping_Data::maximumEffectiveApiLevel

Maximum API level required for this entry, 0 = no max.

minimumEffectiveApiLevel

int16_t Paddleboat_Controller_Mapping_Data::minimumEffectiveApiLevel

Minimum API level required for this entry.

productId

int32_t Paddleboat_Controller_Mapping_Data::productId

ProductID of the controller device for this entry.

vendorId

int32_t Paddleboat_Controller_Mapping_Data::vendorId

VendorID of the controller device for this entry.