For questions about joysticks.
Questions tagged [joystick]
496 questions
1
vote
1 answer
What is the difference between /dev/input/eventX and /dev/input/jsX?
When I connect a gamepad on my Linux kernel v5.14 there are two new devices that show up:
/dev/input/event23
/dev/input/js1
If I cat | xxd both device files provide gamepad event information. But event23 is much more verbose than js1.
Also,…

Arjonais
- 563
- 2
- 17
1
vote
0 answers
Android joystick event injection
I'm tring to create joystick server on android like vJoy. I tried instrumentation but even if i signed apk not worked. I dont find any rooted method on internet. I found adb shell input joystick roll 0 0 but delay is very high.
Edit 1: I tried…

Deniz Yılmaz
- 13
- 3
1
vote
2 answers
SDL2 does not see joystick, but OS does
I am using Ubuntu 18.0.4.4 LTS with a home-brew Arduino-based USB joystick attached.
The OS sees the device at both /dev/input/js0 and /dev/input/event5 and jstest works with it:
$ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (Arduino…

Bram
- 7,440
- 3
- 52
- 94
1
vote
0 answers
Joystick Sprite Kit as UI
So my problem is that im making a game using Sprite Kit and Ive implemented a joystick that I need in the game and first I wanted to make a speed cap when you drag the joystick and also when I put the joystick as a child to the camera instead of…

Joel Joseph
- 13
- 4
1
vote
1 answer
Joystick in win32 application, winmm
How should I understand this documentation: http://msdn.microsoft.com/en-us/library/dd757116%28v=VS.85%29.aspx
Can I only use 4 buttons and 1 analog stick? I've got a gamepad with 12 buttons, 2 analog joysticks and one "steering cross" (POV hat?).…

Moberg
- 5,253
- 4
- 38
- 54
1
vote
0 answers
Pygame - how to make a joystick vibrate
Exist a way to make a joystick vibrate directly in pygame? I know there is a way with evdev, but I want know if in pygame it's possible

Bytez
- 63
- 1
- 1
- 4
1
vote
1 answer
How to send MotionEvents to Android?
I'm trying to develop a Virtual Gamepad but I'm facing lots of problems sending input and event to Android, especially with MotionEvents. I have a device rooted and the app stored in /system/app, required to send events to the system, but I'm not…

Francesco D'Amico
- 33
- 4
1
vote
1 answer
Simulating joystick movement using AccessibilityService
I am trying to simulate tap and joystick movement on screen using AccessibilityService.
In addition i'm getting my input from gamepad controller device. doing tap is ok and done. my problem is simulating joystick movement on screen.
I don't know how…

Milad Salehi
- 43
- 1
- 5
1
vote
1 answer
How to move mouse cursor with joystick?
It seems like this question has already been discussed many times. But I couldn't find the solution for my case. All the discussions are either about camera rotation according to mouse movement or object control via mouse. But I need to control the…

ivanshv
- 47
- 1
- 2
- 7
1
vote
1 answer
Arduino Leonardo as gamepad
I'm trying to build up a new gamepad with arduino leonardo to send keystrokes to pc.
I can only make my gamepad to work such as keyboard.
After I build my gamepad and tried to use it in a pc game, I pressed a button and it can send to the PC…

bladekel
- 37
- 7
1
vote
1 answer
How to use DirectX.DirectInput in XNA
joystick.cs
using System;
using Microsoft.DirectX.DirectInput;
namespace gameproject
{
///
/// Description of device.
///
class joysticks
{
public static Device joystick;
public static…

Okan Kocyigit
- 13,203
- 18
- 70
- 129
1
vote
1 answer
Disable joypad in s60 jme
Can you tell me how to disable joypad in java-me?
I develop some app in sdk s40 6th fp1, and i what to portable app on some device with sdk s60.(Device Nokia 5230)
When app open, joypad is show on device with s60 sdk.
In app, i extends Canvas i…

user668229
- 11
- 1
1
vote
1 answer
Edited joystick code not receiving inputs
I am trying to use a ps4 controller with a raspberry pi to generate inputs. I have sucessfully connected the controller and when i try and run the following code found on the pygame website everything is working fine.
import pygame
BLACK = ( …

Aryaman Jhunjhunwala
- 49
- 3
1
vote
1 answer
Delaying a joystick IF statement
My code consists of a joystick PyGame module that updates the variable self.mmcount when the left stick's vertical axis is moved. My issue is that it updates the mmcount variable too frequently that it's very hard to get to a specific integer. I…
user10332166
1
vote
0 answers
Set up joystick with unity
I'm trying to set up a joystick control, but it's not working.
Below are the buttons I set up in Axis Input:
my code:
void FixedUpdate()
{
bool running = Input.GetKey(KeyCode.LeftShift);
//float h =…

who who who who
- 83
- 1
- 8