1. zendraw

    GMS 2 any_key for gamepad

    is there a way to check if any button on the gamepad has been pressed? like how you wuld do keyboard_check_pressed(vk_anykey); ? i checked the inbuild vars but culdnt see a way.
  2. 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...
  3. KyleRansford

    GMS 2 Vertical Menu with Gamepad

    I have a fully working vertical menu that gets input from the keyboard and the gamepad D-Pad, but when I try to add the joystick/analog the choice just move all at once in one direction. How can I make it to where it just goes down one, like the arrow keys and the D-Pad. Here is the current...
  4. 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...
  5. Qlak

    GML [SOLVED] Efficient Angle Check - 359 and 0 degrees

    Hey guys! I'm having hard time when it comes to checking angles. I managed to achieve what I wanted, but I'm sure that there must be a better way, because my code is not clean for sure. Maybe you could help me out :): -For instance, imagine that you have traditional top-up 2d shooter, left...
  6. M

    360* Joystick Rotation

    Just wanted to share some SIMPLE code I worked up to get full 360 degree rotation for GamePads (joysticks for GM8) LEFT Joystick - full 360 movement & image rotation End Step Event: hspeed = gamepad_axis_value(0,gp_axislh) // hspeed = left joystick horizontal movement vspeed =...
  7. A

    Windows Gamepad detected but inputs not working

    A weird issue has popped up with my gamepad implementation: Gamepad is being detected but none of the inputs are responding at all. This was with an implementation that I had previously had working (And works for Mac just fine). I've paired it down in a separate project to try and debug but...
  8. thom

    Linux Gamepads are not working on Linux (Ubuntu)

    It appears that gamepads aren't working properly on Linux (Ubuntu). After some tests I have noticed the following: -The gamepad slot used is not in the 0-11 range, but will start at 12. -The buttons of XInput (Xbox) gamepads are also assigned wrong on Linux, for example if you press the "LT"...
  9. 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...
  10. JEMcG

    Windows Xbox pad being picked up but not working, PS4 pad not being picked up but working anyway?

    Hi, I'm trying to make the beginnings of a controller system. I want the game to sense for all controllers and then the player can just use whichever they feel like. I want this to be interchangeable with keyboard input too. Currently I have the following code searching for controllers...
  11. Dwighty4000

    GMS 2 Gamepad control - how can i implement it?

    I watched 3 different tutorials but I still not... And I still don't know how it works with the value's correctly. In addition, I do not know how to call that no key is pressed on the controller, as it is on the keyboard: "vk_nokey". Because I have a running animation in a sprite when a key is...
  12. Appletreeman

    Mac OSX Gamepad not detected

    Hi all, I'm trying to add gamepad support to my project but cannot seem to get GMS:2 to detect it. The gamepad is a PS Dualshock 4 and is detected fine and works in games that I've downloaded from the mac app store/steam etc. If I run the following code in my game initialisation (runs right...
  13. bluetrack

    Android Select active Gamepad

    MACOS IDE: v. Runtime: v. Hi, is there a way to select automatically one gamepad of the ones GM:S detects and set it as default? For instance on Android and specificlly on AndroidTV there are various inputs detected and put on different slots. (eg. SONY input service...
  14. P

    Check joystick/gamepad slot no.

    Hi. Problem: I'm having problems using 2 gamepads on a Windows machine, as Windows keeps switching their slot numbers. Is there a way to control this in GM2 rather than Windows? Background: I've made an arcade machine and added a laptop running Windows 10, where I have installed a game I've...
  15. Didjynn

    [SOLVED] gamepads Xinput of Dinput

    Hello everyone, I made a game playable up to 6 players but it seems some people complain about the impossibility to use more than 4 pads (xbox one officials ireless) at the same time. They say the 5th pad has no reaction at all, it's not just bad input mapping or anything and as far as I know...
  16. 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...
  17. H

    GMS 2 Need help understanding GMS' deadzone when third-party deadzone is also configured

    Hi, pleasure to meet you all. Had a couple of questions regarding deadzone configuration that I couldn't find searching the forums or in the docs, if info is already there I'm happy for a re-direct and thread closure, apologies if that is the case. I wanted to know if configuring the deadzone...
  18. J

    Windows [SOLVED] event_type in asynchronous System Event only returns 7

    I am trying to write a gamepad detection with an asynchronous system event in GMS2 but instead of "gamepad discovered" or "gamepad lost", I only get undefined when reading the variable event_type. Nonetheless the event is triggered when I connect or disconnect a controller. It's only event_type...
  19. M

    GamePad "Key Down" and "Key Up"

    Is there a way where I can use a gamedpad to know when a key is pressed and released? Like how there are the "Key Down" and "Key Up" events.
  20. E

    Passing multiplayer gamepad variables to another object.

    I currently am working on a multi-player game, which has numerous special weapons. Player one and two both function fine and can enable special weapons independently. However, disabling a special weapon is not working correctly. For example, when shield is activated, it will remain active...