1. Post #1
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    So I've been playing around with my controller recently, and got it working with Garry's Mod quite fluidly. I'd like to share my effort with all of you in this simple How-To guide. I even made some images for you.


    First off, make sure your controller is plugged in and responding. You may need drivers from Microsoft if you haven't done that already.



    Second, install this handy-dandy .cfg file. Simply drag and drop into
    C:\Program Files\Steam\steamapps\YOURNAME\garrysmod\garrysmod \cfg

    Download:
    http://www.mediafire.com/?w1bmiwd194ycc32

    This configuration file binds all of the keys needed to use an Xbox controller ingame and makes the joysticks operable.


    Third, install "JoyToKey".
    http://electracode.com/4/joy2key/Joy...%20Version.htm
    Download link is at the bottom of the page. It's not really even in installation, program is already set to go.


    Now, install this second cfg to the SAME DIRECTORY THAT JOYTOKEY IS IN.
    http://www.mediafire.com/?4ecnanbk9ntd94v

    Now, make sure that your controller is ON and run JoyToKey. You should see the "Gmod" configuration to the left. Select it. You should now be able to use your right control stick to move the mouse, R to click, and L to right click. This config also makes it so that START hits the "Escape" key (pause menu) and Dpad right and left operate the scrollwheel.


    Lastly, run Garry's Mod, open up the console, and type "exec xbox360controller". It should autocomplete the sentence for you. Hit enter, and you should be good to go. Start up a singleplayer game and test it. Here's the binding sheet:

    Right Trigger: Primary
    Left Trigger: Secondary
    Right Bumper: Next weapon
    Left Bumper: Sprint
    A: Jump
    B: Reload
    X: Activate
    Y: (Nothing, you can bind it by editing the CFG in your garry's mod folder and rerunning exec xbox...etc)
    Back: Spawnmenu
    Start: Escape Menu
    Left Stick: Movement
    Left Stick (Button): Crouch
    Right Stick: Look around/Operate Spawnmenu
    Right Stick (Button): Suit Zoom
    D-Pad Up: Flashlight
    D-Pad Down: Noclip
    D-Pad Right & Left: Scrollwheel


    KNOWN ISSUES/Other things:
    -Crouch does not seem to work well in multiplayer (you can try editing the cfg and changing the command from "+duck" to "toggle_duck")
    -Want to use voice? Go into the CFG and where it says
    bind "JOY4" "" // Y
    change it to
    bind "JOY4" "+voicerecord" // Y
    -Can't rotate props conventionally. Oversight on garry's part.


    I hope this tutorial was helpful, feel free to ask questions.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb x 8Funny x 7Useful x 4Informative x 2Artistic x 1Optimistic x 1 (list)

  2. Post #2
    That Dog
    Ehmmett's Avatar
    March 2009
    13,518 Posts

    JoyToKey. :effort:
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 10 (list)

  3. Post #3
    BrQ
    Test victim #2
    BrQ's Avatar
    June 2008
    6,861 Posts
    What did we need again to connect wireless controllers to pc?

  4. Post #4
    That Dog
    Ehmmett's Avatar
    March 2009
    13,518 Posts
    What did we need again to connect wireless controllers to pc?
    OP neglected to mention this only works with wired controllers.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 9 (list)

  5. Post #5
    Gold Member
    Blueridge's Avatar
    July 2008
    2,320 Posts
    Or you could use a BlueTooth Adapter.
    Reply With Quote Edit / Delete Reply United States Show Events Disagree Disagree x 1Dumb Dumb x 1Agree Agree x 1 (list)

  6. Post #6
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    OP neglected to mention this only works with wired controllers.
    It works with either. I use a wireless controller.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 3Dumb Dumb x 1Useful Useful x 1 (list)

  7. Post #7
    PEn1s lol's Avatar
    December 2009
    982 Posts
    Whats the point controllers suck.
    Reply With Quote Edit / Delete Reply Canada Show Events Agree Agree x 17Dumb Dumb x 5Disagree Disagree x 4 (list)

  8. Post #8
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    Whats the point controllers suck.
    Then don't use them. This is a tutorial for those who would like to, for novelty or otherwise.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 11Dumb Dumb x 1Winner Winner x 1 (list)

  9. Post #9
    Ligger Nyncher
    Tacooo's Avatar
    August 2009
    7,133 Posts
    I done this but with Xpadder
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 3 (list)

  10. Post #10
    Drainwater's Avatar
    April 2009
    779 Posts
    I done this but with Xpadder
    It's far simpler with Xpadder...not that it would be something I'd want to do, but you could cut out like 75% of the hassle that this method causes.

  11. Post #11
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    It's far simpler with Xpadder...not that it would be something I'd want to do, but you could cut out like 75% of the hassle that this method causes.
    There really isn't that much hassle with this method, I would say.

  12. Post #12

    April 2010
    1,857 Posts
    Uhm, how would we exactly, ragdoll pose?

  13. Post #13
    fixture's Avatar
    April 2009
    667 Posts
    and i thought gmod with a mac mouse would suck
    Reply With Quote Edit / Delete Reply Singapore Show Events Zing Zing x 6 (list)

  14. Post #14
    Gold Member
    Eltro102's Avatar
    February 2008
    11,055 Posts
    Surely Glovepie would work better?

  15. Post #15
    That Dog
    Ehmmett's Avatar
    March 2009
    13,518 Posts
    Uhm, how would we exactly, ragdoll pose?
    You pretty much don't.
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 1 (list)

  16. Post #16
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    Uhm, how would we exactly, ragdoll pose?
    Ehmmet is right, it's pretty difficult. Like I said, this is more of a novelty than anything, it's not at all more functional than a mouse and keyboard.

  17. Post #17
    mcskinsearch
    hacksore's Avatar
    February 2010
    1,054 Posts
    OP neglected to mention this only works with wired controllers.
    You're dumb.

    Or you could use a BlueTooth Adapter.
    No it's a Wireless Gaming Receiver, not Bluetooth.

    What did we need again to connect wireless controllers to pc?
    Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.
    Reply With Quote Edit / Delete Reply United States Show Events Informative Informative x 2 (list)

  18. Post #18
    Brodster55's Avatar
    January 2009
    350 Posts
    How can I do this with a wireless one

  19. Post #19
    Groovy Member
    Agent Cobra's Avatar
    January 2005
    2,882 Posts
    Or, get the module/addon: http://www.facepunch.com/threads/403...fied-interface

    And use your XBox controller to control your contraptions! (Works great with helicopters and such)

    Even works with having two XBox controller linked in wirelessly! :buddy:
    Reply With Quote Edit / Delete Reply Show Events Informative Informative x 1 (list)

  20. Post #20
    If clothing didn't exist and everyone walked around with their penises fully erect I would have all the bitches.
    ROFLBURGER's Avatar
    May 2009
    23,452 Posts
    What do we mean by "drivers from Microsoft"?

    Whats the point controllers suck.
    It's a good vibrator
    Reply With Quote Edit / Delete Reply Canada Show Events Funny Funny x 3Optimistic Optimistic x 2Agree Agree x 1Dumb Dumb x 1 (list)

  21. Post #21
    a-k-t-w's Avatar
    March 2008
    3,199 Posts
    You're dumb.


    No it's a Wireless Gaming Receiver, not Bluetooth.


    Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.
    What, really? I got mine from a store not to long ago.

    The wireless receiver I mean.

  22. Post #22
    Chicken wings's Avatar
    September 2009
    272 Posts
    -Can't rotate props conventionally. Oversight on garry's part.
    Garry made this for pc?

  23. Post #23
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.
    They discontinued them? No wonder I've never seen them in stores. Why would they discontinue them?

    Garry made this for pc?
    Yes, he did, good job.

    He did not adapt the joystick controls because they were not a priority.

  24. Post #24
    Gold Member
    Adzter's Avatar
    September 2009
    2,028 Posts
    The back doesn't open the spawnmenu for me, mabye because im using an xbox copy not an official controller.

  25. Post #25
    Mobon1's Avatar
    January 2010
    2,652 Posts
    I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1 (list)

  26. Post #26
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    The back doesn't open the spawnmenu for me, mabye because im using an xbox copy not an official controller.
    Probably.
    I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.
    For the second time: Then don't use them.

  27. Post #27
    If you're going to buy me a page streatching title at least consult with me
    Dennab
    November 2010
    700 Posts
    I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.
    Does it matter to you? Ill play with my dog if I have to.
    Reply With Quote Edit / Delete Reply United States Show Events Optimistic Optimistic x 1 (list)

  28. Post #28
    Fight until death, shoot until empty.

    November 2009
    15,690 Posts
    the real question is, why play with a controller when you have a mouse and keyboard.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1Agree Agree x 1 (list)

  29. Post #29
    Gold Member
    yuki's Avatar
    December 2006
    4,209 Posts
    the real question is, why play with a controller when you have a mouse and keyboard.

    Ehmmet is right, it's pretty difficult. Like I said, this is more of a novelty than anything, it's not at all more functional than a mouse and keyboard.
    Feel free to ignore the thread.

  30. Post #30
    That Dog
    Ehmmett's Avatar
    March 2009
    13,518 Posts
    This thread made me want to have a go at controllers. Made a pretty bad ass Wiimote control script in Glove PIE. It was actually far better than an actual controller.

  31. Post #31

    January 2012
    10 Posts
    Links not working
    Reply With Quote Edit / Delete Reply Windows 7 Sweden Show Events Winner Winner x 1 (list)

  32. Post #32
    Gold Member
    MrWhite's Avatar
    March 2010
    3,593 Posts
    Links not working
    I can't imagine why, what with it being a 3 year old thread and all. How did you even dig this up? it had to be at least 10 pages deep.
    Reply With Quote Edit / Delete Reply Windows 8 United States Show Events Funny Funny x 1 (list)

  33. Post #33
    lNloruzenchi's Avatar
    May 2009
    405 Posts
    I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.
    on this note, what about that one addon for the radial menus? we could use that. multiple functions on one button
    (+menu/-menu needed, though that may have been a good idea with pressure sensitivity and whatnot)

  34. Post #34

    January 2012
    10 Posts
    I can't imagine why, what with it being a 3 year old thread and all. How did you even dig this up? it had to be at least 10 pages deep.
    I searched for help with the controller. -.-

  35. Post #35
    Gold Member
    LittleBabyman's Avatar
    November 2010
    5,822 Posts
    I searched for help with the controller. -.-
    Why would anyone use controller with Garry's Mod?

    I mean, it's possible to properly play it with one but still, why?
    Reply With Quote Edit / Delete Reply Windows 7 Finland Show Events Agree Agree x 1 (list)

  36. Post #36

    January 2012
    10 Posts
    Why would anyone use controller with Garry's Mod?

    I mean, it's possible to properly play it with one but still, why?
    For the use of WAC helicopters, There are Military RP servers who use WAC Heli's and thats why its good to have a controller since its easier to fly with a controller for most people.

  37. Post #37
    da space core's Avatar
    March 2012
    1,304 Posts
    I'm pretty sure WAC has its own thing for controllers. Check its thread
    http://facepunch.com/showthread.php?t=985744

  38. Post #38
    8==== ===== ===== ===== ===D
    Dennab
    April 2008
    4,831 Posts
    xbox 360 what the hell is an xbox 360 o wait do you mean the old controller from last generation?!??!

    wow get with the times man...
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Late Late x 1 (list)

  39. Post #39
    Gold Member
    hellothere231's Avatar
    October 2012
    264 Posts
    I tried to use my PS3 controller with GMod once. I didn't like it.

  40. Post #40

    June 2013
    1 Posts
    Well, now i'm saving up for a USB XBox remote xD Thanks for the post.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 4 (list)