Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [joystick]

A form of directional input consisting of a stick that pivots from a fixed position. May or may not have buttons on top or on its base.

0
votes
1answer
20 views

Second input not working when using 2 virtual joysticks

We are trying to make 2 virtual joysticks for both sides of the screen. Movement joystick can be enabled at any pressed position of the left side of the screen and shooting joystick can be enabled on ...
0
votes
0answers
42 views

Unity: Nintendo Switch Pro Controller Joystick

I have a simple question that I've been researching for days. When I connect my Nintendo Switch Pro Controller to my (Mac) computer via bluetooth and use it for Unity input, everything works except ...
0
votes
0answers
20 views

How can I move car by Joystick like Death & Really?

I'm trying to move my car by Joystick like this gif: I have Idea to making this system: suppose there is object front of car as carrot.when player move Joystick , carrot will rotate.so car will ...
3
votes
2answers
166 views

What verb describes when you hold a joystick to the right or left?

I'm trying to describe a the scenario where you use a joystick to turn the camera. However, I'm struggling to find the word for this. Saying the joystick is "pressed" could mean the joystick is ...
0
votes
0answers
53 views

Inverted left & right stick axes in SDL2

I've faced a weird problem with SDL2. ...
0
votes
0answers
20 views

Need help to merge joystic/gamepad support (i got it !) on shoot'em up already scripted

i need little help please, to get started the right way : this links support very well joystick/gamepad on pyglet: gamepad support script I would like to migrate it on first or second basic pyglet ...
0
votes
1answer
482 views

Cant set up to get input from second analog stick

So I know for a fact that the stick on my gamepad is working. The problem is I cant set it up in the Input Manager. I tried all possible Axis configurations and still getting a input values of 0. Here ...
1
vote
2answers
87 views

How to tell whether the joystick axis is released (not pushed) in SDL2 or in general?

I'd like to implement an event listener that triggers character movement (left/right/up/down or stay) according to the direction of pushed axis on the joystick. Due to jittering, the approach I found ...
0
votes
1answer
227 views

Smooth Rotate Object While Orbiting

I am working on a 3D game where you can control an object that orbits a sphere with an on-screen virtual joystick. So far I have that part working, but the object follows the joystick angle perfectly ...
0
votes
2answers
3k views

Unity3d - How to use controller joystick to look around?

I try to use my xbox controller as input device for a game targeted to run on windows. However the documentation fails to explain how to set it up. E.g. how can I use the right stick from my xbox ...
0
votes
0answers
61 views

Virtual joystick in Unity

When creating a virtual joystick in Unity I got a problem. The problem is that my joystick`s correct functioning seems to be dependent on its size, because when I changed it from 500 by 500 to 200 by ...
0
votes
1answer
121 views

Bank ship left/right based on virtual joystick

I have a 3D game in Unity with a top-down camera view centered directly above a space ship. The ship always stays in the center of the screen, but it allows you to orbit a planet freely using an on-...
0
votes
1answer
604 views

How to change the virtual joystick Input direction depending on camera rotation so the player moves to its current forward direction?

I have a scene set up where the player moves and rotates with Virtual Joystick Input. I have button which rotates the camera to the back of my player at that point I want to change the joystick input ...
2
votes
1answer
1k views

how to achieve smooth 360 Degree input with joystick as opposed to 8 angles

I have been trying to figure out how to implement controller input in my unity project. I figured out a lot of things except for how to take the 360 degree input of a thumbstick and apply that to a ...
1
vote
1answer
104 views

Why does my 2D top-down joystick code occasionally stop working?

I'm working on a 2D top-down game, and am working on the player controls. I have the following code currently controlling a player sprite: ...
-1
votes
2answers
308 views

Gamepad R2 button number for input manager

This should hopefully be an easy one but i'm stuck on this. I need to stop character movement and camera look if the R2 button on a gamepad is held down. The gamepad i'm using is a third-party ...
-1
votes
1answer
83 views

Why does my regular (XB360) joystick work but my virtual one won't?

I have my input manager setup properly before you ask. I am trying to get a virtual joystick working (notably this one and I've tried Unity's included ones in the SA's too) but it simply won't work ...
0
votes
1answer
60 views

Double touch joysticks

I am developing a mobile game where I need to control main character in any direction using touch analog joystick (https://pineight.com/mw/images/6/6f/Ipoc_dpad.png). It's ok but I also want my ...
0
votes
1answer
341 views

How to control a 2d charter in an top-down android game with the standard joystick?

So I'm building a 2d top-down game and I need to control my character using unity cross-platform standard asset single joystick. The problem is with the rotation, I don't want to use the dual-stick ...
0
votes
2answers
229 views

How to apply dual joystick on player movement that contain multiple sprite movement scripts?

I got my player movement script, joystick movement script, and keyboard movement script. The question is I have no idea how to change the keyboard movement script to the virtual joystick script. The ...
0
votes
2answers
75 views

Change the image gallery using joystick with Unity

I want to change the image using joystick controls.I have two two button(Go and Previous).How can I change the image using joystick
-1
votes
1answer
705 views

I can't use both of the Xbox 360 gamepad's analog triggers at the same time in my game

I am using a Xbox 360 controller on my Windows computer, with this control scheme: Squeezing LT aims down the sights of the weapon Squeezing RT shoots the weapon Each of these actions works ...
-1
votes
1answer
823 views

how to use 3rd axis input in unity?

I'm currently using a xbox 360 controller on my windows 10 computer. I've been trying to find how to use the LT and RT buttons on my controller to shoot and aim. Can some one give me an example on how ...
-2
votes
3answers
5k views

Button mapping of an Xbox 360 controller for windows

I can't get a clear answer on the rest of the internet. What are the joystick buttons for left and right triggers? I'm on Windows, if it matters.
2
votes
3answers
157 views

How to calculate Joystick margins/thresholds?

On a joystick that gives float position values from -1 to 1 on either of x and y axis, how do I implement the math that adds "lower" and "higher" circular margins? For example if lower margin is 25% (...
0
votes
1answer
162 views

How to create axes for a console controller

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?
1
vote
1answer
2k views

how to Move Player on “Z” Axis 2D Movement

first im little new to unity..currently im working on 2D game mobile game.and im using Stranded Asset(Mobile) Single Joystick prefab to move Player..Currently my player move on X and Y axis. can any ...
2
votes
1answer
398 views

Unity joystick input acting strange

After setting up my joystick axes in Unity and sweeping them around I find that the Y-axis jumps to the opposite direction in certain positions. So, when I press up on the joystick, the input will ...
-1
votes
1answer
152 views

Okami Drawing Mechanic in Monogame [closed]

I was wondering what would be the best way to go about using the drawing mechanic of Okami in my own game. Basically I want to be able to track joystick movement in a closed region, and have it appear ...
-1
votes
1answer
63 views

Moving multiple hingejoints based on joystick input

I'm controlling a 2D side-viewed (facing right) stickman with a joystick. The movements are fairly intuitive: Joystick down -> Stickman crouches down Joystick up -> Stickman stretches out ...
7
votes
1answer
702 views

Hotplugging Joysticks And Gamepads On OSX

I've tested the cross platform joystick support features on GLFW, SDL2 and SFML. SDL2 appears to be the most complete, but it can't detect when joysticks have been unplugged on OSX. To me, this is a ...
6
votes
2answers
333 views

Will lots of haptic feedback kill motors?

My game centers around joystick oddities, sort of, to make it more interesting. I've got a cheap $6 joystick that is like a usb PS3 controller. Surprisingly, I find it of great quality, with ...
2
votes
1answer
1k views

One to one aiming in 2D platformer

Hello all I have been having an issue with a 2D platformer I'm working on in Unity. It has an aiming style similar to Shadow Complex where the aiming will rotate around the character in direction to ...
4
votes
2answers
136 views

Asking the user to place the joystick in the center while calibrating

I would like to know why exactly calibration programs (usually?) ask the user to place the joystick in middle, that is: Why isn't moving the handle in a complete circle (usually?) enough to calibrate ...
3
votes
1answer
448 views

Knob in DigitalOnScreenControl not moving. Why?

I have set up a DigitalOnScreenControl in my game but the knob does not move. The base and the knob are drawn on the screen but the latter doesn't move as per the ...
1
vote
1answer
489 views

Joystick example problem for android 2D

I've searched all over the web for an answer to this, and there are simular topics but nothing works for me, and I have no Idea why. I just want to move my sprite using a joystick, since I'm useless ...
2
votes
2answers
927 views

Using two joysticks in Cocos2D

Here is what I am trying to do: With the left joystick the player can steer the figure and with the right joystick it can attack. Problem is that the left joystick seems to get all the input, the ...
0
votes
1answer
829 views

Cocos2D: Change animation based on joystick direction

I'm trying to get my figure to look in the right directions, based on the input of the joystick. So if I tilt left it looks left and the left animation is used, if I used right, it looks right and ...
7
votes
3answers
2k views

Detecting extremely fast joystick button presses?

Is it usually possible for the player to press and release a button within a single frame, so that the game engine doesn't have time to detect it? How do programmers usually handle this situation? ...
4
votes
2answers
1k views

How do I get consistent Xbox360 Controller input across Linux, Mac, and Windows?

I'm developing a browser plugin to provide joystick access to all browsers on all platforms. The issue that I'm running into is that OS X doesn't seem to provide Xbox 360 joystick input without ...
7
votes
3answers
1k views

How standardized are joystick / gamepad configurations?

Right now I'm working on input for my game. The only controller I own is an XBOX 360 one. From what I can see, if a controller's stick has a Z axis, these are actually triggers. Essentially I'm ...
0
votes
1answer
944 views

Help implementing virtual d-pad

Short Version: I am trying to move a player around on a tilemap, keeping it centered on its tile, while smoothly controlling it with SneakyInput virtual Joystick. My movement is jumpy and hard to ...
3
votes
1answer
1k views

Linux: find force feedback device for joystick device

Because SDL 1.3 is still a long way coming I implemented native force feedback (rumble) support for Aquaria: https://bitbucket.org/panzi/aquaria/ However, I could not find a way to find the according ...
8
votes
4answers
4k views

C++ Game Library for SVG Based Game [closed]

I'm looking into building a cross-platform opensource 2D RPG style game engine for ChaiScript. I want to be able to do all of the graphics with SVG and need joystick input. I also need the libraries ...
0
votes
1answer
1k views

rotate player based off of joystick

Hey everyone I have this game that i am making in android and I have a touch screen joystick that moves the player around based on the joysticks position. I cant figure out how to also get the player ...
1
vote
1answer
3k views

Restricting joystick within a radius of center

I'm using Unity3d iOs and am using the example joysticks that came with one of the packages. It works fine but the area the joystick moves in is a rectangle which is unintuitive for my type of game. I ...