Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamepad Input with CommonUI #67

Open
arajar opened this issue May 13, 2022 · 2 comments
Open

Gamepad Input with CommonUI #67

arajar opened this issue May 13, 2022 · 2 comments

Comments

@arajar
Copy link

arajar commented May 13, 2022

It seems that CommonUI is using a fake analog cursor to handle the gamepad actions. In CommonUI, the Gamepad Facebutton down is treated as an EKeys::Virtual_Accept that later down the input system, is translated to a LeftMouse button action.

Everything seems to work fine except when you use the gamepad face button down to activate a button, in that case, the input seems to be lost and passes through the slate imgui widget to the viewport, losing focus on the Imgui window.

Do you know if support for this behavior can be added?

@MattClarkeTTS
Copy link

I have just bumped into this exact issue. Did you manage to find a solution?

@arajar
Copy link
Author

arajar commented Sep 20, 2022

Hey @MattClarkeTTS, I didn't find a good solution, in my case as I was in a rush to finish some stuff, I ended up switching ImGuiNavInput_Activate and ImGuiNavInput_Menu action buttons in the SetGamepadNavigationKey method inside ImGuiInteroperability.cpp

The solution is not ideal but I can live with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants