# 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

<br />


See `Paddleboat_Mapping_Axis` for axis order. Hat axis should be mapped to dpad buttons. **[Deprecated.](https://developer.android.com/reference/games/game-controller/deprecated/deprecated)** Use the `Paddleboat_Controller_Mapping_File_Header` in combination with the [Paddleboat_addControllerRemapDataFromFileBuffer](https://developer.android.com/reference/games/game-controller/group/paddleboat#group__paddleboat_1gaa44e684332e828e5dfb11e5d88c793ad) function instead.

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#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. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#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. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#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. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1a8e70c5bc300285d004004ef021773af0[PADDLEBOAT_BUTTON_COUNT]` | `uint16_t` AKEYCODE_ value corresponding with the corresponding Paddleboat button. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1a29cf2c39723243f30a01674a48ee73b7` | `int32_t` Flag bits, will be ORed with `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-info#struct_paddleboat___controller___info_1aee089451d9723e2b9a395c368a65ab08` |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1ad933a1d3730e0e7e408bfc3e1366c9e5` | `int16_t` Maximum API level required for this entry, 0 = no max. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1a43f089fc3061d187bdc3b748764b7062` | `int16_t` Minimum API level required for this entry. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1a9b6c7eb07db75fb9137fd0982a1d4e61` | `int32_t` ProductID of the controller device for this entry. |
| `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-mapping-data#struct_paddleboat___controller___mapping___data_1a8f07f7c5170c53fba1b2693f869c2a1a` | `int32_t` VendorID of the controller device for this entry. |

## Public attributes

### axisMapping

```transact-sql
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

```transact-sql
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

```transact-sql
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

```transact-sql
uint16_t Paddleboat_Controller_Mapping_Data::buttonMapping[PADDLEBOAT_BUTTON_COUNT]
```
AKEYCODE_ value corresponding with the corresponding Paddleboat button.

PADDLEBOAT_BUTTON_IGNORED if unsupported.

### flags

```scdoc
int32_t Paddleboat_Controller_Mapping_Data::flags
```
Flag bits, will be ORed with `https://developer.android.com/reference/games/game-controller/struct/paddleboat-controller-info#struct_paddleboat___controller___info_1aee089451d9723e2b9a395c368a65ab08`

### maximumEffectiveApiLevel

```scdoc
int16_t Paddleboat_Controller_Mapping_Data::maximumEffectiveApiLevel
```
Maximum API level required for this entry, 0 = no max.

### minimumEffectiveApiLevel

```scdoc
int16_t Paddleboat_Controller_Mapping_Data::minimumEffectiveApiLevel
```
Minimum API level required for this entry.

### productId

```scdoc
int32_t Paddleboat_Controller_Mapping_Data::productId
```
ProductID of the controller device for this entry.

### vendorId

```scdoc
int32_t Paddleboat_Controller_Mapping_Data::vendorId
```
VendorID of the controller device for this entry.