Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

How does Windows' Game controller properties connect to a joystick?

The situation: We need to use a new game controller (with a joystick only) hardware on Windows IoT. In the properties of "Game Controllers", moving the joystick is visible in the displayed ...
Justin Forgplay's user avatar
0 votes
1 answer
772 views

Force Feedback on joystick device using SharpDX DirectInput API

The Goal (for context) Get input from a USB joystick device in the Unity Game Engine and activate Force Feedback functionality on the joystick from Unity. The Method I am using the SharpDX.DirectInput ...
Ben's user avatar
  • 111
0 votes
0 answers
45 views

How do i get this web app to use the up joystick button as an input

There is this reaction time test app that calculates the reaction time from the time you press a button, it works with the joystick buttons except for the directional buttons, this is the app: https://...
Amine Messai's user avatar
1 vote
1 answer
68 views

Visual Joystick moving faster than my finger. why?

First of all, here's the video of what my problem really is. (Sorry for bad quality) As you can see, the red circle is the center of the visual joystick. The green one indicates my finger and the ...
Arian_ki's user avatar
  • 691
0 votes
1 answer
1k views

Unity mobile joystick input doesn't react to touch

I created a 3D mobile project, so I used my own joystick script, I also tried joystick from asset store. The problem is that the stick image of joystick doesn't move at all, in this case it's ...
Silz's user avatar
  • 37
0 votes
1 answer
102 views

Is there an algorithm for a Joystick class that happens to be engine/framework independent?

I need to be able to get the given input's distance inside the joystick, bounded within -100% and 100% and an unbounded version of it, get the position of where the mouse's position projects to the ...
random person's user avatar
0 votes
0 answers
412 views

How can I make the character rotate slowly with the joystick?

I am using two Joysticks. One for the character's movement and rotation and the other for the character's rotation and shooting. On the joystick I use for movement and rotation, the character turns ...
gunza's user avatar
  • 13
1 vote
1 answer
64 views

Snap joystick value to minimum magnitude when it falls below

I got a joystick displayed in the image below with range -1 to 1. Green area is 80% of the total circle and yellow area is 20%. I want to get corrected values for both areas. For example: If given ...
VK321's user avatar
  • 113
0 votes
1 answer
206 views

Get Angle offset [duplicate]

I'm working on a game where the input is done via a joystick. Normally, one would snap the players rotation to the angle that the joystick is pointing, but for my game's purpose, I have to lerp to the ...
thatGuy's user avatar
  • 25
3 votes
2 answers
326 views

Steam Controller thinks it has 2 hats?

Is there any reason why a Steam Controller would think it has two hats? The pad on the left is HAT 0, as expected. Note that the pad on the right is not a HAT/DPAD, it is two axes (Axis2 and Axis3) ...
Bram's user avatar
  • 3,729
0 votes
1 answer
336 views

check if joystick magnitude is increasing

I use joystick mechanic. What I want to do is: Translating my object forward when my joystickInput.magnitude is increasing. Translating backward when my ...
anónimo's user avatar
0 votes
1 answer
162 views

Trigger Button with specific key only

I am having trouble understanding how to trigger a UI button with a specific joystick key only. Currently i have a pause menu in which i have several buttons. By pressing start i set the game time ...
FSic's user avatar
  • 176
0 votes
0 answers
98 views

How to detect taps vs tilts in analog stick input

I'm trying to detect when a player taps vs tilts the analog stick. Ultimately, I'm trying to implement controls like Super Smash Bros. Melee. On top of this, I also want to incorporate an input buffer ...
Kory's user avatar
  • 1
0 votes
1 answer
98 views

JoyStick::GetInfo(JoyStick::id1).dwButtonNumber always returns 0x1

I am using an XBox 360 gamepad for Windows. I am having an issue with the following legacy code base, which relies on JOYINFOEX, ...
DHarding's user avatar
0 votes
0 answers
102 views

Unity virtual joystick - jarring movement

I'm creating an infinite flyer game in which you control the plane using a mobile joystick. There are two controls one to rotate the plane and the other to move the plane. While rotating the plane ...
single arrow games's user avatar
0 votes
0 answers
231 views

Is there a way to get the actual joystick.Vertical and joystick.Horizontal Value?

What I want to do is Pass a parameter called joystick_tag. (like this: Get3DJoystickPosition(joystick_tag)) Get the current ...
Jiwu Jang's user avatar
1 vote
0 answers
1k views

Disable free look camera movement when touch detected on mobile joystick

I'm using free joystick pack form asset store and in scene have two cameras (first person and third person). Switching cameras with toggle. Game starts with first person camera. Moving with fixed ...
Nurlan Shukurov's user avatar
0 votes
1 answer
829 views

Clamp joystick rotation in Unity

I'm trying to create a mobile joystick using this free package from Unity. Here is the code for rotation which seems to be working fine. I just want to clamp the rotation to +90 or -90 degress. I have ...
single arrow games's user avatar
0 votes
1 answer
1k views

How much does joystick axis resolution matter?

While developing, I started integrating joysticks into my framework, and had some questions since different OSs handle joysticks differently. My framework may potentially be opened to the public at a ...
Blerg's user avatar
  • 101
1 vote
2 answers
81 views

How to move my character by itself but I can still move its direction or where it is going, using Mobile Joystick?

So, I am making a 2D airplane game right now and I wanted to know how to move my player automatically but I can still control where it should go or the direction. How do I code this using Mobile ...
Saidus's user avatar
  • 91
2 votes
1 answer
286 views

Reducing noise from joystick at small deflections

I have placed in my level a cube, which is my player, and a camera, which will follow the player. I'm defining a direction A from camera to player and another B perpendicular to this one. So I get ...
Stan Keyal's user avatar
0 votes
1 answer
324 views

Transform.RotateAround with Joystick Rotation

I want to rotate one object around another, so that it matches my current joystick rotation. I know Transform.RotateAround does this but I can't seem to find a way ...
Adrian Moreno's user avatar
4 votes
2 answers
114 views

Exchanging data between custom-built hardware and games

I have a built my own steering wheel and motion platform that I would like to connect to popular car racing games (e.g. iRacing, Dirt Rally). I need to read data such as the car's acceleration (to ...
user129365's user avatar
0 votes
1 answer
136 views

How can I get sensor data on iPhone onto a Windows PC? For use as a steering wheel

I am making a Unity game. I want to be able to allow the phone to be used as a steering wheel, as input into the PC game. Technically, How can I achieve this? Can this be done through bluetooth? ...
Philip Nguyen's user avatar
0 votes
1 answer
500 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 ...
Tadas's user avatar
  • 13
3 votes
2 answers
378 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 ...
Ethan Fischer's user avatar
0 votes
0 answers
430 views

Inverted left & right stick axes in SDL2

I've faced a weird problem with SDL2. ...
Beyondo's user avatar
  • 111
0 votes
1 answer
2k 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 ...
Uri Popov's user avatar
  • 3,027
1 vote
2 answers
440 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 ...
ymfoi's user avatar
  • 123
0 votes
1 answer
483 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 ...
DRiFTy's user avatar
  • 586
0 votes
2 answers
16k 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 ...
Black's user avatar
  • 621
0 votes
1 answer
286 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-...
DRiFTy's user avatar
  • 586
0 votes
1 answer
2k 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 ...
coder_86's user avatar
  • 175
3 votes
1 answer
4k 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 ...
MjercerGameDev's user avatar
1 vote
1 answer
223 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: ...
Nikolas Adair's user avatar
-1 votes
2 answers
2k 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 ...
hardwiredstudios's user avatar
-1 votes
1 answer
90 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 ...
Sie's user avatar
  • 319
0 votes
1 answer
87 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 ...
Epsiloncool's user avatar
0 votes
1 answer
607 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 ...
Henjin's user avatar
  • 415
0 votes
2 answers
372 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 ...
9031313's user avatar
0 votes
2 answers
183 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
user1509674's user avatar
-1 votes
2 answers
2k 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 ...
The MattBat999's user avatar
0 votes
1 answer
2k 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 ...
The MattBat999's user avatar
0 votes
3 answers
14k 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.
The MattBat999's user avatar
2 votes
3 answers
684 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% (...
madneon's user avatar
  • 295
0 votes
1 answer
363 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?
John Smith's user avatar
  • 1,255
2 votes
1 answer
4k views

how to Move Player on "Z" Axis 2D Movement

I'm working on 2D mobile game, and I'm using the Standard Asset(Mobile) Single Joystick prefab to move the Player. Currently my player moves on the X and Y axis. How can I move my player on the z ...
hash's user avatar
  • 127
2 votes
1 answer
500 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 ...
jzx's user avatar
  • 3,815
-1 votes
1 answer
189 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 ...
taytay's user avatar
  • 55
-1 votes
1 answer
69 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 ...
Jarmund's user avatar
  • 177