For questions about joysticks.
Questions tagged [joystick]
496 questions
6
votes
3 answers
pygame: detect Joystick disconnect, and wait for it to be reconnected
I'm using a pygame.joystick.Joystick object and want to be able to print a message asking the user to reconnect a usb joystick once it's been unplugged.
right now I have (roughly):
js = pygame.joystick.Joystick(0)
#... some game code and…

Ryan Haining
- 35,360
- 15
- 114
- 174
5
votes
3 answers
How to know when a HID USB/Bluetooth device is connected in Cocoa?
How can I get a simple call back when a HID device, or at last, any USB/Bluetooth device gets connected/disconnected?
I made a simple app that shows the connected joysticks and the pressed buttons/axis for mac in a pretty way. Since I am not very…

Rodrigo
- 674
- 8
- 19
5
votes
2 answers
WPF: How to implement joystick as alternative input device (C#)
I'm working on a simple point-and-click game for young children. Because some children have a physical limitation I would like to give them the possibility to use a joystick as an alternative input device.
Can anyone give me some advice, tips or…

Jackerd
- 53
- 2
- 7
5
votes
1 answer
Virtual Joystick in Android SDK
I want to make a virtual joystick in my Android application for controlling an RC car. How can I accomplish this? Is there an API that I can use to do this? The code samples that I have checked out online do not seem to work.

Anish Muthali
- 782
- 2
- 7
- 20
5
votes
1 answer
Pygame Joystick.get_axis() always returns zero
I bought a Logitech Gamepad F310 to remotely control robotics. I am using Pygame (version 1.9.1, Python version 2.7.11+) on Linux Mint (release 18, Sarah).
As a simple test to check the joystick's functionality, I wrote this short script that…

SGolt
- 51
- 1
- 5
5
votes
0 answers
Modern (.NET 4.5.2) C# Joystick capture method? DirectInput or HID or something else?
I'm having a hard tiem finding modern relevant C# information on capturing joystick data in VS 2015. All the examples i see use outdated DirectInput or some third party app (SlimDX) that hasn't been updated from what I can tell since 2012. Whats…

Robbie P.
- 151
- 1
- 11
5
votes
1 answer
Which is Right Way to Add Joystick in Unity3d , Adding on Scene Directly or Iniatiating it From Player Scripts
I have to add Joystick control in my Game
I had done with Two Approaches both works well for me , but confused Which one to go with.
1) Initiating Joystick Control from Players Object/Script and getting inputs there.
2) Add Joystick Control…

deepakPatilCuelogic
- 53
- 3
5
votes
2 answers
Accepting input while out of focus
I've never actual asked a question on Stack Overflow, though just about every programming question I've ever had I found an answer here. Sadly today is not one of those days.
I've spent all day Googling, browsing the win32 api, and trying all sorts…

Destects
- 81
- 1
- 6
5
votes
1 answer
Algorithm of the joystick on the touchable screen
I would like to simulate an analog joystick on the touchable screen like this picture.
When the center of the stick area is set to (cx, cy), how should I calculate X-direction ratio and Y-direction ratio(-1.0~1.0) from the touched position(tx,…

Tank2005
- 899
- 1
- 14
- 32
4
votes
1 answer
Using CCTouchDispatcher Cocos2d 2.0 Beta-2 ARC
I am creating a game with cocos2d 2.0 BETA 2.0 [The newest one]. And i need to add a joystick in other class. so I call this "CCTouchDispatcher" in my second class. But I can't call like this:
[[CCTouchDispatcher sharedDispatcher]…

Eduardo Iglesias
- 1,056
- 18
- 42
4
votes
0 answers
Set Joystick position using psychtoolbox
I am running an experiment involving a joystick (cannot use a mouse for technical reasons), using psychtoolbox version 3, on a linux computer. At discrete time-points in the experiment, I need to place the joystick cursor at pre-determined points on…

Bharath
- 41
- 1
4
votes
0 answers
Problem getting values from joystick axis
I am using the standard Unity Input Manager, not the new input system.
I am connecting a joystick controller to my app, but it is not a standard Xbox/PSx type controller - it is a (Taranis) radio control transmitter of the type used on model…

nmw01223
- 1,611
- 3
- 23
- 40
4
votes
1 answer
how to make sprite move upwards and downwards with joystick in pygame
I am trying to create a project that I have made before but apart from this time I am going to be using a play-station one remote I was given for free from my school. The problem that when I move the joystick upwards and downwards it shows the same…
user10842950
4
votes
1 answer
How to translate joystick angle & power to the view x,y i want to move?
I'm using this joystick to move a view on my screen, because i want to do a game.
https://github.com/zerokol/JoystickView
i can get the angle and the power of the movement of the joystick with this:
joystick.setOnJoystickMoveListener(new…

NullPointerException
- 36,107
- 79
- 222
- 382
4
votes
1 answer
Joystick event handling in Haskell's SDL library
I am trying to write a small program that detects button inputs on a video game controller, using the Haskell SDL bindings. My program is rather simple:
import Control.Monad (forever, when)
import System.Exit (exitSuccess)
import…

gnuvince
- 2,357
- 20
- 27