-
Notifications
You must be signed in to change notification settings - Fork 328
FIX: Various improvements and fixes to visualizers (ISXB-1243) #2063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…his was previously incorrectly skipped, but only value control visualizer needs a device to show anything useful.
…l of the current device of the associated device interface type. Updated GamepadVisualizer to use this setting (ON) for all relevant controls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me - will test out these changes when I get a chance with my DualShock4 and DualSense.
|
Is the intention that with these changes I can use multiple controllers and they would both be picked up correctly? Because right now if I connect a second controller that controller is picked up by "gamepad.current" when I click any of its buttons BUT they don't actually do anything in the visualiser. This behaviour is identical without your changes as well TLDR: should multiple controllers work with your changes if so they're not working |
|
Did you by any chance test on Windows where the BT disconnect bug is also
present? I will test there again since I implemented the sample changes on
Mac where that problem is not present. All visualizers should reflect the
current. Otherwise it’s not working as intended.
tors 28 nov. 2024 kl. 09:36 skrev Paulius Dervinis ***@***.***
…:
Is the intention that with these changes I can use multiple controllers
and they would both be picked up correctly? Because right now if I connect
a second controller that controller is picked up by "gamepad.current" when
I click any of its buttons BUT they don't actually do anything in the
visualiser. This behaviour is identical without your changes as well
TLDR: should multiple controllers work with your changes if so they're not
working
—
Reply to this email directly, view it on GitHub
<#2063 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEO54B7KG3J76YAG3VHUP32C3IXZAVCNFSM6AAAAABSSVIHJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBVGUZTSNRTHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I did indeed use win 11. Will try mac |
|
@Pauliusd01 I will try Win :) |
|
Seeing same behaviour on Mac. Steps: Connect dualsense controller and use it in the visualiser -> connect an xbox controller in addition to that -> try to use it in the visualiser -> gamepad.current shows that you're using an xbox controller but none of the buttons light up (Both connected on bluetooth) Note that it works exactly the same in develop so I had to ask if the goal of this PR was to change that |
…device and control have not been previously resolved. Needed since the is no callback when it changes.
|
Fixed a mistake of an unfortunate semicolon. Second fix adresses a problem with Gamepad.current changes not being detected due to how Gamepad.current is modified on device removal (separate concern). This fix scans for changes to current while not having a resolved control. |
…after being assigned to support using multiple gamepads simultaneously. Note that it may still be a problem if gamepads are noisy.
…echnologies/InputSystem into isxb-1243-fix-visualizer
|
Added proper support to sample for mixing usage between multiple active connected gamepads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Checked multiple controllers being connected/disconnected in play mode and player (mac/win) There are some minor things still but they are known and will be fixed in the future.
Description
Visualizer sample has problems adopting to device disconnects and lack convenience for multiple devices. (Reacting to current device). Relates to bug report ISXB-1243.
Changes made:
Note that this PR doesn't update other visualizers in a similar way. This will be handled separately unless requested.
Testing status & QA
Test visualisers with no, one and multiple devices connected to see that behavior makes sense.
Overall Product Risks
Small, its an example.
Comments to reviewers
Note that when having two gamepads, e.g. DualSense and Dualshock and disconnecting one, Gamepad.current will be null until the previously connected Gamepad is actuated. This relates to the current behavior of current on device removal (separate concern).
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.After merge: