For questions about joysticks.
Questions tagged [joystick]
496 questions
3
votes
0 answers
How can I communicate with a Logitech Driving Force Shifter?
I am trying to connect a joystick to my pc. The device has a serial cable which is supposed to be inserted into another device (a steering wheel), but instead I want to use it directly. Eventually I plan to connect it to a program that am currently…

user1529413
- 458
- 8
- 19
3
votes
1 answer
How to add a Touchpad in LibGDX
I made my own simple framework to use with LibGDX but I can't figure out how to make a TouchPad appear on the screen. I need two separate joysticks (LibGDX TouchPads) to be on the screen at once and both handle touch events.
How do I do this? I am…

Vincent Williams
- 2,836
- 3
- 17
- 22
3
votes
1 answer
Send feedback/effect to joystick from .net
Thanks to this answer https://stackoverflow.com/a/13734766/637142 I am able to know when a button is pressed or when the steering wheel is rotated. Now my question is how do I send an effect to the device? For example when I am playing a game if I…

Tono Nam
- 34,064
- 78
- 298
- 470
3
votes
1 answer
Why does SDL_NumJoysticks() never update?
I was writing a small program in C that utilizes SDL 2.0, and ran into a problem when I couldn't get SDL_NumJoysticks() to report the number of joysticks plugged in at the time of the function call. I believe that it is reporting the number of…

fouric
- 1,598
- 1
- 19
- 37
3
votes
2 answers
Linux: Attempting to get joystick vendor and product IDs via ioctl, get EINVAL instead
I'm attempting to read the name, vendor ID and product ID for a USB joystick on Ubuntu (specifically I'm working with a wired Xbox 360 pad on Ubuntu 13.10 x64). I can read the name but when attempting to read the vendor and product IDs I get an…

NoobsArePeople2
- 1,986
- 14
- 21
3
votes
2 answers
Catching joystick events with PySDL2
I'm playing with the new(ish) SDL2 wrapper for python, PySDL2, and I can't seem to see any joystick events popping up on the event queue. Keydown events are fine, and when I explicitly poll the joystick, I can get the axis state fine (and observe…

Mike Lawrence
- 1,641
- 5
- 20
- 40
3
votes
1 answer
Interpret USB joystick axis
There are a fair few questions about this already, but none answered my question.
I have a Saitek P990 Dual Analog Gamepad, and want to read the joystick movements as intelligible data that I can use to control motors etc.
How would I go about…

theo-brown
- 653
- 10
- 27
3
votes
1 answer
Android How to use multiple pointers for dual joysticks
The app contains 2 virtual joysticks and I'm having trouble figuring out how to move them independently at the same time without the pointers getting mixed up.
Would someone be kind enough to give me some general advice?
I'd post what I have except…

user2899217
- 51
- 2
3
votes
1 answer
Joystick + c# : Analog button
I am using Microsoft DirectX to get access to my gamepad. This is an usb gamepad like this one:
I could get access to know when buttons are pressed and also the analog values of the axis...
The thing is if there is a way to know when the analog…

the_moon
- 553
- 1
- 7
- 21
2
votes
3 answers
USB Joystick with C++ and DirectInput
I've been trying to read data (x/y axis, pressed buttons, etc) from a usb joystick, and I've heard of DirectInput. Been searching for some long hours to find a decent example or walkthrough with little success. If anyone can share a simple tutorial,…

tdgtyugdyugdrugdr
- 786
- 4
- 13
- 31
2
votes
5 answers
Capturing Joystick Input in C or Java
I need to capture joystick input using C or Java (whichever is easier).
There are answers to similar questions but they all use C++ or C#.
The program only needs to get the direction and amount by which the joystick is tilted.
I'm using Windows7, so…

Richard
- 162
- 1
- 4
- 11
2
votes
1 answer
How do I emulate Xbox 360 joysticks using Vgamepad with joycons?
I've managed to map all buttons and triggers from joycons using joycon-python to an emulated Xbox 360 controller using vgamepad. However, I cannot figure out how to map the joysticks. I've tried tons of different ways. In the worst cases I get no…

Standie
- 23
- 4
2
votes
1 answer
Is there to view simulink XY graph during the simulation?
I am trying to visualize the input I am getting from a joystick on a simple XY Graph in Simulink. I can display the values of the various axes easily using the Scope. However I want to display the X and Y values from the joystick as a dot moving…

simIsPain
- 21
- 1
2
votes
0 answers
Have pygame grab only the joystick?
I have a simulation written using pygame that makes use of a joystick. I have a two monitor setup, and I would like to be able to use the system on the non-game monitor while a second person is using the joystick to interact with the simulator. As…

jdbrody
- 533
- 7
- 16
2
votes
1 answer
Using joyGetPosEx fails when switching joystick USB port
I am using the "joyGetPosEx" function to detect the joystick inputs:
JOYINFOEX joyInfoEx;
ZeroMemory(&joyInfoEx, sizeof(joyInfoEx));
joyInfoEx.dwSize = sizeof(joyInfoEx);
// poll for values
joyGetPosEx(JOYSTICKID1, &joyInfoEx);
When the joystick is…

Costya
- 21
- 2