Skip to content

Controller navigation: can't swap to Menu Layer when there's only generic decorations (e.g. no menu) #5463

@sacchin-conffx

Description

@sacchin-conffx

Version/Branch of Dear ImGui:
Version: 1.88
Branch: docking (based on 9cd9c2e)

Back-end/Renderer/Compiler/OS
Back-ends: Custom
Operating System / Platform: PS4/PS5

My Issue/Question:
On console platforms (testing on PS4/PS5), pressing Square to toggle between the Main and Menu navigation layers does not work. Instead, it stays on the Main layer and can't swap to the Menu layer. After looking into it, I found that NavLayersActiveMaskNext is reset after RenderWindowTitleBarContents is called (collapse button) which clears the ImGuiNavLayer_Menu flag. My solution was to just move the below code (in the screenshot) to before RenderWindowTitleBarContents and it worked again.

Screenshots/Video
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnavkeyboard/gamepad navigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions