Questions tagged [joystick]

For questions about joysticks.

496 questions
28
votes
5 answers

Taking input from a joystick with C# .NET

I searched around on Google for this, but the only things I came up with were outdated and did not work. Does anyone have any information on how to get joystick data using C# .NET?
chris12892
  • 1,634
  • 2
  • 18
  • 36
19
votes
1 answer

How to detect joy-con input/motion controls in HTML5 JavaScript

I am trying to create an HTML5 JavaScript game that uses Nintendo Switch Joy-Cons and motion controls. The problem is, I don't know how to detect motion controls from Joy-Cons when they are connected to my PC. I've managed to achieve button inputs…
user10976548
19
votes
1 answer

What is SDL_Joystick and what is SDL_GameController? What are the relationships between the two?

What is the relationship between SDL_Joystick and SDL_GameController? These are the only things I know of right now: SDL_GameController and related functions are all part of a new API introduced in SDL2. SDL_GameController and related functions…
tom_mai78101
  • 2,383
  • 2
  • 32
  • 59
18
votes
4 answers

Roll My Own Windows Joystick HID Driver?

I have a USB Joystick, and I want to write my own HID driver for it. Notably I want to inject delay between when the joystick input is received by Windows and when my application is notified of that input event. I would also like to change the…
vicatcu
  • 5,407
  • 7
  • 41
  • 65
16
votes
1 answer

Writing a game controller driver for some hardware connected via USB

I'm looking to create a driver for a game controller I have (a cobalt flux www.cobaltflux.com ). The physical controller itself has nine face buttons and two control-box buttons (start/select). The control box has a usb port, but as far as I can…
user2601064
  • 281
  • 3
  • 10
11
votes
3 answers

Android and Guitar Hero controller

I know that the latest versions of Android (Honeycomb and ICS) have support for joysticks and gamepads. Guitar Hero (and Garage Band) controllers are essentially USB HID devices, right? So my question: Is that possible to receive data (button…
Evgeny Vinnik
  • 1,235
  • 2
  • 16
  • 27
11
votes
1 answer

Joystick support in Java

Are there any libraries out there allowing access to joystick input in Java? The minimum requirements would be for it to work under Windows, to be able to detect all connected joysticks and to handle axes and buttons.
biziclop
  • 48,926
  • 12
  • 77
  • 104
8
votes
1 answer

Voice recognition through a USB port

My name is Ismail, and I'm a 29-year-old guy with a physical disability which severely limits my movements. I am able to access my computer by using a custom-made mini joystick which I move with my lips and a touch switch near each thumb for left…
Izzy Beastguy
8
votes
1 answer

Reading joystick capability

I'm trying to read my joystick capability by using the winmm.dll library. Here is how I'm doing it... from ctypes import windll, Structure, c_uint, c_ushort, c_char, c_ulong WORD = c_ushort UINT = c_uint TCHAR = c_char winmm =…
Dudi b
  • 240
  • 3
  • 12
8
votes
2 answers

Pygame headless setup

I am using pygame's joystick api to use a joystick with my project on a headless system, but pygame requires a "screen" so I have setup a dummy video system to over come this. It worked fine but now all of a sudden it gives me this error: Traceback…
DSchana
  • 968
  • 3
  • 13
  • 28
7
votes
2 answers

Using SDL_INIT_JOYSTICK without SDL_INIT_VIDEO

I've lost some time trying to get joystick support for my an application using SDL, mostly because the initialization steps where these: SDL_Init(SDL_INIT_JOYSTICK|SDL_INIT_VIDEO); SDL_JoystickEventState(SDL_ENABLE); It didn't work if I just…
lfzawacki
  • 1,422
  • 11
  • 10
7
votes
2 answers

Virtual Joystick in Java

Have you heard of a virtual joystick for Windows that has Java wrappings? I've trying PPJOY, and it works great, but then I'll need to use JNI to get it working from Java and that doesn't seem easy for the time being. Thanks!
Albus Dumbledore
  • 12,368
  • 23
  • 64
  • 105
7
votes
1 answer

How do I access the Joystick on windows in a non-deprecated way?

I want to write a Windows application which accesses the joystick. It is just a very simple application which reads the values and sends them to a server, so I am not using any game programming framework. However, I am confused about which API to…
Jonathan
  • 206
  • 1
  • 4
7
votes
1 answer

Gamepad and joystick support on Mac OS X in user space

I have been searching through how to do gamepad and joystick support on Mac for some days and all resources that I found seems to suggest a pre-installed driver along with using Apple's HID API, which works. The drawback about this approach is that…
vgrimmer
  • 165
  • 2
  • 12
6
votes
1 answer

Getting joystick input in Java

I am working on a project which requires me to take input from a joystick. I'll be using my Logitech Extreme 3D Pro, but I guess it will be the same for all joysticks. If it matters I am using windows 10. I have made several google searches but I…
sir_weasels
  • 61
  • 1
  • 2
1
2 3
33 34