Hello. I wanted to determine which device the game is being played on using InputBinding.groups, but it always returns null and doesn’t seem to work correctly. This happens in both InputSystem v1.7.0 and v1.8.2. Unfortunately, I can’t check earlier versions, but I feel like it used to be editable from the InputActions window in the past. Has something changed?
Do you have groups selected for the bindings in the Input Actions Editor Window? They are not assigned automatically and the checkboxes need to be selected for each binding.
In the Input Actions Editor, you also don’t have direct access to editing groups. Instead, control schemes are stored as groups and you can (mis-)use them to configure groups. On the bindings you have “Use in control schemes” and the schemes you select will the be added to InputBinding.groups
.
Thank you for your response. I seem to recall that there used to be checkboxes in the Input Actions Editor Window, but have they been removed? I’ve attached a screenshot of v1.8.2, and it seems like they’re not there. Am I just looking in the wrong place?
It looks like you don’t have any control schemes configured (see “No Control Schemes” in the top left).
You first need to set up your control schemes, otherwise the checkboxes won’t appear.
I see!! I’ll give it a try. Thank you for pointing that out!