misyltoad/HL2-GamepadUI

New "Use Defaults" button doesn't show up.

Bitl opened this issue · 1 comments

Bitl commented

Hi, I recently updated my version of GamepadUI to the latest version, which includes the Use Defaults button from #32.

However, when testing it, it didn't work on my end. I noticed that changing line 1749 from

if ( V_strncmp( m_Tabs[nActiveTab].pTabButton->GetName(), "Keyboard", 8 ) == 0 )

to

if (nActiveTab == 2)

seems to work fine. note, this means that the keyboard tab will have to be the third tab in order to function, which means gross gross bad hardcoding. Maybe some kind of proper tab identifier would be a better way to handle this in my implementation, but i digress.

Bitl commented

I must add that my solution to the issue is more or less a band aid