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

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

H1Vltg3

[V] Control Codes for Gamepads

Recommended Posts

H1Vltg3

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

Share this post


Link to post
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
};

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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