Can't press button with Joypad 0 when paused?

Godot Version

4.4.1 stable

Question

Hi! I have a pause screen with texture buttons that grab focus. I’ve been happily using keyboard input until now—spacebar triggers each button’s _on_pressed signal, and I handle from there.

Now I’m trying to get controller input working, and I expected Joypad Button 0 to press each button but it doesn’t (same setup works as expected on other screens though).

The buttons are set to inherit process mode, and so on up to the screen root which is set to process when paused. Any idea what I’m missing?

Joypad Button 0 is not mapped to anything by default. Did you put it in the Input Map yourself? Spacebar is mapped to ui_accept and ui_select by default.

1 Like

Yes, thanks for calling that out—It was added to ui_accept and ui_select. Works great on the other screens.

Does it work on the pause menu if you don’t pause the game?

1 Like

I hadn’t thought of that, thanks. Just tried. Didn’t work. Game was definitely running behind it, and responding to the controller.

—— UPDATE ——

There’s pause weirdness; it doesn’t like physics either. I replaced all the key and joypad control input just on the Pause screen, and manhandled everything with InputEventJoypadButton events.

1 Like