 |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards.
|
Needs summary.
config = C_GamePad.GetConfig(configID)
Arguments
- configID
- GamePadConfigID
| Field |
Type |
Description
|
| vendorID |
number? |
|
| productID |
number? |
|
Returns
- config
- GamePadConfig?
| Field |
Type |
Description
|
| comment |
string? |
|
| name |
string? |
|
| configID |
GamePadConfigID |
|
| labelStyle |
string? |
|
| rawButtonMappings |
GamePadRawButtonMapping[] |
|
| rawAxisMappings |
GamePadRawAxisMapping[] |
|
| axisConfigs |
GamePadAxisConfig[] |
|
| stickConfigs |
GamePadStickConfig[] |
|
GamePadConfigID
| Field |
Type |
Description
|
| vendorID |
number? |
|
| productID |
number? |
|
GamePadRawButtonMapping
| Field |
Type |
Description
|
| rawIndex |
number |
|
| button |
string? |
|
| axis |
string? |
|
| axisValue |
number? |
|
| comment |
string? |
|
GamePadRawAxisMapping
| Field |
Type |
Description
|
| rawIndex |
number |
|
| axis |
string? |
|
| comment |
string? |
|
GamePadAxisConfig
| Field |
Type |
Description
|
| axis |
string |
|
| shift |
number? |
|
| scale |
number? |
|
| deadzone |
number? |
|
| buttonThreshold |
number? |
|
| buttonPos |
string? |
|
| buttonNeg |
string? |
|
| comment |
string? |
|
GamePadStickConfig
| Field |
Type |
Description
|
| stick |
string |
|
| axisX |
string? |
|
| axisY |
string? |
|
| deadzone |
number? |
|
| deadzoneX |
number? |
Added in 9.1.5
|
| deadzoneY |
number? |
Added in 9.1.5
|
| comment |
string? |
|
Patch changes
Patch 9.0.1 (2020-10-13): Added.
|
C_GamePad |
|---|
|
|
Global API |
|---|
| | | |
|---|
| | Devices | |
|---|
| | Configs | |
|---|
| | Bindings | |
|---|
| | Cursor |
- CanAutoSetGamePadCursorControl
- CanGamePadControlCursor
- IsGamePadCursorControlEnabled
- SetGamePadCursorControl
|
|---|
| | Free look |
- IsGamePadFreelookEnabled
- SetGamePadFreeLook
|
|---|
| | Vibration | |
|---|
| | Led | |
|---|
| |
| |
| |
| |
|
CVars |
|---|
| | |
- GamePadEnableGamePadEnable
Default: 0 Whether GamePad input should be enabled
- GamePadAbbreviatedBindingReverseGamePadAbbreviatedBindingReverse
Default: 1 Display main binding button first so it's visible even if truncated on action bar
- GamePadSingleActiveIDGamePadSingleActiveID
Default: 0 ID of single GamePad device to use. 0 = Use all devices' combined input
- GamePadVibrationStrengthGamePadVibrationStrength
Default: 1 GamePad vibration effect strength
- GamePadFactionColorGamePadFactionColor
Default: 1 Enable setting GamePad's led color to match current faction
|
|---|
| | Camera |
- GamePadCameraLookMaxPitchGamePadCameraLookMaxPitch
Default: 0 Max pitch 'Look' stick can adjust camera angle
- GamePadCameraLookMaxYawGamePadCameraLookMaxYaw
Default: 0 Max yaw 'Look' stick can adjust camera angle
- GamePadCameraPitchSpeedGamePadCameraPitchSpeed
Default: 1 Pitch speed of GamePad camera moving up/down
- GamePadCameraYawSpeedGamePadCameraYawSpeed
Default: 1 Yaw speed of GamePad camera turning left/right
- GamePadTurnWithCameraGamePadTurnWithCamera
Default: 1 Turn character to match when camera facing is changed (1=in-combat, 2=always)
- CameraFollowGamepadAdjustDelayCameraFollowGamepadAdjustDelay
Default: 1.0, Scope: Account Delay before follow resuming after manually adjusting the camera with Gamepad input
- CameraFollowGamepadAdjustEaseInCameraFollowGamepadAdjustEaseIn
Default: 1.0, Scope: Account Ease-in time for follow resuming after manually adjusting the camera with Gamepad input
|
|---|
| | Cursor |
- GamePadCursorAutoDisableJumpGamePadCursorAutoDisableJump
Default: 1 GamePad cursor control will auto-disable when you jump
- GamePadCursorAutoDisableSticksGamePadCursorAutoDisableSticks
Default: 2 GamePad cursor control will auto-disable on stick input (0=none, 1=movement, 2=movement+cursor)
- GamePadCursorAutoEnableGamePadCursorAutoEnable
Default: 1 Auto enable GamePad cursor control when opening UIs that may need it
- GamePadCursorCenteredEmulationGamePadCursorCenteredEmulation
Default: 1 When cursor is centered for GamePad movement, also emulate mouse clicks
- GamePadCursorCenteringGamePadCursorCentering
Default: 0 When using GamePad, center the cursor
- GamePadCursorForTargetingGamePadCursorForTargeting
Default: 1 Enable GamePad controlled cursor for spell targeting (1=enable, 2=start-at-target)
- GamePadCursorLeftClickGamePadCursorLeftClick
Default: PADRTRIGGER GamePad button that should emulate mouse Left Click while controlling the mouse cursor
- GamePadCursorOnLoginGamePadCursorOnLogin
Default: 1 Enable GamePad cursor control on login and character screens
- GamePadCursorPushCameraGamePadCursorPushCamera
Default: 1 Rate for GamePad controlled cursor to push/turn camera when at edge of window
- GamePadCursorRightClickGamePadCursorRightClick
Default: PADRSHOULDER GamePad button that should emulate mouse Right Click while controlling the mouse cursor
- GamePadCursorSpeedAccelGamePadCursorSpeedAccel
Default: 2 Acceleration of GamePad cursor per second as it continues to move
- GamePadCursorSpeedMaxGamePadCursorSpeedMax
Default: 1 Top speed of GamePad cursor movement
- GamePadCursorSpeedStartGamePadCursorSpeedStart
Default: 0.1 Speed of GamePad cursor when it starts moving
- GamePadTouchCursorEnableGamePadTouchCursorEnable
Default: 1 Enable cursor control with GamePad's touch pad
|
|---|
| | Emulate |
- GamePadEmulateCtrlGamePadEmulateCtrl
Default: PADLSHOULDER GamePad button that should emulate the Ctrl key
- GamePadEmulateShiftGamePadEmulateShift
Default: PADLTRIGGER GamePad button that should emulate the Shift key
- GamePadEmulateAltGamePadEmulateAlt
Default: none GamePad button that should emulate the Alt key
- GamePadEmulateEscGamePadEmulateEsc
Default: PADBACK GamePad button that should emulate the Esc key
|
|---|
| | Movement |
- GamePadAnalogMovementGamePadAnalogMovement
Default: 1 Enable analog movement in any direction, rather than just the 8 cardinal directions
- GamePadFaceMovementMaxAngleGamePadFaceMovementMaxAngle
Default: 0 Max movement to camera angle to face movement direction instead of camera direction. 0 = always, 180 = never (115 allows using strafe with quick turn around)
- GamePadFaceMovementMaxAngleCombatGamePadFaceMovementMaxAngleCombat
Default: 180 Max movement to camera angle to face movement direction instead of camera direction, in combat. 0 = always, 180 = never (115 allows using strafe with quick turn around)
- GamePadStickAxisButtonsGamePadStickAxisButtons
Default: 0 Enables virtual buttons for the GamePad stick cardinal directions
- GamePadTankTurnSpeedGamePadTankTurnSpeed
Default: 0 If non-zero, character turns like a tank from GamePad movement
|
|---|
|
|