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
23
votes
4 answers

Is the HTML5 Gamepad API limited to only 4 Controllers?

I'm correctly able to get input from 4 controllers through using the HTML5 Gamepad API within a browser. https://www.w3.org/TR/gamepad/ What I'm having trouble with is getting input from 8 controllers. These being all Xbox 360 controllers, I know…
MattTreichel
  • 1,418
  • 3
  • 18
  • 35
10
votes
1 answer

How to tell Siri Remote button presses and gamepad button presses apart?

I wrote an override for pressesBegan(_ presses: Set, with event: UIPressesEvent?) on my ViewController. open override func pressesBegan(_ presses: Set, with event: UIPressesEvent?) { #if os(tvOS) for press in presses { …
Lynn
  • 10,425
  • 43
  • 75
8
votes
1 answer

tvOS - game control via non-Siri remote

I'm working on a game in Objective-C. The Siri remote works great via GCMicroGamepad and real MFi controllers work well via GCGamepad. However, third-party IR remotes do not work at all in-game (and neither does the Remote App on iPhone or an older…
StilesCrisis
  • 15,972
  • 4
  • 39
  • 62
7
votes
2 answers

How does one handle input from a character device/gamepad directly in Linux systems?

I am developing a program in C that uses a USB SNES controller for input on a RPM based distribution. Is there a library anyone knows of that makes this easier to interact with, or some tool (joydev?) that allows to properly read input from the…
robbmanes
  • 319
  • 3
  • 10
7
votes
1 answer

How to detect gamepad triggers both pushed with USB HID API?

I use RawInput + Windows USB HID API to receive WM_INPUT message when a gamepad button is pressed and retrieve gamepad state. There's a problem: two triggers work on same axis which means you can't figure out if two triggers are pressed at the same…
Juster
  • 732
  • 1
  • 10
  • 26
6
votes
1 answer

Detect volume and home button presses on the Siri Remote

It's relatively straightforward to detect some button presses on the tvOS Siri Remote: the pause/play button, the touchpad area, and with marginally more effort, the MENU button. But there seems to be no way detect or override the function of the +…
Grumdrig
  • 16,588
  • 14
  • 58
  • 69
6
votes
1 answer

Can I use gamepads with Node-Webkit (NW.js)?

I am building a NW.js (Node-Webkit) dashboard app which I want to be able to control with a game controller (for example: XBox 360 controller or Logitech controller). I'm calling the following onready but when I debug its not recognizing any…
6
votes
3 answers

pygame: detect Joystick disconnect, and wait for it to be reconnected

I'm using a pygame.joystick.Joystick object and want to be able to print a message asking the user to reconnect a usb joystick once it's been unplugged. right now I have (roughly): js = pygame.joystick.Joystick(0) #... some game code and…
Ryan Haining
  • 35,360
  • 15
  • 114
  • 174
5
votes
1 answer

Rumble support with Gamepads?

I have read through both the MDN Gamepad API page and the W3C Gamepad API page, and I have found nothing about any rumble features with Gamepads. I found one page that referenced rumble support in FireFox with an android phone, but only had one…
ZomoXYZ
  • 1,763
  • 21
  • 44
5
votes
3 answers

How to differentiate a D-pad movement from a Joystick movement?

I need to have two different behaviors, one for D-pad and another for the analog Joystick (on the same gamepad). The problem is that on the onGenericMotionEvent callback, both have the same information on the MotionEvent and I am not able to…
thiagolr
  • 6,909
  • 6
  • 44
  • 64
5
votes
1 answer

Gamepad required - android tv - releasing app

I have uploaded app on android tv which supports gamepad but it's not required. Unfortunately google play store shows that pad is required. I know it's something with manifest but it looks good to me. This is important part i guess uses-feature…
Seba Dudek
  • 51
  • 3
5
votes
5 answers

XNA show xbox onscreen keyboard in PC

I need to show, and input some text in xbox-like onscreen keyboard. Sadly, when I call Guide.BeginShowKeyboardInput, there is only some funny textbox shown, and i must fill it via keyboard. I know, that on PC iv very normal to use keyboard, but in…
Thaven
  • 1,857
  • 3
  • 19
  • 35
4
votes
1 answer

IOKit: Not receiving HID interrupt reports from DualShock 4 controller connected with Bluetooth

Introduction I am working on getting full support for the PlayStation 4 Controller using the HID interface in IOKit. The controller is connected over Bluetooth. I can open a connection to the controller and start receiving reports, however, once I…
David Skrundz
  • 13,067
  • 6
  • 42
  • 66
4
votes
1 answer

Unity 5 doesn't see my PS4 controller

I've been seeing people use XBOX, PS3 and PS4 controllers for awhile now but haven't had a reason to mess with them until now. Today I purchased a PS4 Dual Shock 4 wireless controller. I'm running Unity 5 on a MacBook Pro with latest OS X version.…
Richard
  • 61
  • 1
  • 6
4
votes
1 answer

gamepad force feedback (vibration) on windows using raw input

I'm currently writing a cross platform library in C which includes gamepad support. Gamepad communication on windows is handled by both raw input and xinput, depending on the specific gamepad. While xinput facilitates force feedback on xbox360…
Job Talle
  • 196
  • 1
  • 9
1
2 3
20 21