Questions tagged [gamepad]
A game controller held in two hands, where the fingers (especially thumbs) are used to provide input
46
questions
0
votes
0
answers
53
views
How to map south button on gamepad to behave like the left mouse button?
How would I tell Unity that the left mouse button is being pressed when I actually press the south button on a gamepad?
0
votes
2
answers
60
views
Determine End-to-End Latency on Laptop or PC
I'm working on a project to determine the end-to-end latency of a cloud gaming system (i.e., XCloud) on a MacBook.
I believe I have half of the process completed so far:
A Javascript web app that ...
1
vote
0
answers
28
views
Creating an "Aim Mode" toggle button with virtual buttons
I'm trying to make an "Aim Mode" in Stride for a 3rd person, 2D platformer. The idea is that player presses (and releases) a button that activates Aim Mode, and Aim Mode stays on until ...
0
votes
0
answers
188
views
How to use Kalman's Filter to remove gyroscope drift of PS5 DualSense gamepad?
Playstation's gamepad allows us to use gyroscope and accelerometer data but it has a small drift which leads to mouse cursor vibration.
I think, we can combine gyroscope and accelerometer data into ...
0
votes
0
answers
790
views
What is the PS5 DualSense gyroscope and accelerometer values range?
I'm trying to implement aiming in shooter using gyroscope but I can't find the minimum and maximum value for each axis to normalize it to range (-1;1)
What is the possible values range?
3
votes
2
answers
264
views
Steam Controller thinks it has 2 hats?
Is there any reason why a Steam Controller would think it has two hats?
The pad on the left is HAT 0, as expected. Note that the pad on the right is not a HAT/DPAD, it is two axes (Axis2 and Axis3) ...
1
vote
1
answer
558
views
Unity Input: Thumbstick works in editor, not in WebGL
I've built a game in Unity 2017.1.1f1 for the web. I have inputs to allow user to play with either the keyboard or a gamepad (in my case, a Gamecube USB). So far as I can tell, all controls work fine ...
3
votes
2
answers
980
views
How to map gamepad inputs for my platformer?
With keyboard+mouse controls, we seem to have an unspoken control mapping standard, with keys be like WSAD for moving, E for use, mouse button for attacks or interactions, spacebar for jumping, and so ...
0
votes
2
answers
1k
views
How to flip the player without local scale and velocity problems?
I'm making a 2D game with Unity. Recently, I've implemented a shooting system. I wanted to change bullets direction based on the player's facing but since the flipping code was changing the local ...
1
vote
0
answers
279
views
How do I work with gamepad fall back devices in Unity's Input System?
I was applying gamepad controls to my game & I found that the fall back device for my gamepad is a joystick. As I understand it, this is standard behavior for the new input system.
I also read ...
0
votes
1
answer
83
views
JoyStick::GetInfo(JoyStick::id1).dwButtonNumber always returns 0x1
I am using an XBox 360 gamepad for Windows.
I am having an issue with the following legacy code base, which relies on JOYINFOEX, ...
0
votes
0
answers
54
views
Is it a good idea to analyze and compensate for gamepad joystick deadzones?
For example, the player may want to be able to aim precisely in a top down shooter. However, if the player is using a junky controller that has axis-independent deadzones, they will not be able to ...
0
votes
1
answer
675
views
MonoGame/Xna gamepad inputs and joystick
I've been around xna game development since very recently, and I'm actually developing a sort of Library for my games. But then I want to make an enemy with default Player settings for keys layouts ...
2
votes
2
answers
4k
views
Gamepad Input: How to assign the Dpad as individual buttons?
I've looked around and had no luck, so I want to ask here. I'm using an XBOX ONE controller for my game, I've set up the input, however my issue is with the Dpad itself.
Below is an example of how I ...
0
votes
1
answer
56
views
how to use vehicles in a sandbox with gamepad
hello I have a game prototype in unity about a local multiplayer sandbox game with gamepad.
The game tries to use vehicles and perform an activity x and I want it to be for 2 people.
At this moment ...
1
vote
0
answers
54
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
2
answers
668
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
1
answer
862
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
0
answers
350
views
Inverted left & right stick axes in SDL2
I've faced a weird problem with SDL2.
...
1
vote
0
answers
77
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 ...
1
vote
1
answer
301
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
2
answers
16k
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 ...
3
votes
1
answer
4k
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
2
answers
2k
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
1
answer
443
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 ...
5
votes
0
answers
4k
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
0
answers
148
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 ...
14
votes
2
answers
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
1
answer
292
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 ...
1
vote
0
answers
49
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
1
answer
8k
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
0
answers
244
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
1
answer
1k
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
4
answers
12k
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
1
answer
615
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
1
answer
427
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
1
answer
1k
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
0
answers
602
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
1
answer
834
views
XNA Framework doesn't recognise controller [closed]
So just a little bit of XNA code:
...
0
votes
1
answer
98
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
1
answer
410
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
1
answer
527
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
1
answer
138
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 ...
10
votes
1
answer
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
1
answer
355
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
1
answer
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 ...