Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gamepad]

A game controller held in two hands, where the fingers (especially thumbs) are used to provide input

1
vote
0answers
34 views

Support multiple gamepad layouts (Unity 2017.3)

My game supports touchscreen, keyboard + mouse and the Xbox One controller and the input so far works properly. Now I also want to add a second layout for the gamepad the player can then pick in the ...
0
votes
2answers
76 views

Aiming in a twin stick shooter

I am trying to implement a twin stick shooter game, sometimes referred to as dual stick shooter where the left stick controls movement, and the right stick aims a gun. What I do now, is directly map ...
1
vote
1answer
179 views

Vibration/Rumble with PS4 Pad and LPDIRECTINPUTDEVICE8

I actually try to make my PS4 Pad rumble. I get the pad capabilities with ...
0
votes
0answers
45 views

Inverted left & right stick axes in SDL2

I've faced a weird problem with SDL2. ...
1
vote
0answers
33 views

IOS Keyboard as Gamepad in unity

So I’ve been messing around in unity lately, and I got a vr headset to mess around as as well(google cardboard). I also want to make my own controller to use with this. To achieve this, I want to use ...
0
votes
0answers
19 views

Need help to merge joystic/gamepad support (i got it !) on shoot'em up already scripted

i need little help please, to get started the right way : this links support very well joystick/gamepad on pyglet: gamepad support script I would like to migrate it on first or second basic pyglet ...
1
vote
1answer
100 views

Steelseries Stratus XL controller: Keycode for middle button

I'm working on an Android app (Java, level 19+) that uses a controller to e.g. walk and it's working (almost) fine with both the Steelseries Stratus XL and the Moga Pro Power. The only problem is that ...
0
votes
2answers
2k views

Unity3d - How to use controller joystick to look around?

I try to use my xbox controller as input device for a game targeted to run on windows. However the documentation fails to explain how to set it up. E.g. how can I use the right stick from my xbox ...
2
votes
1answer
950 views

how to achieve smooth 360 Degree input with joystick as opposed to 8 angles

I have been trying to figure out how to implement controller input in my unity project. I figured out a lot of things except for how to take the 360 degree input of a thumbstick and apply that to a ...
-1
votes
2answers
282 views

Gamepad R2 button number for input manager

This should hopefully be an easy one but i'm stuck on this. I need to stop character movement and camera look if the R2 button on a gamepad is held down. The gamepad i'm using is a third-party ...
0
votes
1answer
95 views

understanding image rotation XNA C#

I do not understand how the rotation of the image i have works. Is it something to do with the ThumbSticks on the Xbox Pad? or properties of a float? if someone could explain to me what is actually ...
3
votes
0answers
2k views

How do I make the PS4 controller vibrate in Unity3D on mac?

I am currently working on a 2D game in Unity3D with an option to play with a gamepad/controller. I would like the PS4/dualshock 4 controller to vibrate. I am on mac. I have looked into Xinput but I ...
1
vote
0answers
125 views

Identify controller/buttons using javascript Gamepad API

Using the Gamepad API, or possibly some third party device mapping, is there a way I can associate buttons (gamepad api gives buttons by a numeric key value) to their controller counterparts? For ...
16
votes
2answers
1k views

What gamepad functionality can be assumed?

When I offer gamepad support, the simplest solution seems to be to assume XBox controllers and use a library that maps the most frequent gamepads to a similar layout. Now if I want to minimize ...
0
votes
1answer
181 views

Keycodes map to wrong keys

I'm working on an Android app/semi-game (API 19-23, Java) and I used this website to help me handle controller input. Overall it looks pretty similar to what the website says for "Process Gamepad ...
0
votes
0answers
80 views

Cross-platform framework supporting gamepad and GUI building

I want to write a small cross-platform (Windows, Linux, Mac, maybe Android) program (on Python or C++, Python is preferred) that should use gamepads. Which frameworks that are cross-platform, ...
1
vote
0answers
41 views

Is it possible to simulate different vendor gamepads?

As a developer it would seem natural that I would like to support as many possible hardware compositions as I can, however as I'm not a big studio I have a limited budget, which means I have to get by ...
0
votes
1answer
2k views

Using Steering Wheel in Unity

Is there any way to use a steering wheel in Unity? All I find online is people with the same problem. The numbering on the axis are not the same as with keyboard input. In some cases left is 1 and as ...
1
vote
0answers
100 views

Accessing DualShock 4 motion sensor in Windows [duplicate]

I am attempting to access the accelerometer and gyroscope functionality of the dualshock 4 controller for implementation into Unity. DMGregory seems to have found a solution to this problem, my ...
0
votes
1answer
567 views

Gamepad default trigger identification in Windows

I'm currently writing an interface driver for my Moga Power Pro controller on Windows. I'd like to release it for others to use, but first I have some questions on expected default mappings for the ...
9
votes
2answers
4k views

Accessing DualShock 4 motion sensor in Windows (ideally Unity)

I'm trying to use a DualShock 4's IMU as a motion controller in Unity, under Windows 7. So far I've tried: DS4Windows (1.5.11): reads motion sensor data, but does not expose them to Unity as axes ...
-1
votes
1answer
484 views

Get stick analogue XY position using Jinput in lwjgl

I want to capture the movement of the analogue stick of the gamePad. is there any equivalent function to this? ...
1
vote
1answer
292 views

SDL2 Gamepad triggers trigger when disconnecting the pad

I'm using MonoGame and SDL2. I'm having a strange problem with the Gamepad. When I disconnect it during the game, before the disconnected event fires, the left and right triggers return values as if ...
3
votes
1answer
956 views

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 ...
1
vote
0answers
528 views

Why is my XInput gamepad press stamp not working?

I'm trying to add basic gamepad input to my c++ DirectX game but i'm having some trouble creating a press stamp (registers the press only the first time it's pressed if button held down). The entire ...
0
votes
1answer
701 views

XNA Framework doesn't recognise controller [closed]

So just a little bit of XNA code: ...
0
votes
1answer
86 views

Controls become inverted after a collision

I'm just prototyping a simple project. I'm moving a sprite on screen using the Xbox gamepad: ...
0
votes
1answer
333 views

logitech dual shock Python support

Does anyone know how to use "dual vibration feedback makes your games more realistic and immersive." on this logitech gamepad I know about pygame however I don't think it gives feedback. http://www....
2
votes
1answer
494 views

How do I detect when the Xbox home button is pressed XNA?

How do I detect when the big Xbox button in the middle of the gamepad is pressed in XNA?
4
votes
1answer
126 views

Key events outside of an SDL application

I'm developing an app under C++ and SDL running in Ubuntu. I'm using the SDL events to handle the keypad buttons. My problem is that my app launch other programs and it should close they with a key ...
9
votes
1answer
2k views

Xbox thumbstick used to rotate sprite, basic formula makes it “stick” or feel “sticky” at 90 degree intervals! How do you get smooth rotation?

I am using a very basic formula to calculate what angle my sprite (spaceship for example) should be facing based on the Xbox controller thumbstick i.e. you use the thumbstick to rotate the ship. In ...
0
votes
1answer
286 views

Supporting Multiple Input Devices

I'm currently developing a PC game with the assistance of XNA and I'm integrating keyboard and gamepad control support. Up until now I've only supported gamepad control, and finding an elegant way to ...
0
votes
1answer
1k views

Gamepad API For Multiple Pad Types

I'm a C++ newbie working on adding gamepad support to Moai as a learning exercise and because I'd like to be able to use a gamepad with it. I'm starting by implementing the Xbox 360 gamepad via XInput ...