Preserve previous joystick state across menu frames #12

Open
opened 2026-09-15 16:42:52 +00:00 by EIREXE · 0 comments
Owner

Severity: High

src/menus/input.rs:255-268 swaps previous joystick state into a local vector, then searches the now-empty resource instead of that local vector. Held analog directions are therefore repeatedly classified as JustPressed.

Fix: read from prev_joystick_states before rebuilding the current snapshot; test deadzone entry, hold, sign changes, and release.

Severity: High src/menus/input.rs:255-268 swaps previous joystick state into a local vector, then searches the now-empty resource instead of that local vector. Held analog directions are therefore repeatedly classified as JustPressed. Fix: read from prev_joystick_states before rebuilding the current snapshot; test deadzone entry, hold, sign changes, and release.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: EIREXE/shinespark#12