For questions about joysticks.
Questions tagged [joystick]
496 questions
2
votes
0 answers
Is there a way to send outputs to an Xbox like a controller?
I have a really old joystick designed for Windows 95/98. Obviously, it is not supported on xbox one however I have seen that you can make them work on Windows 10. Is there any way to connect my laptop to my Xbox and simulate one of the sticks? I am…

jlbturbo2005
- 21
- 1
2
votes
3 answers
Pygame not returning joystick axis movement without display
I've seen other solutions to this problem say that you either need to call the pygame.event.pump() or initialize the joystick outside of the while loop. However, even with these solutions, I'm getting 0's for the joystick axes values.
If I uncomment…

Matthew P
- 113
- 1
- 8
2
votes
2 answers
C# .NET Trackball Support - But Not As a Mouse!
I want to use a trackball in my C# .NET application. But I do not want the trackball to be used by Windows as a mouse. When I connect both a trackball and a mouse the are both given control of the cursor.
So there are essentially two questions:
How…

Ashley Norris
- 21
- 1
2
votes
1 answer
How can I create a fake Gamepad object?
I need to create an object that behaves in every way like the Gamepad objects found in navigator.getGamepads(), but presents specific static data rather than data about a real gamepad. How can I create such an object?
>…

Sparr
- 7,489
- 31
- 48
2
votes
1 answer
Unity Joystick Bug, it goes to the same place on the firt touch
I'm trying to make a simple game where a ball moves, but there's a problem. When I press the joystick the player moves correctly,but at every time I touch the joystick it first go in the bottom-left position and not where I just clicked. The…

Marco Sajeva
- 92
- 7
2
votes
1 answer
why can't my code detect button down on a joystick
I am using the pygame.joystick method to use joysticks in my game, however, my code can only detect the model of the joystick, and cannot detect what buttons are down.
import pygame
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = (…

Douglas
- 111
- 8
2
votes
2 answers
SFML detecting fake joysticks
I haven't connected any joysticks to my laptop but SFML detecting as I've.
my main loop :
render_window.clear(sf::Color::White);
for (int i=0; i<8; i++)
std::cout << std::boolalpha << i << " : "
<<…
user11779274
2
votes
2 answers
ImportError: cannot import name 'InputDevice' - Evdev
I installed evdev on my Raspberry Pi 3 B+ with sudo -H pip install evdev.
The installation went normally and I ran python /usr/local/lib/python2.7/dist-packages/evdev/evtest.py to see if it was working. Everything was fine.
The issue is that when…

dfarhi
- 21
- 6
2
votes
1 answer
capture joystick extra buttons
Could someone please tell me if there is a way to capture extra joystick buttons? I mean buttons number 5,6,7,8 and so on.
I use this code to capture button down event :
procedure MMJOY1BUTTONDOWN (var LocMessage: TMMJoyStick); message…

DrSobhani
- 129
- 7
2
votes
1 answer
Sending Joystick input to program using python
I'm working with Ubuntu in vm and I want to send joystick inputs with Python script to other program.
Basically the same thing as https://pythonprogramming.net/direct-input-game-python-plays-gta-v/?completed=/open-cv-basics-python-plays-gta-v/ but…

Shaked Sibony
- 61
- 1
- 4
2
votes
0 answers
Emulate Joystick in Java
I want to be able to emulate joystick movements using Java as if an Xbox controller was connected to my computer. I know that you can emulate key presses and mouse button presses using the Robot class, but I can't find any way to emulate any buttons…

TechnoRazor
- 128
- 1
- 8
2
votes
0 answers
Moving SKSpriteNode in a semi circle with a virtual joystick
I am making a game that contains a virtual joystick. My joystick is composed by two SKSpriteNode, one for the stick the other for the base panel. ( see the picture below )
Obviously my joystick can only be moved following the green semi-circle on…

Jeromiin
- 71
- 7
2
votes
2 answers
Joystick Key Capture
I want to capture input from joystick using winmm dll .. I don't have much knowledge of importing and working with DLLs.
I tried to do it but i have no idea how to do it ..
[DllImport("winmm.dll")]
public static extern string joyGetPosEx(uint dev,…

Inv Xaasha
- 83
- 1
- 2
- 9
2
votes
1 answer
Pygame.joystick returning 0s
I am attempting to build my own mini-library to simplify joystick use in pygame. However, when I attempt to read the buttons and axes, they all return 0, but only in the assign function (I am using a Logitech attack 3)
import sys
import…

Aree Vanier
- 195
- 1
- 14
2
votes
1 answer
C# WPF - Virtual joystick using polar coordinates
I am trying to make a virtual joystick that a user can move around with the mouse in WPF in C#. I am trying to use the polar coordinate system because I want the knob of the joystick to remain in the circle.
I am getting some really weird behavior -…

Fivestar
- 323
- 1
- 5
- 18