For questions about joysticks.
Questions tagged [joystick]
496 questions
1
vote
1 answer
Unity3D: Left Joystick Translation Depending on Facing Direction
I'm hitting a wall on this really simple problem... I know there has to be a simple solution, but I'm not exactly sure what it is. I'm prototyping for a game jam -- my game is a top down, 3D twin sticks style game. The right stick rotates the player…

brandoncluff
- 303
- 1
- 5
- 19
1
vote
2 answers
Smooth rotation using joystick in Unity3D
I am trying to rotate a 2d player car using Joystick but its not rotating smoothly. How can i do this. Any help?
What I want is: Click Here
This is happening Click Here
public class RightJoystickPlayerController : MonoBehaviour
{
public…

Jamshaid Alam
- 515
- 1
- 9
- 24
1
vote
0 answers
DroneKit Joystick Override
I'm trying to figure out if it's possible to use DroneKit to override joystick control when it's enabled in Mission Planner. In my scenario if I enable joystick in Mission Planner and forcibly close Mission Planner, the joystick still maintains…

Josh
- 11
- 2
1
vote
0 answers
How to rotate in modern games?
My idea was to play fortnite through my oldschool sixaxis controller, after that I planned to make specified Arduino controller (with sensors) to control the game.
I used pygame.joystick to get data from controller, pynput to control mouse/keyboard.…

Levente Simofi
- 307
- 3
- 11
1
vote
1 answer
One joystick works with pygame and another won't?
I am currently building a robot that I would like to control with a pair of nice joysticks I bought. Up until now I've been using pygame.joystick with no problems at all with my PS4 controller. However the new joysticks have a problem. They output…

Tirth Desai
- 19
- 2
1
vote
1 answer
How to use the right analog stick of a xbox one controller
How would I get the right joystick on an Xbox one controller? I currently have my InputManager set up like this:
But this doesn't work for some odd reason. For those of you wondering I have confirmed that the issue isn't in the code.

Daan Koning
- 155
- 2
- 15
1
vote
1 answer
how to rotate GameObject towards joystick
So I'm creating a top-down shooter and trying to make the player face the direction of the joystick. this is my current code:
using System.Collections;
using System.Collections.Generic;
using…

Daan Koning
- 155
- 2
- 15
1
vote
0 answers
Unity - Joystick to movement and rotate camera same time
I have a problem.
I want to use joystick to movement player.
I want to rotate camera if player click ANYWHERE ELSE on screen.
Here is picture
My problem:
If the player use joystick then camera rotate too!
I tried IsPointerOverGameObject not good,…

Adrián Varga
- 91
- 1
- 12
1
vote
1 answer
Converting joystick axis values to hex triplet codes
Using a PS4 controller in pygame, I already figured out how to capture axis rotation which can vary to a -1 or 1, but I don't know how to convert those numbers to a color ring like scale in order to turn it into a hex triplet number.
The values…

ark.pytm
- 55
- 1
- 6
1
vote
3 answers
Arduino Joystick works in serial monitor, not game controller dialog
I'm trying to create a simple 2-Axis, 2-Button joystick using an off-brand ATmega32U4 board, which registers as an Arduino Leonardo.
I've got it working just fine on the serial monitor in Arduino IDE, and it shows up as a game controller with the…

Patrick
- 430
- 6
- 21
1
vote
0 answers
Simulate a Joystick or Trigger
I'm in the middle of building a custom gamepad with an Arduino and I've hit a stand still.
I've successfully simulated buttons by simply simulating a keystroke, but now I want to add joystick and trigger support, which requires more then just an on…

LittleRain
- 47
- 1
- 8
1
vote
1 answer
Joystick+Firebutton dont work together
I'm making an app where you controll the ship's movement with a joystick, and fires a bullet with a shoot button. These two functions works great separately but if i tap the shooting button while i move the ship with the joystick, the joystick…

B.Ticca
- 23
- 5
1
vote
2 answers
Code for joystick on sense hat
I just got a sense hat for Christmas, and I am working through the following website: https://projects.raspberrypi.org/en/projects/getting-started-with-the-sense-hat. When doing the joystick part of the website, i typed in this code:
from sense_hat…

Andrew Bell
- 23
- 2
- 7
1
vote
1 answer
Joystick programming via hardware port 201h in 8086 assembly
I just bought an old 2-axis 6-button gamepad on eBay which I plan to add support for in a game i'm writing for MS-DOS in 8086 assembly.
While I wait for it to be delivered i've been looking into low level programming of joysticks and game port based…

bad
- 939
- 6
- 18
1
vote
1 answer
Python gamepad input?
Is there any good alternative to pygame for gamepad input?
Crossplatform would be nice too.

grizwako
- 1,563
- 4
- 19
- 23