Skip to content

HookControl: Disable keyboard aiming while mouse is in use#2101

Open
manuq wants to merge 2 commits intomainfrom
fix-grappling-aiming
Open

HookControl: Disable keyboard aiming while mouse is in use#2101
manuq wants to merge 2 commits intomainfrom
fix-grappling-aiming

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Apr 2, 2026

Use a 3 seconds timeout to resume aiming with keyboard. This also happens to be the amount of seconds we keep the mouse cursor on screen in the MouseManager.

This fixes an error in which the mouse and keyboard are competing for the aiming direction, making the grappling hook very hard to use. Credits for this feedback goes to Heather Drolet who complained about this in a playtest.

MouseManager: Do not hardcode wait_time in code

For hiding the mouse. The timer is already configured to wait 3 seconds.

Use a 3 seconds timeout to resume aiming with keyboard. This also happens to be
the amount of seconds we keep the mouse cursor on screen in the MouseManager.

This fixes an error in which the mouse and keyboard are competing for the aiming
direction, making the grappling hook very hard to use. Credits for this feedback
goes to Heather Drolet who complained about this in a playtest.
@manuq manuq requested a review from a team as a code owner April 2, 2026 18:03
For hiding the mouse. The timer is already configured to wait 3 seconds.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/fix-grappling-aiming/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented Apr 2, 2026

With this: (the video starts aiming with keyboard, then I switch to mouse)

recording.webm

Without it, you can see how mouse and keyboard are competing:

recording.webm

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.

1 participant