# C_GamepadUI: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_GamepadUI

## Functions

### C_GamepadUI.GetFirstGamepadActionBarStorageSlotIndexForActiveStance

```lua
activeStanceFirstGamepadStorageSlotIndex = C_GamepadUI.GetFirstGamepadActionBarStorageSlotIndexForActiveStance()
```

Returns:
- `activeStanceFirstGamepadStorageSlotIndex`: luaIndex, may be nil

### C_GamepadUI.GetFirstGamepadActionStorageSlotIndex

```lua
firstGamepadActionStorageSlotIndex = C_GamepadUI.GetFirstGamepadActionStorageSlotIndex()
```

Returns:
- `firstGamepadActionStorageSlotIndex`: luaIndex

### C_GamepadUI.GetFirstGamepadPetActionStorageSlotIndex

```lua
firstGamepadPetActionStorageSlotID = C_GamepadUI.GetFirstGamepadPetActionStorageSlotIndex()
```

Returns:
- `firstGamepadPetActionStorageSlotID`: luaIndex

### C_GamepadUI.IsValidGamepadActionStorageSlotIndex

```lua
isValid = C_GamepadUI.IsValidGamepadActionStorageSlotIndex(gamepadActionStorageSlotIndex)
```

Arguments:
- `gamepadActionStorageSlotIndex`: luaIndex

Returns:
- `isValid`: bool

### C_GamepadUI.IsValidGamepadPossessBarStorageSlotIndex

```lua
isValid = C_GamepadUI.IsValidGamepadPossessBarStorageSlotIndex(gamepadPossessBarStorageSlotIndex)
```

Arguments:
- `gamepadPossessBarStorageSlotIndex`: luaIndex

Returns:
- `isValid`: bool

## Events

### GAMEPAD_POSSESS_BAR_OVERRIDE_CHANGED

Payload, after the event's name:
- `oldOverride`: GamepadPossessBarOverride
- `newOverride`: GamepadPossessBarOverride

### GAMEPAD_STANCE_BAR_OVERRIDE_CHANGED

Payload, after the event's name:
- `oldOverride`: GamepadStanceBarOverride
- `newOverride`: GamepadStanceBarOverride

## Tables

### Enum.GamepadPossessBarOverride (enumeration)

- `SpecialPageTopBar` = 1
- `Page1LeftBar` = 2
- `Page1RightBar` = 3
- `Page1BottomBar` = 4
- `Page2TopBar` = 5
- `Page2LeftBar` = 6
- `Page2RightBar` = 7
- `Page2BottomBar` = 8
- `Page3TopBar` = 9
- `Page3LeftBar` = 10
- `Page3RightBar` = 11
- `Page3BottomBar` = 12

### Enum.GamepadStanceBarOverride (enumeration)

- `None` = 1
- `Page1LeftBar` = 2
- `Page1RightBar` = 3
- `Page1BottomBar` = 4
- `Page2TopBar` = 5
- `Page2LeftBar` = 6
- `Page2RightBar` = 7
- `Page2BottomBar` = 8
- `Page3TopBar` = 9
- `Page3LeftBar` = 10
- `Page3RightBar` = 11
- `Page3BottomBar` = 12

### GamepadActionBarConstants (constants)

- `NUM_SLOTS_PER_GAMEPAD_ACTION_BAR_GROUP` = 4
- `NUM_GROUPS_PER_GAMEPAD_ACTION_BAR` = 2
- `NUM_SLOTS_PER_GAMEPAD_ACTION_BAR` = "Constants.GamepadActionBarConstants.NUM_SLOTS_PER_GAMEPAD_ACTION_BAR_GROUP*Constants.GamepadActionBarConstants.NUM_GROUPS_PER_GAMEPAD_ACTION_BAR"
- `NUM_PAGEABLE_BARS_IN_GAMEPAD_ACTION_BAR_PAGE_UNIT` = 4
- `NUM_PAGEABLE_SLOTS_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT_STANDARD_PAGE` = "Constants.GamepadActionBarConstants.NUM_PAGEABLE_BARS_IN_GAMEPAD_ACTION_BAR_PAGE_UNIT*Constants.GamepadActionBarConstants.NUM_SLOTS_PER_GAMEPAD_ACTION_BAR"
- `NUM_RESERVED_SLOTS_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT` = 4
- `NUM_PAGES_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT` = 4
- `NUM_STANDARD_PAGES_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT` = 3
- `GAMEPAD_ACTION_BAR_PAGE_UNIT_SPECIAL_PAGE_INDEX` = 4
- `NUM_PAGEABLE_SLOTS_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT` = "Constants.GamepadActionBarConstants.NUM_PAGEABLE_SLOTS_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT_STANDARD_PAGE*Constants.GamepadActionBarConstants.NUM_STANDARD_PAGES_PER_GAMEPAD_ACTION_BAR_PAGE_UNIT"
- `NUM_GAMEPAD_STANCE_ACTION_BARS` = 5

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
