Skip to content

Conversation

Copy link

Copilot AI commented Oct 29, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Centering control stick on input produces unintended movement</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
On a real game controller, your thumb movements across the stick do not necessarily transfer to (x,y) updates: that is, you can move your finger independent or across the stick "center" without moving it. For example, in halo to strafe left you may place your thumb on the far right of the stick and push the stick left. This is a problem because clicking/dragging the control stick may produce unintended input, especially in situations where timing or feathering is essential, or in 3D environments. Clicking the exact center of the stick with a mouse pointer to avoid this is almost impossible.

Describe the solution you'd like
Essentially instead of aligning the stick to the center for the user, take the derivative/slope/difference of x and y. This will allow the stick to move relative to movement, not the "absolute" position in the control field itself. As long as the stick itself is clicked it can be moved with respect to where it was clicked initially. I believe the simplified solution for this is simply x-y.

Describe alternatives you've considered
Taking full derivative/ point slope formula. Or moving the cursor instead of the stick to center, which wont translate to unintentional input.</issue_description>

<agent_instructions>Review the comments and put together a PR</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@elmarti @behoyh i'd love to help, do you have any articles I could look at to understand this better? (as a layman 😅)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@elmarti
Copy link
Owner

elmarti commented Oct 29, 2025

@copilot carry out the changes requested in the PR

@elmarti
Copy link
Owner

elmarti commented Oct 29, 2025

attempted quick win 😅

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.

Centering control stick on input produces unintended movement

2 participants