hashblen / HSRAchievementScanner

Achievement Scanner for Honkai: Star Rail
10 stars 1 forks source link

update wake_up call to reset the index cursor #2

Open PixelTMT opened 5 months ago

PixelTMT commented 5 months ago

if user controller cursor is above 4th ROW of the first tab it will work normally end up getting 22/22 achieve.

if user controller cursor is below 5th ROW of the first tab it will skip all the above row end up getting 21/22 achieve or less. (this happen if user manually control using controller to go down or the program is scanning but cancel mid-way AND using mouse & keyboard to scroll back at top, it won`t reset the controller cursor index back to TOP)

my current solution is to switch tabs to reset the cursor index back to TOP.

hashblen commented 4 months ago

I would actually prefer if wake_up was unmodified, because it is the point where HSR will detect and load the gamepad, so the input might be ingored. You might just add underneath this line in src/utils/navigation.py self._nav.change_tab() and self._nav.change_tab_prev()