Questions tagged [controllers]
Often the primary input device for console games. Typically designed to be held in one or both hands rather than being laid on a surface.
92 questions
4
votes
1
answer
596
views
The button indexes are different between two controllers. Is there a work around?
I found that when you connect a controller, the buttons have a code. When I run console.log(navigator.getGamepads()[0].buttons), the A button on a Nintendo Switch ...
0
votes
2
answers
93
views
How to capture a signed displacement using an analog trigger?
The details of my particular problem are a bit convoluted, but take this similar scenario:
I want the player to be able to control the velocity of the character in some direction using only an analog ...
0
votes
1
answer
158
views
Characters not applying avatars correctly
I am trying to get different models to go through animation cycles in Unity. The first four models are from Mixamo. Does anyone know why my characters end up like this (lodged into the ground) when I ...
0
votes
0
answers
250
views
What is the most performant way for a game engine to poll gamecontrollers?
I am working on a game engine, and currently I hesitate on this decision.
I developed a library that allows Dualsense and Dualshock4 devices to be used in the engine. XBox Support is made possible via ...
3
votes
1
answer
1k
views
Analog sticks, deadzones, diagonals, etc
I'm messing about with a knockoff PS3 controller and SDL2 on windows, and noticed that despite the circular restriction, when I position the stick as close as I can to an extreme diagonal, I am ...
1
vote
0
answers
349
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
0
answers
89
views
Is it possible to use absolute input device like a pointer or VR headset for peeking(looking) in non VR FPS or 3rd person games?
Assume I have a VR headset, which has absolute orientation as output and this orientation is input to a game.
In VR Games, your character looks wherever you look by using your headset's absolute ...
6
votes
1
answer
271
views
Do I need Microsoft authorization to support Xbox 360 controllers for a pc game?
Do I need to pay Microsoft, or do I need some kind of license so I can support the xbox controller on a pc game? Or I just implement it and let people use their Xbox 360 controllers?
3
votes
0
answers
697
views
Switching between VR and Desktop (VR Controllers are not tracked in Unity Build)
I am developing a VR App in Unity3D for HTC Vive Pro (Wireless) everything works well with VR in the usual way. (SteamVR Plugin 2.5.0 (SDK 1.8.19))
Except for some requirement reasons in the same ...
1
vote
1
answer
129
views
How to code a game that can interact with custom controllers?
I want to have my work featured in alt.ctrl.gdc someday.
The process of building a bizarre custom controller is a question for a different stackexchange site, but
Can you tell me a way how to take ...
0
votes
1
answer
45
views
Large gap between the grabbed game object and controller
When i grab a gameobject, there is a gap between them. I have tried changing the scale of the colliders, tool handle position from global to pivot but nothing worked for me. Should i reset the pivot ...
0
votes
2
answers
315
views
Is it legit to use Custom Controller Buttons for PC Games in Unity?
Not sure if this is off topic, but I have a problem. I'm making buttons for my own controller in my Game. For example, the attached images will appear to indicate the player to press the A or B ...
2
votes
1
answer
228
views
Using single Triggers on multiple controllers in Unity
After trying out a lot of stuff I finally need to surrender. Im having a project where I want to use the triggers of the Xbox Controllers seperately. To do so I added them as axis 9 and 10 in the ...
0
votes
2
answers
369
views
Unity - 2D Platformer Controller responsiveness issue
I've been designing some basic controls for a 2D platformer and managed to get the feeling that I've been looking for when moving and jumping, but something is not quite right, it's not very ...
1
vote
2
answers
516
views
How to tell whether the joystick axis is released (not pushed) in SDL2 or in general?
I'd like to implement an event listener that triggers character movement (left/right/up/down or stay) according to the direction of pushed axis on the joystick. Due to jittering, the approach I found ...
0
votes
2
answers
247
views
Character automatic movement and rotation
I have problems with a character. I want to move myself at some speed, and by typing on WASD keys to rotate this object and move to the side where the face is. The object moves continuously without ...
0
votes
2
answers
17k
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 ...
0
votes
1
answer
97
views
Crouching Up and Down XNA C# Controller
The game is a 2D platformer.
The problem I have is when I press the B button to crouch from standing, I do not know how to implement a function where B can be pressed again to move back to the ...
0
votes
1
answer
1k
views
How the game sends force feedback to the steering wheel
How the game will be some of the information feedback to the steering wheel, such as bumps, bumps, vibration and so on. View MSDN, which are introduced from the steering wheel to get the relevant ...
2
votes
1
answer
807
views
Handling multiple controllers in a single player game
Currently implementing input support for a single player game and I'm unsure how best to handle the (admittedly odd) situation where the user plugs in 2 or more controllers. Should only one be active, ...
0
votes
1
answer
874
views
Unity Controller to Make Reticle Orbit based on the right stick input
d platformer arena like game. Right now I have it so a reticle moves around the player based on a controller's right stick's horizontal movement using the rotate around function and while it works ...
-2
votes
1
answer
113
views
How to make my "first person controller" continue to turn left or right when key is pressed in Unity 5?
I recently posted this How To Make My First Person Controller turn left and right in unity 5
but now I'm having a slight problem when I press the key that turns my camera it only does it for a little ...
1
vote
1
answer
353
views
How to reregister gamecontroller changedvalue handler upon game scene reload
I'm working on a tvOS game that uses the siri gamepad controller. Everything works fine the first time out. If the user loses the round I reload the same scene using presentScene. After reloading the ...
2
votes
1
answer
3k
views
Unity Controller navigating UI
I want players to be able to use a controller to navigate our game's menus. We use Unity's new UI, and in the EventSystem have specified a controller axis for our vertical axis. However the selection ...
3
votes
1
answer
2k
views
How do I quantify the curvature of a touch swipe?
I'm implementing a touch controller for my game.
I am attempting to imitate Tiki Taka Soccer's "ball shooting" controls (gameplay video), where the curvature of the player's swipe affects the curve ...