joystick

  1. FoxyOfJungle

    SOLVED Android multi-touch not wortking...

    Hello! So, I have a virtual joystick, but it only detects the click if the "device" is 0. If I use a for loop, it doesn't recognize any clicks... 1 - This works: for (var i = 0; i < 1; ++i) { if device_mouse_check_button(i, mb_left) { if point_in_circle(device_mouse_x_to_gui(i)...
  2. Mookal

    GMS 2 Finding the Real Distance a Joystick is Pushed

    I'm making a game where the character's speed is analog, based on how much the player pushes the left stick on a connected controller. I'd think finding the distance between the joystick's position and its origin would be simple: var xpos = gamepad_axis_value(0, gp_axislh); var ypos =...
  3. E

    joystick help

    Hi, does anyone know of a good Joystick guide? I'm adding the photo I think. It's on a mobile app. I enclose a photo for an idea. Thanks
  4. Gasil

    SOLVED Solved

    Solved
  5. 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...
  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. W

    SOLVED Creating a collision system with a Virtual Joystick

    Hi! I've just recently started out with GameMaker and was wondering about collisions... There are many tutorials on typical x and y collisions, but I am looking to implement these with a virtual joystick, and I cannot seem to find any help online. It would also be nice to have smooth collisions...
  8. 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...
  9. KyleRansford

    GMS 2 How to Move Object Using Virtual Joystick

    Hello, I have a D-Pad style Object I made to move the Player Object around in top down style movement, but I noticed that it's not really efficient, seeing it's made of 4 objects with collision masks overlapping each other and causing some odd movement. How could I make it where I can move the...
  10. P

    GML Joystick (Windows and Ubuntu)

    Hiya. I'm trying to get a simple arcade joystick with a few buttons working in a game. I first need it in Windows and later preferably exported to Ubuntu. Windows detecs the joystick just fine and I can trace on a test website. I've been trying to use joystick_xpos() to trace my joystick in...
  11. PrismaticRealms

    Asset - Extension PRVircon: Add virtual on-screen controls using this powerful, professional extension. (NEW!)

    Greetings everyone! My company, Prismatic Realms Inc. and I would like to introduce our 3rd GameMaker Studio 2 extension, just released on the marketplace! It's called PRVircon. This extension will allow you to easily add virtual on-screen controls (joysticks and buttons) to your games for...
  12. Samuel Venable

    Asset - Extension Joystick API (for Windows, macOS, and Ubuntu)

    It is a known issue that this extension has randomly decided to stop working for me on Mac OS X within the last two updates. I think the problem may be that I must have messed up the build shell scripts without realizing, as the code itself hasn't changed. If there is anyone here who has...
  13. Tiago Carvalho

    Android Help - Smooth Directions

    Good evening. I've been tweaking some smooth movements with a virtual joystick for Android. As is, the joystick allows you to control the direction of the player and works perfectly, but the character changes directions immediately. I've managed to make the player change directions smoothly...
  14. Y

    gamemaker touch controller spawn joystick where you touch

    I want to create a touch controller to spawn a joystick where you touch the screen and then destroy it when you don't touch the screen and to be invisible. Someone who knows how to build it? Have this standard programming: Object properties: obj_controller Events: Create, initialize virtual...
  15. J

    Windows GM2 Joystick not Working

    I have a Joystick Extreme 3d pro precision Logitech and a very simple plat former game. The current controls are the arrow keys however I would prefer to control it with the joystick main axle and trigger button only. currently theirs no gravity so I want the player's x and y cords to be set to...
  16. Y

    GamePad not Working

    Hello, I have a PS1 and PS2 devices with USB adaptor. I play all games and emulators with them but I'm not able to use PS1 controller on GameMaker. PS2: It works perfectly in GameMaker using Joystick functions. PS1: Not Working - It works perfect on Windows 10 Control Panel. - It works with...
  17. Y

    Windows Slowed when using "Joystick" function without joystick connected

    Hello, This happened with 1.4 and also 2.0 GameMaker. Here the problem step by step: - My game ran perfectly with keyboard control. - Then, I included Joystick functions from GameMaker, as it works with my PS2 controller perfectly. - Now, when Joystick is connected, everything goes perfect...
  18. Tofu Heavy Industries

    Legacy GM [SOLVED] Joystick/Gamepad/Keyboard weird input issues

    In my game i'm trying to let it support keyboard input, joystick input and gamepad input (so its backwards compatible). i'm running tests on my games' splash screen to see what controllers are being polled. And something really strange is happening. FYI im using GMS 1.4...
  19. Y

    Legacy GM point_in_rectangle not working (FIXED)

    if(point_in_rectangle(device_mouse_x(0),device_mouse_y(0),view_xview+view_wview/2, view_hview, view_xview+view_wview, view_yview) or point_in_rectangle(device_mouse_x(1),device_mouse_y(1),view_xview+view_wview/2, view_hview, view_xview+view_wview, view_yview)){ if(device_mouse_check_button(0...
  20. T

    GMS 2 Joystick Movement Problem

    Hello! I am using a JOYSTICK, not a GAMEPAD. I have a problem with the player movement (Player moves only LEFT. I want him to move RIGHT too). this is the code (Step Event): ///Movement if (joystick_direction(1) == vk_numpad6) { hspd = spd; } if (joystick_direction(1) == vk_numpad4) {...
Top