Jump to content

[V] Control Codes for Gamepads


H1Vltg3

Recommended Posts

Here is a list I made of all of the control codes for Gamepads, it is fully mapped now:

 

CONTROLS.IS_CONTROL_PRESSED(2,X) -- Replace X with Number below, most have multiples you can try

A    - 73 - 70 - 21 - 18X    - 99 - 22Y    - 75 - 56 - 53 - 49 - 23B    - 80 - 45L3   - 86 - 28R3   - 79 - 93 - 50 - 29 - 26LB   - 68 - 89 - 38 - 37RB   - 69 - 76 - 90 - 55 - 44LT   - 77 - 72 - 88 - 91 - 25 - 15 - 10RT   - 78 - 71 - 87 - 92 - 46 - 24 - 14 - 11DPUP - 42 - 27DPDN - 48 - 43 - 20 - 19DPLT - 85 - 58 - 52 - 47DPRT - 74 - 54 - 51RSRT - 66 - 13 - 6RSLT - 5RSUP - 3RSDN - 67 - 12 - 4 - 2LSRT - 64 - 59 - 35 - 30 - 9 - 1LSLT - 63 - 34LSUP - 61 - 40 - 32LSDN - 60 - 41 - 39 - 33 - 31 - 8CTRL - 62 - 36
Link to comment
Share on other sites

Neutrinobeam

I've documented nearly all the control codes in a header available with one of my mods, Mod Menu. Here's the list arranged according to what they do.

 

 

enum Control {
None = -1,

/* Special Inputs */
//LookZoom = 0, //236
//LookUp = 3, //292,
//LookDown = 4, //293,
//LookLeft = 5, //294,
//LookRight = 6, //295,
//CharSwap = 19,
//RadarZoom = 20, //48
//ContextAction = 38, //46, 51,
//SwapMichael = 166,
//SwapFranklin = 167,
//SwapTrevor = 168,
//CancelActionPlay = 170,
//ToggleSpecial = 171,
//Pause = 199,
//QuickMenu = 244,
//ToggleRecording = 288,
//ToggleActionPlay = 289,

/*On Foot Motion*/
//Sprint = 21,
//Jump = 22, //55
//EnterVehicle = 23,
//Fire = 24, //142, 223, 229, 257
//Aim = 25, // 222, 225
//LookBack = 26,
Forward = 32, //232
Backward = 33, //31, 219, 233, 268, 269
Leftward = 34, //234
Rightward = 35, //30, 218, 235, 266, 267
//Stealth = 36, //224
//Cover = 44, //52
//StickyOrQuickGrenade = 47, //58
//MeleeLight = 140, //263
//MeleeHeavy = 141, //264
//MeleeDodge = 143,

/*On Foot Weapon*/
//WeaponInSlotNext = 14, //262
//WeaponInSlotPrevious = 15, //261
//WeaponNext = 16,
//WeaponPrevious = 17,
//WeaponWheel = 37,
//ZoomOut = 39, //41, 43, 50, 274, 275, 276, 277
//ZoomIn = 40, //42
//Reload = 45,
//ToggleWeaponAssessory = 54,
//WeaponSlotUnarmed = 157,
//WeaponSlotMelee = 158,
//WeaponSlotPistol = 159,
//WeaponSlotShotgun = 160,
//WeaponSlotSMG = 161,
//WeaponSlotAssault = 162,
//WeaponSlotSniper = 163,
//WeaponSlotHeavy = 164,
//WeaponSlotGrenade = 165,

/*Cars, Bikes, & Boats*/
//CinematicSlow = 7,
//CinematicCamera = 80,
//LeanForward = 61,
//LeanBackward = 62, //60, 280, 281
//SteerLeft = 63,
//SteerRight = 64, //59, 278, 279
//DrivebyAim = 68, //91
//DrivebyFire = 69, //92
//Accelerate = 71, //136
//Brake = 72, //139
//Duck = 73, //105, 120
//Headlights = 74, //101, 104
//ExitVehicle = 75,
//Handbrake = 76, //102
//LookBackVehicle = 79,
//RadioNext = 81,
//RadioPrevious = 82,
//RadioPCNext = 83,
//RadioPCPrevious = 84,
//RadioWheel = 85,
//Horn = 86,
//WeaponNextVehicle = 99, //115
//WeaponPreviousVehicle = 100, //116
//MouseDrive = 106,
//BikeSprint = 137,
//BikeBrake = 138,
//JumpSpeedUp = 335,
//JumpSlowdown = 336, //334

/*Planes & Helicopters*/
//AirThrottleUp = 87,
//AirThrottleDown = 88,
//AirLeft = 89,
//AirRight = 90,
//AirVTOLOrHook = 103, //119
//AirRollLeft = 108,
//AirRollRight = 109, // 107
//AirPitchForward = 111,
//AirPitchBackward = 112, //110
//AirLandingGear = 113,
//AirFire = 114,
//AirAimLeft = 117,
//AirAimRight = 118,
//AirWeaponCamera = 121,
//AirMouseDrive = 122,

/*Submarine*/
//SubLeft = 124,
//SubRight = 125, //123
//SubPitchForward = 127,
//SubPitchBackward = 128, //126
//SubThrottleUp = 129,
//SubThrottleDown = 130,
//SubUp = 131,
//SubDown = 132,
//SubHardLeft = 133,
//SubHardRight = 134,
//SubMouseDrive = 135,

/*Parachute*/
//ChuteDeploy = 144,
//ChuteDetach = 145,
//ChuteLeft = 147,
//ChuteRight = 148, //146
//ChuteForward = 150,
//ChuteBackward = 151, //149
//ChuteHardLeft = 152,
//ChuteHardRight = 153,
//ChuteSmoke = 154,
//ChuteFineControl = 155,

/*Phone*/
//PhoneOn = 27,
PhoneUp = 172, //188
PhoneDown = 173, //187
PhoneLeft = 174, //189
PhoneRight = 175, //190
//PhoneSelect = 176,
PhoneCancel = 177,
//PhoneOption = 178,
//PhoneAltOption = 179,
//PhoneScrollRight = 180,
//PhoneScrollLeft = 181,
//PhoneCamLockFocus = 182,
//PhoneCamGrid = 183,
//PhoneCamMode = 184,
//PhoneCamDOF = 185,
//PhoneCamFace = 186,

/*Keys*/
//Tilde = 243,
//TabAndControllerY = 192, //204
//TabAndControllerRB = 211,
//QAndControllerLB = 205,
//WAndControllerLT = 77,
//EAndControllerRB = 206,
//RAndControllerLIn = 250,
//RAndControllerBack = 310,
//TAndControllerPadDown = 309,
//YAndControllerPadUP = 303,
//LeftBracketAndControllerPadLeft = 312,
//RightBracketAndControllerRight = 197,
//RightBracketAndControllerPadRight = 313,
//CapsLockAndControllerBack = 217,
//S = 302,
//SAndControllerDown = 8, //196
//SAndControllerRT = 78,
//DAndControllerRight = 9,
//DAndControllerRightAndLB = 195,
//FAndControllerY = 49,
//FAndControllerPadLeftAndRIn = 251,
//HAndControllerRIn = 304,
//KAndControllerPadDown = 311,
//EnterAndNumPadEnterAndControllerA = 201,
//LeftShift = 254,
//LeftShiftAndControllerLIn = 209,
//X = 323,
//XAndControllerLT = 252,
//C = 319, //324
//CAndControllerRT = 253,
//V = 320, //325
//BAndControllerRIn = 29,
//MAndControllerA = 301,
//LeftCtrl = 326,
//LeftCtrlAndControllerRIn = 210,
//Space = 321,
//SpaceAndControllerRB = 55,
//SpaceAndControllerX = 193, //203, 216
//SpaceAndControllerA = 298,
//SpaceAndControllerRT = 328,
//SpaceAndMouseR = 331,
//RightCtrlAndMouseRAndControllerA = 70,
//Escape = 200, //322
//F5 = 327,
//F5AndControllerStart = 318,
//F9AndControllerY = 56,
//F10AndControllerB = 57,
//DeleteAndControllerX = 214, //256, 296
//DeleteAndControllerB = 297,
//HomeAndControllerBack = 212,
//PageUpAndControllerLT = 10,
//PageUp = 316,
//PageUpAndControllerRT = 208,
//PageDownAndControllerRT = 11,
//PageDownAndControllerLT = 207,
//PageDownAndMouseM = 317,
//ArrowUpAndControllerRB = 300,
//ArrowDownAndControllerLB = 299,
//ArrowLeftAndControllerPadLeft = 308,
//ArrowRightAndControllerPadRight = 307,
//NumPadMinusAndMouseWDown = 97,
//NumPadMinusAndControllerLB = 315,
//NumPadPlusAndMouseWUp = 96,
//NumPadPlusAndControllerRB = 315,
//MouseL = 237, //329
//MouseR = 238, //330
//MouseWUp = 241,
//MouseWDown = 242,
//MouseWDownAndControllerDown2 = 198,
//ControllerA = 258,
//ControllerX = 259,
//ControllerY = 53,
//ControllerB = 333,
LeftBumper = 226,
//LeftTrigger = 228,
//RightBumper = 227, //134, 213, 314
//RightTrigger = 92, //260,
//LeftIn = 230, // 28,
//RightIn = 231, // 93

/*Inputs*/
Select = 18, //Space + Enter + Controller A + Left Mouse, 255 -LM ,191 215 -Space-LM
Cancel = PhoneCancel, //Backspace + Controller B + Escape + Right Mouse, 202 -RM, 194 -RM & ESC
MenuUp = PhoneUp, // Arrow Up + Controller DPad Up
MenuDown = PhoneDown, // Arrow Down + Controller DPad Down
MenuLeft = PhoneLeft, // Arrow Left + Controller DPad Left
MenuRight = PhoneRight, // Arrow Right + Controller DPad Right
};

 

  • Like 3
Link to comment
Share on other sites

Neutrinobeam

I found some resources elsewhere that made the above obsolete, and am in the process of updating Mod Menu's documentation with it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.