Adding functionality to FlxJoystickManager to check if buttons were pressed on ANY gamepad.
Safety checks in FlxPhysState to prevent issues with threading.
Adding safety checks to prevent state switching issues in threaded builds.