Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    2. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    3. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

[V] Control Codes for Gamepads


H1Vltg3
 Share

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

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

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
 Share

  • 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.