• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!



    Windows Detect controller type for correct button prompts

    What is the current best way to detect a controller type? I would like to display button prompts automatically according to the type of controller. - gamepad_get_description(gamepadID) is unreliable. When ran from Steam, it always returns "Xinput Standard Controller" - even for a PS4 or another...
  2. V

    How do I get rid of the gamepad stats in the top corner?

    I have tried the code in a new project and it doesn't show up. No matter how I alter the code in the current project it just doesn't go away. Is there a setting or something to turn this off?
  3. zendraw

    GMS 2 Xbox360 controller dont work

    a friend`s xbox 360 controller doesnt work with the game, while it works with other games. i have a tracer controller which works fine with the game. what culd the problem be with his controller? how can i debug this?
  4. Tofu Heavy Industries

    GML Gamepad inputs without Analog Stick

    I can't get my game to recognize any directional input from a controller without analog sticks. Such as a 8bitdo nes/snes usb controller. If I plug in a XInput controller (such as a PS2 w/ usb converter), I can use either the analog sticks or the dpad, but if the controller doesn't have analog...
  5. KyleRansford

    SOLVED Controller Input Using Object Variables Issue

    Can anyone tell me why this isn't working properly? I have made a Player Controller Input object o_input, o_inputP2, o_inputP3 & o_inputP4 with a menu Switch statement so each player can actually choose what slot their controller will be in. I have different modes the menus work in, but this...
  6. CrackedGamer§

    GMS 2 How to use a GamePad?

    I know that is a very vague question, but if we just assume that I have a completely empty project and I want to see if a specific controller is pressing the right trigger. I know that there is a way to make a 1D array of the controllers that are currently plugged in, is there a way to select...
  7. KyleRansford

    GMS 2 How to "Reserve" a Controller Slot for Player 1?

    I have my game setup where if there are more than 1 player, they can each use a controller. But, how would I "reserve" a controller slot for player 1? Since the way I currently have it working is, that in 1 player mode, the 1st player can use either the keyboard OR a controller. But, because of...
  8. WimpyLlama

    Not reconizing any gamepads

    I'm trying to get gamepad support working for my game but GMS2 won't recognize any of my controllers. I've tried my NS Pro Controller and PS4 Controller, both wired and not wired, but nothing is working. They both get recognized by Windows and both work in all the games I tested (Hyperlight...
  9. S

    GMS 2 How to have right stick override left stick?

    Hey everyone, I'm currently working on a small project in the GMS 2 trial version and I've run into a problem. I am trying to make my player aim an object around him while he's moving with the left stick on the controller, but you can also switch to the left stick for precise aiming. The thing...
  10. M

    Controller Not Recognized

    Hi. I have an issue connecting the Nintendo Switch Pro Controller to my game. This specific issue arises only when I connect it using a universal object that is created before everything else, where the game refuses to recognize it exists. When I place the exact same code in the get_input event...

    Legacy GM connecting a 8bitdo controller (SNES)

    hey yall, just wondering if it was possible to connect my snus 8bitdo controller to my game maker game. I know you could do it for Xbox but I didn't know if it is possible for game maker. it connects to windows and can work with many emulators but if i want to add it in my game, 1 how and 2 is...
  12. J

    Multiple controller pointers

    Hi All, I've been struggling with this problem for quite a while now and haven't seen anything on it so either its painfully obvious or it may require someone a little bit smarter to help! Essentially i'm making a multiplayer game that is predominately controller based. Each player has a...
  13. PlayerOne

    GMS 2 [Solved + Code] How to check what button is being pressed on the gamepad?

    Trying to work on key rebinds for both keyboard and controller. While I have the keyboard portion completed I'm a bit confused on bow to determine what button is being pressed on the controller. Basically is there function similar to keyboard_key for gamepad input?
  14. boymakesnoise

    Question - IDE gp_shoulderrb not registering on right trigger

    draw_text(10, 20, string(gamepad_axis_value(0, gp_shoulderrb))) gives me no result (0) when pressing the right trigger, but does print a value when I press the left joystick to the left or right. Same goes for gp_shoulderlb. My Xbox360 controller registers all buttons and axes fine in the...
  15. KPJ

    GMS 2 gamepad not working gms2 (SOLVED)

    Hi everyone. i have an issue with my gamepad. I have it connected, and it works if I play games with it. It also shows up on my control panel. however, game maker isn't recognizing it. In my player step event, I have: if (gamepad_is_connected(0)) { instance_destroy(); } however my player...
  16. KyleRansford

    GMS 2 How to only Perform Action After a Button is Pressed [SOLVED]

    I'm using a Xbox controller and I want to make it where an action is only done after holding down the Left Trigger. For example, if you push the X Button without first holding down the Left Trigger nothing should happen. But if you first hold down the Left Trigger then push the X Button the...
  17. A

    Dinput Controller Not Detected

    I have connected a Nintendo Switch Pro Controller to my PC. It works on my PC just fine with no intervention. Programs like Dolphin are able to use it just fine and if I go to "Setup USB Game Controllers" (which is poorly named bc it detects my wireless controller as well) I can see "Wireless...
  18. Z

    GML How do I get DualShock 4 (PS4) controllers to work?

    Hello, I'm sort of to GML to, having only made an extremely simple top-down stealth game without drag-and-drop, I have made a somewhat bold statement to my friends in my 10th grade game design class, that I was going to make a top down, split screen shooter, where player 1 uses the keyboard, and...
  19. CleanWater

    Linux gp_axislv returning only 0

    Hi there! The gp_axislv is returning only 0 on Linux (using D-Input controllers). Is there any workaround for this? My whole game pad system is functioning perfectly on both Windows and Linux. I only need to fix this single issue to release a new update for my games. On Windows the values...
  20. S

    Drawing blood

    So i have a project now with a lot of blood.How the blood system works: one blood object gets created, that objects creates 15 little objects that go in a random 360 direction. When they hit something they stop moving and give their x and y coords to a master blood controller. that controller...