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
0
votes
1 answer

Toggle an input

I am using SlimDX to use my Xbox 360 controller and I would like a way of when pressing a button on the controller the state changes to on and stays on but when I press it again it becomes off. Sort of like a toggle. But I have been unable to do one…
user1333775
0
votes
1 answer

Pass Gamepad data to windows

I am creating a Gamepad for windows on the .NET framework using C#, and I am stuck, how do I pass my button event data and the axis data to windows? So for example, if button 1 is pressed it will pass that 1 is triggered and so forth. I have googled…
user1786283
0
votes
1 answer

Converting gamepad thumbstick values to range

I'm trying to get the value from the thumbstick with XInput, but the values are weird and I don't know how to handle them correctly. How do I calculate so that I can read the values between -1 (thumbstick to the left/up) +1 (thumbstick to the…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
2 answers

Using pygame Joystick in pyglet

I'm trying to write a simple game with pyglet but use pygame for gamepad input. The following code successfully prints axis values to the command line, but aside from importing pyglet, doesn't actually show a pyglet window: import pygame import…
Jegschemesch
  • 11,414
  • 4
  • 32
  • 37
-1
votes
1 answer

How to know which button is which on most USB Gamepads?

I am making a game in HTML5+JS and I want it to have USB gamepad support using the Gamepad API, but I want the controls to usually match up with the game. So, if there is a gamepad with the up arrow as the 5th button, and there is a gamepad with the…
idk
  • 11
  • 3
-1
votes
1 answer

press buttons on gamepad

i am trying to press buttons on the gamepad i am using a gamepad descriptor for the gamepad but i cant find out how to press the buttons on the gamepad is there any way to press the buttons? i am using an raspberry pi pico for this import…
-1
votes
3 answers

python inputs on windows optimized ? ( and xbox guide button possible to detect ? )

In Short : any suggestion on how to listen to Xbox guide button ? or any suggestion on how to make "inputs" more optimized and faster for low-end PCs ? hey. I had been looking for a way to make screenshots on windows easier. for now the only…
Cool guy
  • 175
  • 2
  • 7
-1
votes
1 answer

Emulating a DS4 Controller for PS4 remote play on OS X

I am using ShockEmu (https://github.com/backslash-f/ShockEmu) with PS4 remote play and tried to expand support to standard GamePads/Joysticks but I never coded in objective C nor for OS X and I am struggling to make it work. I tried to get some…
-1
votes
1 answer

Manjaro and DualShock 3

I recently installed Manjaro in hope of getting a linux that would not be a ubuntu or debian derivat but convenient to use. I'm using Manjaro 4.14.74-1 with cinnamon. When I plug in my DualShock 3 controller (gamepad), most linux instantly…
eleos91
  • 31
  • 5
-1
votes
2 answers

How to detect which joystick pressed button?

In Unity InputManager (Edit -> Project Settings -> Input) I can define and name different inputs. I have an event called "Draw" that happens when joystick button 0 is pressed. This seems to be working. However, I cannot tell which controller pressed…
Antti_M
  • 904
  • 10
  • 20
-1
votes
1 answer

Autohotkey - Gamepad as Mouse - how to use osk.exe (On Screen Keyboard)

I've mapped my Analogs to Moving the Mouse Cursor, and Joy5 to LButton (etc.), and Joy11 to Run,%windir%\system32\osk.exe Everything works well, except one thing: Inside window of osk.exe, the pressing of mapped Joy5 does not work as expected…
user3383675
  • 1,041
  • 5
  • 12
  • 31
-1
votes
1 answer

Is any api doc can tech me support ios7 gamepad now?

I want upgrade my game to support gamepad for ios7. Now I can't find any useful infomation.
zszen
  • 1,428
  • 1
  • 14
  • 18
-2
votes
1 answer

How do I implement Moga Controller support in my Java libgdx game?

How do I implement Moga Controller support in my Java libgdx game? I am working on a libgdx game and I want to implement moga pocket and game pad support If I understand correctly, mode a on moga controllers acts as moga pocket style support and…
Youseflapod
  • 132
  • 1
  • 10
-2
votes
1 answer

Game pad Menu Navigation Programmatically

I've searched the web using all the search terms that my mind could come up with but all to no avail. I guess it's mainly because I can't explain my question with a couple of keywords. Anyway, here is my question: You know how in games that use…
Brave Heart
  • 517
  • 3
  • 16
-3
votes
1 answer

XBOX 360 Controller Check if Button Pressed in C#

I want to check in my C# project if the A Button of my Xbox 360 Controller is pressed. I've tried XNA and slimDX but it won't work. Can someone give me advice how it probably will work?
user3362088
  • 115
  • 1
  • 2
  • 7
1 2 3
20
21