For questions about joysticks.
Questions tagged [joystick]
496 questions
4
votes
0 answers
DirectInput C++, Steering Wheel and DIVIRTUAL_DRIVING_RACE Access
I'm new to direct input. I managed to initialize my Steering Wheel as a DI8DEVCLASS_GAMECTRL device and get all data. Now pedals are a bit of a pain, since they share one axis (accelerate is doing the Y-Axis positive and brake is doing negative…

partycle
- 41
- 2
4
votes
1 answer
Simple joystick hid report descriptor doesn't work
Using atmega8 chip and V-USB library I made a little bridge to connect my NES gamepad to USB. At first I used one of examples as my hid descriptor and so...
I had my device correctly recognized in Windows when I set it to handshake with this
HID…

Tomas Gach
- 43
- 1
- 5
4
votes
0 answers
Joystick API Android
The Android 3.1+ supports joystick and gamepad, but there are not any examples. I tried to use onTrackballEvent and it didn't work. How can I use joystick in my Android App?

user1974194
- 41
- 1
- 1
- 2
4
votes
3 answers
Java usb input platform independent
I'm struggling to find a Java API that enables to grab the input of any device connected through USB.
I've found jUsb but it seems deprecated and old.
What I would like is:
a platform independent API (working on Unix, Windows, Mac)
an API that can…

toni07
- 356
- 7
- 20
4
votes
0 answers
Simulate A Gamepad Input With C#
I'll simplify the situation to get rid of confusion.
I want to make a program that only has 1 button in the program. Upon clicking the button, the program will simulate a generic gamepad button. I'm sure when the program starts, it will have to…

crait
- 156
- 1
- 4
- 15
4
votes
2 answers
Android onscreen joystick issues
So I'm trying to build a game with an on-screen joystick that moves a bitmap around the screen. But when I hold the joystick down in any direction and keep it there, the bitmap will stop moving as well. Its only when I am moving the joystick does…

zkello
- 239
- 2
- 15
4
votes
1 answer
Correct Windows API to find CurrentControlSet\Control\MediaProperties?
I'm looking to support a custom joystick device, and due to project requirements I can no longer use the DirectInput API. I've switched to using the "classic" Windows multimedia API (e.g. joyGetDevCaps and family), and it all works with one…

holtavolt
- 4,378
- 1
- 26
- 40
3
votes
1 answer
How to catch input events from USB joysticks in AS3 (Adobe AIR)?
AS3 can catch keyboard events, but how catch usb joystick's input event ?

2smacks
- 168
- 2
- 9
3
votes
1 answer
HUD layer for Sneaky Input Joystick (cocos2d iPhone)
I'm using the SneakyInput Joystick to move my sprite, and TMX maps for my game. I added auto-camera-movement to my app, so the hero sprite is always visible. When I go through my map, the joystick goes off the screen (it stays where it's original…

Joethemonkey101
- 149
- 2
- 18
3
votes
1 answer
is it possible to use a joystick/game controller input in cmd?
As the title says, I would like to use Joystick buttons for input in this simple batch I am writing. Is it even possible?
I know I can use a Joy to Keyboard mapper program to emulate keystrokes, but I would like to avoid this extra layer if…
3
votes
1 answer
How can I implement a virtual joystick for a cocos2d game outside the cocos2d environment?
I am developing an iPad game that uses cocos2d and requires a virtual joystick. I have a prototype up and running using SneakyJoystick.
However, I realized that my game design requires me to use CCTransitions to move the user between different…

todd412
- 1,308
- 2
- 17
- 24
3
votes
1 answer
Using joystick module from PyGame
Exact code with commenting can be found here, or here.
while done==False:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done=True
if event.type == pygame.JOYBUTTONDOWN:
print("Joystick button pressed.")
…
user10332166
3
votes
2 answers
Emulate joystick with Python
I'm trying to use my Arduino as a joystick, but I don't know how to set it as a joystick. I have an idea which is reading data from Arduino with Python and simulating the joystick. How can I implement a virtual joystick using Python? Is there…

fran
- 515
- 2
- 11
- 22
3
votes
1 answer
How to implement Joystick code using in C++ using Microsoft's IDirectInputDevice8?
I need to do blocking and non blocking calls to poll on an Direct Input device using IDirectInputDevice8 interface.
In linux to do blocking, we use select ex:
while( ::select(_jdev+1, &set, NULL, NULL, &tv) > 0)
{
if( ::read( _jdev, &js,…

luke signh
- 139
- 2
- 13
3
votes
1 answer
force feedback in logitech G29 joystick
I am using mmsystem.h to read joystick data in windows. Following strucure is used for reading
typedef struct joyinfoex_tag {
DWORD dwSize;
DWORD dwFlags;
DWORD dwXpos;
DWORD dwYpos;
DWORD dwZpos;
DWORD dwRpos;
DWORD dwUpos;
DWORD…

SP_
- 241
- 1
- 5
- 16