For questions about joysticks.
Questions tagged [joystick]
496 questions
0
votes
1 answer
Why is this GLFW program not polling for joysticks?
I'm using GLFW to record the states of joysticks in a robotics project, and came across something strange.
On a Macbook Air, running 10.11.3, GLFW only returns the state of the joysticks at the beginning of the program. The documentation claims that…

hpm
- 1,202
- 13
- 34
0
votes
1 answer
Dealing with simultaneous button presses and changing shift states
I am currently working on a (Python2.5) application which handles input from a game controller. We've designated a button as a shift button to change the mapping (inputtype,value->function) of the other buttons on the fly. The mapping also depends…

Bjartr
- 492
- 3
- 18
0
votes
2 answers
Java getting an input from a joystick like an xbox conroler without using an external api
This might just be me not finding it anywhere but how would I go about getting a joystick input from something like an xbox controller without using any external apis to help me. Most of what I found using an api called JInput.

weeryan17
- 11
- 7
0
votes
1 answer
Programming Arduino Mega using joystick to control DC motor
I am trying to control a DC Motor using a joystick with an Arduino Mega. I have been able to run the DC motor, as well as finding the potentiometer values of the joystick separately. I am using just the y-axis of the joystick in order to have the…

Wmson
- 1
- 1
- 1
0
votes
2 answers
Implement a small C DLL to interface between our C++ code and RawInput
After reading this Stack Overflow article,
SlimDX: Joystick.Poll() succeeds on disconnected gamepad
we decided to drop Windows 7 DirectInput altogether, and move to Windows 7 RawInput. We need to implement a small C DLL to interface between my C++…

Frank
- 1,406
- 2
- 16
- 42
0
votes
1 answer
Arduino joystick to web gamepad
I'm using a Arduino Leonardo with a b10k pot. I want to have this pot act as a gamepad (paddle) in a HTML-game. I'm using ArduinoJoystickLibrary and mapping the analog value(0-1023) to a range of -127 to 127.
Like…

J.G.Sebring
- 5,934
- 1
- 31
- 42
0
votes
1 answer
JoyStick only moves when Camera Controls = true Xcode, SWIFT, SpriteKit, SceneKit
Hey I have a 3D game thats not really a game yet. But it has a SceneKit 3D scene and a overlayskscene for the HUD/Controls. the "base" is the base of the joystick and the ball is the handle the problem is that the joystick does not move at all…
user5472959
0
votes
1 answer
DirectX DirectInput won't detect connected devices
I'm trying to use a joystick in my C# WPF application using directX (using Microsoft.DirectX.DirectInput;), but for some odd reason I keep getting an error in the first line where I try to detect all the connected devices. All I have in my…

Petezah
- 1,465
- 4
- 26
- 30
0
votes
0 answers
How do I access a joystick's product name in OpenTK?
All I see is a string property called Description which simply returns a generated string of the hardware index, and axis/button count. "Joystick/Joystick #0 (7 axes, 10 buttons)" is usable, but not very informative.
Other SDL-based libraries show…

Blake O'Hare
- 1,863
- 12
- 16
0
votes
1 answer
How to setup dji L2 api demo?
I'm intended to create an android app in which you can control the drone (in my case phantom 2 vision) I want to control it using a virtual joystick, I already have the Level 2 API. To do that I wanted to see a "working app" with my own eyes, to…

al.
- 1
- 3
0
votes
1 answer
Python3 reading USB joystick
I am very green to python and python3. Most of my background has come from microprocessor work such as arduinos and basic stamp.
So I am writing something for being able to control an IP camera from a joystick. Plan is to use something like a Pi to…

Blackbicbiro
- 1
- 1
- 2
0
votes
0 answers
navigator.getGamepads() return an array of undefineds
[Edit added 17 Sept 2015]
In the latest version of Google Chrome I am calling:
var arr = navigator.getGamepads();
which results in:
arr = [undefined, undefined, undefined, undefined];
I have a Logitech Pro connected in a usb port on my pc.
I am…

Rewind
- 2,554
- 3
- 30
- 56
0
votes
2 answers
Add joystick controls in unity for android game
I want to know if there is a way to control a 3d boat with a joystick to publish the game on android devices. The boat moves only when using desktop keys. I am using this C# code:
void Update ()
{
float h = Input.GetAxis("Horizontal");
float…

WalaaJ
- 11
- 2
0
votes
1 answer
Save joystick list
How can I save and load List of SlimDX.DirectInput.Joystick to/from a file?
I tried
using (Stream stream = File.Open("joys.xml", FileMode.Create))
{
var bformatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
…

Jiří Maier
- 177
- 7
0
votes
1 answer
Why does the x & y values not increment?
I am building a virtual joystick and this is part of the code that I made so that when the joystick is in between a certain value the x and y value will keep on incrementing by a certain value for instance when the joystick is between 1 and 20 for…

Vivek
- 5
- 3