Skip to content

Fix Wii Remote off-screen direction: clamp IR position to screen edge on screen-out#156

Closed
Copilot wants to merge 2 commits intomasterfrom
copilot/update-game-mapping-left-right
Closed

Fix Wii Remote off-screen direction: clamp IR position to screen edge on screen-out#156
Copilot wants to merge 2 commits intomasterfrom
copilot/update-game-mapping-left-right

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 3, 2026

  • Identify root cause: finalX/finalY declared inside the while loop reset to 0.5 every event; when IR dots go invisible (1023) the off-screen position was always centre, not the actual direction
  • Move finalX/finalY to outer scope (before the while loop) so they persist across events, retaining the last-computed direction when the IR dots go fully invisible

@dazzaXx
Copy link
Copy Markdown
Owner

dazzaXx commented Apr 3, 2026

@copilot That doesnt seem to work as intended, if TC4 has to differentiate between left screen out and right screen out, then surely either or would be pressing different "keys"

…nvisible state keeps last direction

Agent-Logs-Url: https://github.com/dazzaXx/ModernJVS/sessions/7f5f8e50-3e0b-47ce-9288-20bfc3e77355

Co-authored-by: dazzaXx <48131734+dazzaXx@users.noreply.github.com>
Copilot stopped work on behalf of dazzaXx due to an error April 3, 2026 17:43
Copilot stopped work on behalf of dazzaXx due to an error April 3, 2026 17:56
@dazzaXx dazzaXx closed this Apr 3, 2026
@dazzaXx dazzaXx deleted the copilot/update-game-mapping-left-right branch April 3, 2026 17:57
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

Successfully merging this pull request may close these issues.

2 participants