Add mouse-based head tracking mod #154
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why?
Different input method compared to tracking with webcam, moves the head yaw and pitch based on mouse movement across screens.
How?
Builds on the Graphics Tablet mod to instead change the head position through the trackers global mod data. Screens can be selected from a multi-select item box that is added to the settings UI. Multiple screens selected just makes the "screen" larger for the calculations of where the head moves. Some people like to use one or two or three screens for their mouse movements to track. There's no necessary reason to use less than all screens but the option is there.
Mirroring also added to help those wanting to mirror their yaw and/or pitch movements.
Also fixed a small bug with the multi-select option for settings. It now properly calls when selection changes happen on a multi-select item box.
Defaults
By default, the center screen is used. The max yaw is 60deg, max pitch is 45deg. Mirroring is off.
Demo
See video (on Discord, too big for Github)