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
Then, instead of using ``Input.is_action_pressed(action)``, use
266
-
``Focus.input_is_action_pressed(action)`` where ``action`` is the name of
267
-
the input action. Also, instead of using ``event.is_action_pressed(action)``,
268
-
use ``Focus.event_is_action_pressed(event, action)`` where ``event`` is an
269
-
InputEvent reference and ``action`` is the name of the input action.
233
+
If you wish to ignore controller input events when the project isn't focused,
234
+
set :ref:`ProjectSettings.input_devices/joypads/ignore_joypad_on_unfocused_application<class_ProjectSettings_property_input_devices/joypads/ignore_joypad_on_unfocused_application>` to ``true``.
235
+
Alternatively, you can also set :ref:`Input.ignore_joypad_on_unfocused_application <class_Input_property_ignore_joypad_on_unfocused_application>` to ``true``.
0 commit comments