ID:2381254
 
Resolved
Mapping of gamepad axes was done using incorrect math, resulting in a much wider dead zone and maximum extents of ±0.375. Raw values were correct.
BYOND Version:512.1434
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 67.0.3396.87
Applies to:Dream Seeker
Status: Resolved (512.1435)

This issue has been resolved.
Descriptive Problem Summary:

Gamepad axes consistently spit out the wrong value for "[[x]] [[y]]" arguments after they have been mucked with to deal with deadzones in GamepadLeftAnalog and GamepadRightAnalog verbs. The raw values appear to work fine, showing a range of -1 to 1. Unfortunately, the normalized ranges appear to be set up wrong.

Gamepad axes show ranges from -0.5ish to 0.5, which seems to indicate that the gamepads are normalizing across the full range of the stick rather than from rest to range.

Test project included so you can diagnose and test the fix:

http://files.byondhome.com/Ter13/testworld_src.zip
Lummox JR resolved issue with message:
Mapping of gamepad axes was done using incorrect math, resulting in a much wider dead zone and maximum extents of ±0.375. Raw values were correct.