-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify DInput and touch analog to not clamp to a circle. Tries to fix #…
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fa335c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
peak range for corners is still far from the full square range,
seeing peak values of 104 - 106 on each axes when cornered.
Seemingly, all this hack has done is amplified the range values causing the stick to believe it is fully moved in any given direction before its even close to the physical limit of the pad.
fa335c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed that's what it does, which is not really ideal but still seems to have fixed movements in those games that required it to go far out in the corners - or do you still have games with issues with that?
Can find a nicer "squaring the circle" method later that doesn't suffer from the "sudden max" problem that you mention.
fa335c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sin(atan) in that code example is to ensure the scaling is adjusted to angular input without boosting the cardinal inputs i assume.
I didn't do too well in math though, so i may be wrong.