You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if you play and suddenly you pull back and the wire of your controller gets unplugged? The game doesn't pause. It should.
This is often a problem with problematic controllers (I remember a ps4 one) which have a very "sensitive" wire plug.
Coding Implementation
string[] gamepadNames = Input.GetJoystickNames();
if (gamepadNames.Length == 0)
//Give warning
In case controller isnt detected normally (e.g. television controllers also count), make a class where in each Update() checks for each button, and once pressed, destroys itself.
The text was updated successfully, but these errors were encountered:
What if you play and suddenly you pull back and the wire of your controller gets unplugged? The game doesn't pause. It should.
This is often a problem with problematic controllers (I remember a ps4 one) which have a very "sensitive" wire plug.
Coding Implementation
In case controller isnt detected normally (e.g. television controllers also count), make a class where in each
Update()
checks for each button, and once pressed, destroys itself.The text was updated successfully, but these errors were encountered: