For questions about joysticks.
Questions tagged [joystick]
496 questions
1
vote
1 answer
SpriteKit: calculate angle of joystick and change sprite based on that
I am making a RPG Birds-eye style game with SpriteKit. I made a joystick because a D-Pad does not give the player enough control over his character.
I cannot wrap my brain around how I would calculate the neccessary data needed to change the Sprite…

E. Huckabee
- 1,788
- 1
- 13
- 29
1
vote
1 answer
Reading Joystick in Windows without Pygame using Python
After searching for hours, I cannot seem to find a way to read a joystick's axis and buttons in Windows using Python. I don't want to use Pygame due to the fact it has a massive overhead and size. Also, the only code I could find can only read XBox…

Robert Pafford
- 86
- 6
1
vote
1 answer
Moving a Tkinter canvas object multiple steps using Pygame's joystick class
This is a project that I have been working on for a while.
Here's the situation:
The code completes the end goal. It's meant to simulate the location of a ball suspended in air by four cables, and should be controlled by a simple gamepad. The code…

Garrett Crayton
- 31
- 1
- 4
1
vote
2 answers
Unity 2d - allow both keyboard and joystick
How to allow both keyboard and joystick controller as input in a same scene.
and yes, based on priority the other input should get locked.

Yogesh
- 1,206
- 4
- 22
- 50
1
vote
2 answers
Swift 3: Consistent player movement along Joystick || Spritekit
My question is how can i incorporate my sprite to have a continuous movement along with the joystick? I want the player to be moving at a certain speed the whole time, and then whenever the user moves the joystick a certain angle then the player…

BennettDesign
- 11
- 2
1
vote
1 answer
Pygame Joystick Control - Screen not updating?
I am trying to just move a given ball around the screen with a PS4 controller connected. I am able to connect the controller and have it return different values when moving the left analog stick. I feel as if the screen just needs to be updated? I'm…

Caleb Weaver
- 13
- 4
1
vote
2 answers
C# - Joystick sensitivity formula
How to calculate joystick sensitivity, taking into account deadzone and the circular nature of the stick?
I'm working on a class that represents a stick of a gamepad. I'm having trouble with the mathematics of it, specifically with the sensitivity…

Unknown Coder
- 330
- 2
- 16
1
vote
1 answer
How to detect a circle using SteamVR SDK?
I am involved in a virtual-reality project using the HTC Vive device, Unity and the SteamVR SDK used to communicate with the Vive.
Thanks to the joysticks, the final user must draw some shapes (for example a circle) and the movements begin when he…

JarsOfJam-Scheduler
- 2,809
- 3
- 31
- 70
1
vote
0 answers
how to save position of x and y coordinate
I have a joystick that have an x and y coordinates and I want to move the Imageview to the position of the x and y coordinates but retaining its position and not going back to 0,0 again.I have already tried setting the x and y coordinates of the…

0xDEADBEEF
- 590
- 1
- 5
- 16
1
vote
1 answer
360 virtual joystick rotation
I'm using this simple virtual joystick module, I'm trying to get my player to rotate in 360-degrees direction according to the joystick's angle, but it's not working right.
Here is the most relevant code from the module:
local radToDeg =…

Abdou023
- 1,654
- 2
- 24
- 45
1
vote
1 answer
How to help Windows or Windows Applications handle Composite Joysticks correctly?
The context for this question is primarily Windows 7, though I've tried it on 10 as well.
I've built a 4-player composite joystick using the Arduino Mega 2560. It is a USB device composed of 4 HID Joystick interface, each with its own endpoint. Each…

LancerDL
- 21
- 3
1
vote
0 answers
Unity C# joystick rotation rest
I am making a game in C# in unity where the player uses an Xbox 360 controller to control a character, I can rotate the player easily like this using the right joystick:
if(Input.GetAxis("RightJoystickX")!=0 && Input.GetAxis("RightJoystickY")!=0)
…

James Clarke
- 45
- 5
1
vote
0 answers
Joystick Constant Disconnecting Problems Linux
I'm trying to get a joystick to work but my device is having problems seeing it. I will plug in the joystick, it will show up under /dev/input/ but it will disappear after a few seconds, then reappear, and repeat. Also, I installed the joystick…

awpitt13
- 155
- 9
1
vote
1 answer
How to move sprite with joystick?
I want to know how can I move the player with a joystick to all directos depending the movement of the joystick. I already made the joystick, and is already setup with degrees. But how I move the player to all direction? Thanks.
class GameScene:…

Diego Benítez
- 175
- 9
1
vote
1 answer
How to get JoyStick Z rotation messages in C++
I'm having C++ code that properly intercepts a joysticks x and y positions for my Saitek Cyborg joystick.
This joystick also have the ability to twist around the handle axis, and I'm trying to get the messages for this motion.
For the x and y, the…

Totte Karlsson
- 1,261
- 1
- 20
- 55