Questions tagged [joystick]

For questions about joysticks.

496 questions
0
votes
1 answer

Sending an analog input to the system

I'm trying to make a joystick. The idea is that I will get an analog input from a pot by arduino I'll send the value to visual studio via serial port and finally I have to put this value as joystick analog input to the system so I'll be able to use…
srkn
  • 35
  • 3
0
votes
0 answers

pygame get joystick number through name

Is there a way of getting the Joystick id get_id through get_name I want to make sure that in an multi joystick setup, the xbox joystick is always controlling the right thing no matter which of the joysticks was connected first. Therefore it would…
user3603948
  • 153
  • 3
  • 12
0
votes
1 answer

Pygame read axis value from BU0836X HID device

I have a BU0836X Joystick Interface board which I want to use to read analog Joystick values. http://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=180 On the computer there is a python script running capturing the joystick…
user3603948
  • 153
  • 3
  • 12
0
votes
0 answers

Programmatically fire windows joystick events?

Problem I want to programmatically throw Windows Joystick move events using c++, but I am unsure how. Someone had mentioned writing my own custom device driver. I've never done anything like that before. Can anyone point me in the right…
Kevvvvyp
  • 1,704
  • 2
  • 18
  • 38
0
votes
1 answer

Using DirectIN Rotary Controller in PsychoPy2 in builder

I am trying to use the DirectIN Rotary Controller on Mac OS X (yosemite) with PsychoPy2 (v. 1.82.01). I would like to conduct a two-alternative forced choice experiment and use the buttons on the button box in order to respond; however, I cannot get…
babylinguist
  • 392
  • 1
  • 13
0
votes
1 answer

Visual Studio C++ console joystick

I try to compile code from this section It said it working C++ console application joystick control mouse movement and mouse button click. But i get C2061 error undeclared identifier. Here the code I modify in C++ console application: //…
Majdi_la
  • 1,028
  • 1
  • 9
  • 10
0
votes
1 answer

SDL 2.0 - SDL_GameControllerGetButton not working

I am developing an application that needs to display which buttons are pressed on a joystick. For this, I used SDL to read the state of my joysticks, the code is: bool JoystickInfo::getButton (const int &joystick, SDL_GameControllerButton button) { …
Alex Spataru
  • 1,197
  • 4
  • 14
  • 26
0
votes
1 answer

Moving mouse in direction and rate

I'm trying to create a simple mouse emulator controlled by a joystick's right thumbstick. I was trying to have the mouse move in the direction the stick pointed with a smooth gradient of pressure values dictating speed, but I've hit a number of…
0
votes
1 answer

npm joystick problems with node js

I am trying to use a joystick with node js, and I ran into an issue. I installed the function with npm install joystick that worked well, but when I ran this code to test it: // Set a deadzone of +/-3500 (out of +/-32k) and a sensitivty of 350…
Zock77
  • 951
  • 8
  • 26
0
votes
1 answer

Getting Joystick input in a Blender editor script

I'm trying to write a Blender script that uses joystick input to move the viewport while editing. I tried using Pygame and I've looked at Pyglet, but it looks like they both only work under Python 2.x, which isn't compatible with Blender, which uses…
0
votes
1 answer

Pygame.not getting value for one of axes on the joystick

I am using Pygame to get values from a Simraceway steering wheel, which is just seen as a joystick. There are three axes on the joystick -- one for steering, one for the left paddle, and one for the right paddle. When I do the Pygame command…
Daanii
  • 259
  • 2
  • 3
  • 12
0
votes
1 answer

Ramping Joystick values over time

I have a python script that reads the input signal of a joystick via pygame and passes that input to a motor controller. Now i would like to add a ramping function. let's say to ramp up to the input value with a given delay. if the input of the…
user3603948
  • 153
  • 3
  • 12
0
votes
1 answer

Is it possible to combine VPython and Pygame?

I need to use a joystick for a vpython project, Is it possibe to combine pygame module and vpython to be able to use joystick functions of the pygame module?
0
votes
1 answer

Processing Joystick beginner

How can I make the mouse move like a joystick. Here is a example of what I mean except this only moves to the right and when the mouse is all the way to the right it stops. I want the circle to stop if the mouse is at the center and move where ever…
EdtheBig
  • 161
  • 1
  • 2
  • 7
0
votes
0 answers

trying to get input from the d-pad, moving just one axis modifies both axis

I'll trying to get input from the d-pad of some joypad, assigning it to two axises. I'm trying both with saitek x-55 and saitek pro-fly yoke system. Both of them, when move only up or only right, move both axis. This is my…
Klamore74
  • 578
  • 1
  • 6
  • 21