Questions tagged [joystick]

For questions about joysticks.

496 questions
0
votes
0 answers

Python joystick emulator

Does anybody knows how to do control the games throw emulate some joystick or steering wheel emulators with Python, it look like that for Python we have only Linux solution, but what about Windows? For my project I use mouse X axis to emulate…
TheRutubeify
  • 646
  • 1
  • 7
  • 24
0
votes
1 answer

Windows 10 pygame joystick can not read only one of the axis (z-rotation)

I am running Windows 10. I want to use pygame to read the (Thrustmaster steering wheel) joystick axis and buttons. I can read all the values correctly expect one axis (z-rotation, which I read from the default game controller for windows). That axis…
Min Chen
  • 31
  • 1
0
votes
1 answer

Joystick buttons to play MIDI?

What's the simplest way to trigger MIDI tones from joystick button presses? My kids have a "dance mat" (USB joystick with 10 buttons only, no axles or anything else) and I'd like to turn it into an instrument. My only preference is for platform…
Szocske
  • 7,466
  • 2
  • 20
  • 24
0
votes
2 answers

Use read() C function without stopping code

I'm trying to read data from a joystick using C code. I have found online the way to do it. This solution seems to work fine but with a problem. When the code reachers the the read() function, it stops and waits until there is change in the joystick…
Janus Gowda
  • 295
  • 1
  • 4
  • 17
0
votes
0 answers

Having trouble with MotionEvent.ACTION_UP

I have a joystick application that I am implementing and am having trouble with handling motion events. Everything works fine for the most part except that I am trying to capture an event after ACTION_MOVE. So after the user is done dragging the…
0
votes
0 answers

Calculating displacement with Android ImageView for a Joystick

I'm having trouble getting my program in Android Studio to properly constrain the joystick I have created. I have two ImageViews placed on top of one another, one being the joystick itself and one being the base of the joystick. Here is the code: …
0
votes
1 answer

Get axis info from Logitech racing wheel via Python

Recently, I have been playing a bus driving simulator. I have a racing wheel, which doesn't have a clutch pedal, so I searched for a way to adapt the mouse to act as a joystick with clutch, brake and gas. I found a solution with vJoy and FreePIE -…
user2177283
  • 281
  • 1
  • 4
  • 19
0
votes
1 answer

How to rotate fps player gun and camera together with joystick.?

I am a noobs. I am creating fps game with android device. I have a simple code to move player using joystick posted below. I want to rotate player and camera with gun same like pc games(counter strike). I don't know How can I achieve this kinds of…
moje_mast_ram
  • 114
  • 13
0
votes
2 answers

C# Gamepad Input/Output Class

I am trying to design a little program that takes input from two PS2 controllers from a USB converter. I would like to take input from all the buttons including pressing the joysticks in (L3, R3), and the joysticks position, and whether the analog…
0
votes
1 answer

android multitouch on vogella tutorial not working

I tried this code of multitouch color dots given in tutorial http://www.vogella.com/tutorials/AndroidTouch/article.html I want to place a dot on touch and when I move my finger one dot shuold remain there and another should move .just like…
0
votes
1 answer

Unity USB Thrustmaster Joystick

I am trying to use a USB Joystick in Unity. I am working with Unity 5.5.1 on a Windows 10 PC. The Joystick works perfectly on my machine. But in Unity, the joystick gives me some weird axis outputs. I tried to map my joystick input with the Unity…
Jenny
  • 469
  • 2
  • 11
  • 25
0
votes
1 answer

ArdunioJoystickLibrary ButtonState Preference

Hello I am currently using MHeironimus's ArduinoJoystickLibrary, I have a 3 button game pad for which I am having issues with. My button on pin 2 is normally on, how do I reverse this in the code so that the state is normally off. I really have no…
b3ck
  • 97
  • 1
  • 3
  • 10
0
votes
0 answers

Unity 2D - how to configure joysticks?

After looking up various tutorials and guides and not fixing my solution, I would like to know how to set up the left stick on an Xbox 360 controller so that it controls my character. I have tried setting up my Horizontal and Vertical axes in the…
rjkiv
  • 23
  • 6
0
votes
1 answer

Use a USB joystick from C++

In my project I'm using directinput to manage the joysticks attached to the PC and it works, but IMHO directimput is terrible to understand and manage perfectly... Does some other library/method exist to manage the joysticks in C++ in a more pretty…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
0
votes
1 answer

Gamepad + Keyboard Virtual Joystick

I have been searching the website for the perfect software that maps keyboard keystrokes to real game pad key presses. I found various softwares like JoytoKey , Xpadder , Vjoy and Universal Joystick Remapper. But the thing is none of them combines…
Harry47
  • 101
  • 1
  • 4
  • 13