7
votes
Accepted
Do I need Microsoft authorization to support Xbox 360 controllers for a pc game?
No, you do not need authorization from Microsoft to support Xbox 360 controllers.
You can use the XInput API for free.
5
votes
How does one detect a button release with Unity's new input system?
OK, here's what I've figured out. The type of the action needs to be Value, not Button or Pass Through—this can be changed in the editor by selecting the action from the list; there's a drop down ...
5
votes
Accepted
The button indexes are different between two controllers. Is there a work around?
Usually one would do this with a controller map. A controller map is basically a text file that maps from the controller button codes into a common format. For example SDL uses this file which ...
4
votes
Accepted
How to connect a Nintendo Switch Joy-Con to PC via Bluetooth?
Yes, it is possible to connect Joy-Cons to a Windows PC. I experimented with this for my students a couple of years ago, and just confirmed the same method still works today on Windows 10:
In Windows,...
3
votes
Accepted
Steelseries Stratus XL controller: Keycode for middle button
According to the FCC instruction filing for Stratus XL, the center round key is intended to be a home key.
If that's correct, there might not be much you can do, as the developer reference for the ...
3
votes
Is it legit to use Custom Controller Buttons for PC Games in Unity?
There are official Xbox 360 button and controller images available under the Microsoft Permissive License. They were originally released for use by XNA Game Studio titles, but you are free to use them ...
2
votes
How to support more than 4 XInput controllers?
Xinput library only supports 4 controllers at a time - please refer to the wiki page on Directinput -DirectInput Wiki. May take some work, but you could enumerate some of the controllers under Direct ...
2
votes
What's the best way to train PID controllers?
Don't tune pids using the simplistic "trial and error" method! You will never get good results because parameters depend on each other. Use FOPDT (first order plus dead time) model together with IMC ...
1
vote
Unity stops receiving input from gamepad when game is started
This is a common issue with the new Input System. Several users have already reported this problem, which apparently has not been resolved. Although reading the documentation, it seems that many of ...
1
vote
Analog sticks, deadzones, diagonals, etc
Yes, this is a common issue with analog stick inputs, on most if not all gamepad hardware.
We typically apply a circular clamping function a little like this:
...
1
vote
Accepted
How to capture a signed displacement using an analog trigger?
If you absolutely must use only one trigger and want to avoid having to hold a precise intermediate value to stay still, without a discontinuity in the middle of the input domain, you can also opt to ...
1
vote
Accepted
How does one detect a button release with Unity's new input system?
If you use the Hold Interaction, then the Cancelled event gets called when the button is released, with the Performed event happening if the item is held for the given duration.
As of Unity 2022.3....
1
vote
Accepted
How to code a game that can interact with custom controllers?
As you can imagine, this depends entirely on the kind of control device you want to implement.
At the beginner end of the spectrum, there are devices like the Makey Makey, which is basically a kit for ...
1
vote
Developing addons for xbox one controller
If you want to interface with the controller electronics — ie. to communicate with the controller or console — then you will definitely need Microsoft's blessing.
The expansion port pinout, protocol, ...
1
vote
Large gap between the grabbed game object and controller
In my case, i am using VRTK toolkit. So, i changed the grab attach mechanism from child of controllers to fixed joint and selected precision grab. This solved my problem.
1
vote
Accepted
Ideal 3D platformer controls for Keyboard + Mouse
As the comments suggest, taking an American keyboard mapping for granted is a problem;so, you ideally want to have a configurable keyset, but American mappings are domanate enough to make since for ...
1
vote
Is it legit to use Custom Controller Buttons for PC Games in Unity?
Apart from legal issues, the colors you chose are just plain confusing. On a first party controller (which most people use) A is green, B is red, X is blue and Y is yellow. These make sense based on ...
1
vote
Using single Triggers on multiple controllers in Unity
I had the same issue on our third person local co-op shooter game and I've burned countless hours only to conclude that it's bugged. I recommend ditching Unity's InputManager and use XInputDotNet (...
1
vote
Accepted
How can I change displayed information as a physical control knob is slid along a track
Experimental games/game installations with custom controllers often implement them using a gadget called a Makey Makey. (I have no affiliation with the makers of this product)
This is a small circuit ...
1
vote
How to tell whether the joystick axis is released (not pushed) in SDL2 or in general?
My experience is from working on a gamepad wrapper interfacing with the GLFW library, which appears to have a similar joystick API to SDL.
It can be difficult to discern the difference between a ...
1
vote
1
vote
Animator get number of animations (Unity)
[SerializeField] Animator animator;
int NumberOfNonEmptyStates = animator.runtimeAnimatorController.animationClips.Length;
This returns the number of non-empty ...
1
vote
How can I rumble/vibrate my controller with libGDX?
For using SDL with libGDX desktop, you can use Jamepad. It supports rumbling. There are wrappers for Jamepad to use it as a drop-in replacement for the libGDX controller implementation, for example ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
controllers × 93unity × 31
input × 21
c# × 13
libgdx × 8
gamepad × 8
java × 7
android × 7
xbox-controller × 7
movement × 6
xna × 5
joystick × 5
c++ × 4
touch × 4
control × 4
camera × 3
game-mechanics × 3
platformer × 3
virtual-reality × 3
xbox360 × 3
multitouch × 3
xbox × 3
animation × 2
javascript × 2
ios × 2