prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Add method to disable gamepad focus- Stage.cs #806

Closed optimo closed 1 month ago

optimo commented 1 month ago

This sets the element to null and also sets the enable to false

optimo commented 1 month ago

maybe I'm overlooking. UnfocusAll which points to SetKeyboardFocus(null). the code comments say that Removes the touch, keyboard, and scroll focused elements . But the code there seems intended only for keyboard-related focus.

maybe the correct PR would be moving these calls into the SetKeyboardFocus for the null case?