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
2 answers

Lag when frequently checking LWJGL/JInput gamepad buttons or axis, how do I fix it?

I'm in the process of creating a multiplatform (but OpenGL favoring) game engine on Java for Android/OUYA and PC, and the PC platform adapter is giving me some issues when rapidly checking gamepad state. I'm currently using LWJGL/JInput to write the…
user1363917
0
votes
1 answer

Exclusive directinput

I am trying to build an application that have exclusive access over a gamepad. Which mean when my application run, no other application will receive or react to the gamepad action like button press, wheel move,... My approach to the present is using…
0
votes
1 answer

How to switch axes of an android gamepad?

In my case I am using an Logitech F310 in Xinput mode (it has a switch to choose between DirectInput and Xinput). I wrote an small Application, which reads the axis values of the gamepad. It turns out that the right analog stick uses the axis…
Alex N
  • 155
  • 3
  • 8
0
votes
0 answers

How to write an ActionListener for a GamePad without an API: Where to begin?

There are a couple solutions out there in the form of APIs for detecting GamePad input, but I can't find how it's done from scratch. I ran a test for a couple types of listeners, and they don't seem to detect the button presses on my XBOX360…
0
votes
1 answer

Event Handler for XBOX Controller in C#?

I want to use a XBOX 360 Controller to play sounds if the "A" Button is pressed. In my Code Snippet I've used a while loop to check if the Button is pressed. Are there any Event Handlers I can use or different solutions (It's not for Game…
user3362088
  • 115
  • 1
  • 2
  • 7
0
votes
1 answer

Reliable way to capture gamepad button press (non-game application)

I am trying to use a gamepad to control an application. It's not a game, just a plain application using Windows Forms. So it doesn't have a game loop/update process or anything like that. I wouldn't like to use XNA because I think it's a huge…
Geeky Guy
  • 9,229
  • 4
  • 42
  • 62
0
votes
1 answer

How to get/send data from a gamepad through HTML page

Are there any API or a tool to write and read data through an HTML page?
yildizabdullah
  • 1,895
  • 5
  • 24
  • 37
0
votes
1 answer

Gamepad javascript create event recorder

I'm writing a little javascript game and trying to make it work with a gamepad. The gamepad works (on linux at least). I wrote this code: var gamePad; var checkForGamepad; function startPolling() { checkForGamepad= setInterval(function ()…
Bosiwow
  • 2,025
  • 3
  • 28
  • 46
0
votes
2 answers

browser api gamepad not detecting in windows

I'm having a strange problem. I have an ancient microsoft sidewinder version 1 gamepad laying around, And since I'm learning javascript/html5 I thought let's try the gamepad in browser. I tried it on linux (my laptop, ubuntu 13.04)…
Bosiwow
  • 2,025
  • 3
  • 28
  • 46
0
votes
1 answer

Stellaris servo control with gamepad

I'm looking for a solution to control 3 or more servo's with a gamepad connected to my laptop and the MCU I'd like to use is the Stellaris launchpad or MSP430 by Texas instruments. I've searched almost everywhere it seems and still have not found…
0
votes
1 answer

Gamepad thumbsticks active range

for my current project I use gamepad. I was successfull in hooking it up in C# through SlimDX. Everything works fine, only problem is that thumbsticks don't fully use the active range. If I move stick all the way to left on X axis, I get maximum…
jnovacho
  • 2,825
  • 6
  • 27
  • 44
0
votes
1 answer

how to change joystick controlls in xna

exactly the title. i need it for my game. i know how to change controlls on some games trough some programms that do exactly that, but i want to go into options screen, go change controlls, choose whether i will play on joystic or keyboard and then…
Monset
  • 648
  • 5
  • 25
0
votes
0 answers

Monogame Virtual gamepad not responding to touch in Android

Is there any problem in Monogame GamePad Class for Android. There is no Android version of project files in samples that use gamepad class (VirtualGamePad, RockRain). I try using this class in my Android project but it is not responding to touch.…
azeymur
  • 11
  • 2
0
votes
1 answer

Old GamePadState xbox controller

So I'm trying to do something quite simple using a gamepad that I have done using a keyboard before. And that is to create an old state to record what button was pressed on the last update. So when using the keyboard I had a code that looked…
Gandeh
  • 141
  • 1
  • 1
  • 5
0
votes
3 answers

How to access a joystick/gamepad from Mono/C# in Linux?

I'm working on a robotics project using C# on a Raspberry Pi running Debian. I've gotten a PS3 DualShock controller paired with the OS, so that it appears as joystick device /dev/input/js0. Now I'd like to access the DualShock joysticks and buttons…
Joe Strout
  • 2,634
  • 2
  • 28
  • 39