Questions tagged [joystick]

For questions about joysticks.

496 questions
2
votes
0 answers

C# Windows 10 IoT get xbox 360 controller input

I have a Raspberry pi 3 with Windows 10 IoT installed, and I'm trying to make a background app that read input from a usb xbox 360 controller to later control servo motors. However I'm not really sure how to get the input. I that in windows you can…
Mauro F.
  • 287
  • 2
  • 11
2
votes
2 answers

Joystick, gamepad or 3D mouse support in Three.js

An open question to the three.js community. As far as I know, the Three.js framework has different "enhancements" like OrbitControls.js that allow us to use the mouse or a touchscreen to explore a 3D scene. Now my question: Is out there another…
juagicre
  • 1,065
  • 30
  • 42
2
votes
1 answer

Controlling joystick axes using AutoHotkey

I will be getting a flight stick for Kerbal Space Program soon and was hoping to AHK-ify it, like every other peripheral I use on my computer. I know how to remap the joystick buttons, and how to get readings for the axes of the flight stick and…
Hactar
  • 153
  • 1
  • 10
2
votes
1 answer

C++ sending Joystick directional input to program

I'm trying to spoof a PS3 controller and send analog stick directional input to a specific program, but i can't figure out how the INPUT.hi struct works. I can send keypresses over with INPUT keys; keys.type = INPUT_KEYBOARD; keys.ki.dwFlags =…
frankcrisanti
  • 41
  • 1
  • 6
2
votes
2 answers

How to use a joystick from SDL on a Mac?

The source is very basic: #include int main(int argc, char *argv[]) { if (SDL_Init(SDL_INIT_JOYSTICK)) { return 1; } int num_joy, i; num_joy=SDL_NumJoysticks(); printf("%d joysticks found\n", num_joy); …
mikepurvis
  • 1,568
  • 2
  • 19
  • 28
2
votes
1 answer

How to disable a button/axis on a gamepad/joystick in Windows?

In Windows 98/XP/Vista/7, how do I disable a joystick button/axis? I am using a PlayStation 1 gamepad connected to my PC using a USB adapter. The problem is that the gamepad is missing the dual analog sticks, and when I press the other buttons, the…
posfan12
  • 2,541
  • 8
  • 35
  • 57
2
votes
1 answer

Can't open /dev/input/js file descriptor after inotify event

I'm creating a Linux module for a game library that let's you hotplug multiple joysticks, it uses inotify to watch /dev/input. I am testing it with 3 joysticks: First I connect 2 joysticks. Then I start the application, the joysticks work and I…
tversteeg
  • 4,717
  • 10
  • 42
  • 77
2
votes
1 answer

How is joystick axis information formatted from a USB Joystick?

I actually just have a rather small question, but I have had the HARDEST time finding information about it. For the application I am programming for, there will be a 3-axis joystick being connected via USB to a Windows XP computer, and it is being…
aquanar
  • 1,531
  • 2
  • 11
  • 8
2
votes
1 answer

SDL2 - No Joysticks detected?

So, I'm trying to learn how to use joysticks with SDL2, and I'm following LazyFoo's Tutorial(Gamepads and Joysticks), but I must've been doing something wrong because my program won't detect my controller! Windows detects it(I'm using Windos 7 and a…
Deive_Ex
  • 83
  • 2
  • 9
2
votes
1 answer

Dualshock 4 Touch Pad with C#

I've been playing a little with the DS4 and its' interaction on PC. So far I've got a list of buttons and all the Axis. Now the question I'm looking forward to is, is there any way to access the Touch Pad (not the button). Aka, can I check if a…
Johnaudi
  • 257
  • 1
  • 23
2
votes
2 answers

using XInput, is it possible to get an image of the controller?

In my simple mind, it seems useful to ship a nice image of your joystick with an index of the button and axis locations on the image. Can such a thing be queried through the XInput or DirectInput APIs? Would it be driver-specific, and if so which…
Brannon
  • 5,324
  • 4
  • 35
  • 83
2
votes
0 answers

How do I emulate inputs of a connected joystick / gamepad device?

I don't even know if this is possible. Basically I want to simulate gamepad inputs and I've already found some solutions here on stackoverflow. The common direction seems to be to create a virtual gamepad device that sends all the inputs. What I…
unR
  • 1,298
  • 14
  • 21
2
votes
5 answers

Is there a Delphi 'joystick' control?

I'd like to align an object in X and Y by eye using the mouse to move it into position. I can roll a solution by using various spin controls (or buttons) but it's messy and I got to wondering whether there is a control - like a joystick - that…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
2
votes
1 answer

How to communicate with DJ Controller (USB hardware)

I have a DJ controller which connects to the computer via USB. It consists of a number of buttons, rotary dials (that look like potentiometers), crossfader and of course a turntable for scratching. This controller is able to be used in popular DJ…
ose
  • 4,065
  • 2
  • 24
  • 40
2
votes
3 answers

Reading joystick values with Python

I want to read the values of an Logitech Logitech Extreme 3D Pro with a Raspberry Pi. I'm using the pygame library The script: import pygame import sys import time pygame.joystick.init() print pygame.joystick.get_count() _joystick =…