Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Conversation

spacek531
Copy link

Hotfix for UserInputService bug where scrolling will revert UIS.MouseBehavior to Default. bfcf778 is the only intended commit.

spacek531 added 4 commits June 1, 2015 14:55
Keyboard input will now favor the most recent key pressed when opposing
direction keys are pressed. This mimics behavior of many FPS games.
using the scroll wheel sets UIS.MouseBehavior to Default, so I added a
check to OnMouseWheel that sets MouseBehavior back to LockPosition if
the user is panning. Also fixes the bug of releasing MB2 and mouse going
into Default while in first person.
When you scroll, UIS.MouseBehavior will revert to Default. This
re-applies the MouseBehavior so that rotating the camera is
uninterupted.
@spacek531
Copy link
Author

The bug is fixed, so closing the pull request.

@spacek531 spacek531 closed this Jun 26, 2015
@spacek531 spacek531 deleted the Zoom+Pan_Fix branch January 23, 2016 07:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant