Questions tagged [gamepad]

A type of game controller held in two hands

A gamepad (also called joypad or control pad), is a type of game controller held in two hands, where the fingers (especially thumbs) are used to provide input. Gamepads generally feature a set of action buttons handled with the right thumb and a direction controller handled with the left. The direction controller has traditionally been a four-way digital cross (also named a joypad, or alternatively a D-pad), but most modern controllers additionally (or as a substitute) feature an analog stick.

303 questions
2
votes
2 answers

DirectInput 8 linking errors

I am trying to use DirectInput to control camera movement on a small 3D application for a school project. I am using C++ on VS2010. Per this link, I needed to link dxguid.lib and dinput8.lib on my project properties. So, I added them. This led to…
rubbyrubber
  • 567
  • 4
  • 19
2
votes
2 answers

Using USB gamepad from Java app

Is there any way to use my generic usb gamepad from my java application? Thanks.
johnny-b-goode
  • 3,792
  • 12
  • 45
  • 68
1
vote
0 answers

Getting more than 4 gamepads working in your Unity game?

Unity 2020.1.17f1 Input System 1.0.2 So if I plug in 5 xbox 360 controllers (wired) and 1 modern wireless xbox controller (I think series X or something) I am able to play games such as Regular Human Basketball (which was made in Unity) with 6…
user8810083
  • 599
  • 1
  • 5
  • 21
1
vote
1 answer

Breakout game, paddle moves all the way to the left when not pressing the controller gampad button

I can't figure out why the paddle moves on its own all they way to the left when I run the game. The gamepad controller does work and it moves the paddle but when your not pushing down on the gamepad controller ether left or right the paddle goes…
TMC FAMILY
  • 119
  • 1
  • 6
1
vote
1 answer

How can I add controller/gamepad support into a java program?

Im currently making a small game and I would like to include Ps4/xbox/gamepad controller support in it. I cannot seem to find many resources on how to actually implement this so I was wondering what the best way to do this would be in Java? I have…
Avi yi
  • 11
  • 1
1
vote
2 answers

Trouble detecting joysticks in Python Arcade (and Pyglet)

I can't seem to get my controllers to detect correctly in using Python Arcade. I've created a controller object that tests the basic functionality like this: # tq_menu class CursorControl(): joystick_count = len(arcade.get_joysticks()) def…
Pogmog
  • 23
  • 4
1
vote
0 answers

How to get a list of available joystick ids in Go

I'm trying to find joystick state in a cross platform way - developing on windows - using Golang. I'm currently looking to use the joystick API at https://github.com/0xcafed00d/joystick However, for Go on windows, I don't know how to find the id…
AndyS
  • 725
  • 7
  • 17
1
vote
0 answers

Focus stuck in textarea and inputs

I'm creating a form and am noticing that focus gets stuck in these inputs. I'm using a spatial navigation library (spatial-navigation-js by luke-chang) which enables spatial navigation by arrow keys (and I've mapped gamepad controls to these arrow…
briankwlin
  • 43
  • 8
1
vote
0 answers

Deactivate or disable Controller/Gamepad functions for another process in C#

I am writing a little Windows Forms application in C# to detect if a XBox Controller is connected and if it does, it maps the gamepad buttons to specific keyboard keys (with SharpDX and InputSimulator). After that it starts a game where I want to…
1
vote
0 answers

How to detect Xbox controller key press events in Windows 11 in Winjs UWP app?

I am not able to navigate in my UWP WinJS app using a gamepad controller in Windows 11. It is working fine in Windows 10 though. I also found out that I am no longer getting keydown event when pressing any key on Xbox controller. I am confused.…
vishal
  • 596
  • 2
  • 12
  • 31
1
vote
1 answer

How do I get input from nintendo switch joycons?

I'm trying to get input from two Joycons. I have tried joycon-python, but that gives me inaccurate stick movement. I have tried connecting via pybluez, but I can't seem to get anything to work. So far, the code I have is meant to connect to the…
qwerty
  • 51
  • 2
1
vote
0 answers

Custom HID Gamepad works on Windows, has some inverted buttons in Linux

I've designed a custom gamepad using an STM32. It has four analog axes, and 22 buttons. I have written firmware for it, including the USB Descriptor (that took a few tries). It works exactly as expected on Windows, but on Linux (Raspbian…
notloc
  • 136
  • 5
1
vote
1 answer

Multiple input.event triggers on single button press caused by Mouse or Gamepad Joystick movement in Godot 3.2.3

I'm building a game in Godot and I am running into an issue where Input.is_action_pressed, Input.is_action_just_pressed, and Input.is_action_just_released are all triggering multiple times if the mouse or gamepad joysticks are moving while clicking…
HeroicNate
  • 63
  • 7
1
vote
1 answer

SDL2: Haptics methods behaving not as expected

I am experiencing some strange behaviors of the SDL2's Haptics methods. I have tested this under Linux 64bit with libsdl2-dev and libsdl2-2.0-0 (both in version v2.0.10) and Windows 10 64bit (latest SDL binary build). As controllers I used the…
tiberius
  • 11
  • 1
1
vote
1 answer

Way to map GPIO buttons (RaspberryPi) to gamepad (Gamepad API)

I have RaspberryPi 4 with few buttons connected to GPIO pins. I want to map those buttons to act like gamepad to be accessable trough browser's Gamepad API. Is there any way on backend (NodeJS, Python) to map those raw inputs into actual gamepad…
Baterka
  • 3,075
  • 5
  • 31
  • 60