Stay organized with collections
Save and categorize content based on your preferences.
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
|
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.
uint8_t Paddleboat_Controller_Mapping_Data::axisNegativeButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]
Button to set on negative axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.
uint8_t Paddleboat_Controller_Mapping_Data::axisPositiveButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]
Button to set on positive axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none.
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
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-10 UTC.
[null,null,["Last updated 2023-03-10 UTC."],[],[],null,["# Paddleboat_Controller_Mapping_Data Struct Reference\n\nPaddleboat_Controller_Mapping_Data\n==================================\n\n`#include \u003cpaddleboat.h\u003e`\n\nA structure that describes the button and axis mappings for a specified controller device running on a specified range of Android API levels.\n\nSummary\n-------\n\n\u003cbr /\u003e\n\n\nSee `Paddleboat_Mapping_Axis` for axis order. Hat axis should be mapped to dpad buttons. **[Deprecated.](/reference/games/game-controller/deprecated/deprecated)** Use the `Paddleboat_Controller_Mapping_File_Header` in combination with the [Paddleboat_addControllerRemapDataFromFileBuffer](/reference/games/game-controller/group/paddleboat#group__paddleboat_1gaa44e684332e828e5dfb11e5d88c793ad) function instead.\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [axisMapping](#struct_paddleboat___controller___mapping___data_1a43ac78782abfdd0cdd9fe1319e2966c3)`[PADDLEBOAT_MAPPING_AXIS_COUNT]` | `uint16_t` AMOTION_EVENT_AXIS value for the corresponding Paddleboat control axis, or PADDLEBOAT_AXIS_IGNORED if unsupported. |\n| [axisNegativeButtonMapping](#struct_paddleboat___controller___mapping___data_1a0b12ff9879d5d9d89cf6a380ef5bcf1b)`[PADDLEBOAT_MAPPING_AXIS_COUNT]` | `uint8_t` Button to set on negative axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none. |\n| [axisPositiveButtonMapping](#struct_paddleboat___controller___mapping___data_1a5fe4f0335bebe64ca50eb3d447cb958c)`[PADDLEBOAT_MAPPING_AXIS_COUNT]` | `uint8_t` Button to set on positive axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none. |\n| [buttonMapping](#struct_paddleboat___controller___mapping___data_1a8e70c5bc300285d004004ef021773af0)`[PADDLEBOAT_BUTTON_COUNT]` | `uint16_t` AKEYCODE_ value corresponding with the corresponding Paddleboat button. |\n| [flags](#struct_paddleboat___controller___mapping___data_1a29cf2c39723243f30a01674a48ee73b7) | `int32_t` Flag bits, will be ORed with [Paddleboat_Controller_Info.controllerFlags](/reference/games/game-controller/struct/paddleboat-controller-info#struct_paddleboat___controller___info_1aee089451d9723e2b9a395c368a65ab08) |\n| [maximumEffectiveApiLevel](#struct_paddleboat___controller___mapping___data_1ad933a1d3730e0e7e408bfc3e1366c9e5) | `int16_t` Maximum API level required for this entry, 0 = no max. |\n| [minimumEffectiveApiLevel](#struct_paddleboat___controller___mapping___data_1a43f089fc3061d187bdc3b748764b7062) | `int16_t` Minimum API level required for this entry. |\n| [productId](#struct_paddleboat___controller___mapping___data_1a9b6c7eb07db75fb9137fd0982a1d4e61) | `int32_t` ProductID of the controller device for this entry. |\n| [vendorId](#struct_paddleboat___controller___mapping___data_1a8f07f7c5170c53fba1b2693f869c2a1a) | `int32_t` VendorID of the controller device for this entry. |\n\nPublic attributes\n-----------------\n\n### axisMapping\n\n```transact-sql\nuint16_t Paddleboat_Controller_Mapping_Data::axisMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]\n``` \nAMOTION_EVENT_AXIS value for the corresponding Paddleboat control axis, or PADDLEBOAT_AXIS_IGNORED if unsupported. \n\n### axisNegativeButtonMapping\n\n```transact-sql\nuint8_t Paddleboat_Controller_Mapping_Data::axisNegativeButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]\n``` \nButton to set on negative axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none. \n\n### axisPositiveButtonMapping\n\n```transact-sql\nuint8_t Paddleboat_Controller_Mapping_Data::axisPositiveButtonMapping[PADDLEBOAT_MAPPING_AXIS_COUNT]\n``` \nButton to set on positive axis value, PADDLEBOAT_AXIS_BUTTON_IGNORED if none. \n\n### buttonMapping\n\n```transact-sql\nuint16_t Paddleboat_Controller_Mapping_Data::buttonMapping[PADDLEBOAT_BUTTON_COUNT]\n``` \nAKEYCODE_ value corresponding with the corresponding Paddleboat button.\n\nPADDLEBOAT_BUTTON_IGNORED if unsupported. \n\n### flags\n\n```scdoc\nint32_t Paddleboat_Controller_Mapping_Data::flags\n``` \nFlag bits, will be ORed with [Paddleboat_Controller_Info.controllerFlags](/reference/games/game-controller/struct/paddleboat-controller-info#struct_paddleboat___controller___info_1aee089451d9723e2b9a395c368a65ab08) \n\n### maximumEffectiveApiLevel\n\n```scdoc\nint16_t Paddleboat_Controller_Mapping_Data::maximumEffectiveApiLevel\n``` \nMaximum API level required for this entry, 0 = no max. \n\n### minimumEffectiveApiLevel\n\n```scdoc\nint16_t Paddleboat_Controller_Mapping_Data::minimumEffectiveApiLevel\n``` \nMinimum API level required for this entry. \n\n### productId\n\n```scdoc\nint32_t Paddleboat_Controller_Mapping_Data::productId\n``` \nProductID of the controller device for this entry. \n\n### vendorId\n\n```scdoc\nint32_t Paddleboat_Controller_Mapping_Data::vendorId\n``` \nVendorID of the controller device for this entry."]]