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 ...
1
vote
1
answer
6k
views
How to connect a Nintendo Switch Joy-Con to PC via Bluetooth?
I asked a while ago on how to connect a Wiimote to a PC via bluetooth. I got no replies, so I'm guessing no one knows how to do this, so I was wondering if Joy-Cons are a good substitute for Wii ...
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 ...
3
votes
2
answers
16k
views
How does one detect a button release with Unity's new input system?
I'm attempting to upgrade my technique from the classic input methods to the new Input System for Unity; but I'm finding it a little sprawling and unhelpful so far.
I know that if I have an action, ...
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
1
answer
4k
views
Unity stops receiving input from gamepad when game is started
Update: I originally thought that it was more or less random whether the controller input works or not. I have now found out that it stops working once the game has been started for the first time. ...
0
votes
0
answers
251
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 ...
0
votes
0
answers
291
views
Unity XR Ray / Line renderer on the floor
When using Unity's XR system, the teleport ray / line renderer I'm stuck on the floor. Turning the XR rig also turns the line, so the line is stuck on 0,0,0 on the XR Rig
I've played with most ...
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 ...
0
votes
0
answers
76
views
How to make script awake again after sleep?
I disabled gamecontroller for 15.9 seconds and controller not awake again.It's for cutscene cam before the race start.
...
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
108
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
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 ...
0
votes
1
answer
100
views
Joystick servo control axis value when idle (unity)
When the joystick servo control is idle (user not moving it) , i don't believe the axis value will be 0 because there's a lot of thing that interfere with the value (such as calibration , inaccuracy , ...
6
votes
1
answer
276
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?