New issue
Advanced search Search tips

Issue 739803 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature


Show other hotlists

Hotlists containing this issue:
Gamepad


Sign in to add a comment

Gamepad api ignoring Windows calibration settings

Reported by ferrytin...@gmail.com, Jul 6 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Open the attached file with an calibrated joystick plugged in
2. Observe that the recorded readings match the uncalibrated ones, the ranges reported by chromium range from -0.96 to 0.3, with the middle point on -0.3
3. 

What is the expected behavior?
I expect chromium to follow any gamepad calibration configured into windows, reporting, as the GamePad API requires, values mapped to a range between -1.0 to 1.0 with the middle point on 0.0

What went wrong?
Instead of following the correct -1.0 to 1.0 mapped values as reported as after the windows calibration, but instead it reports the -0.96 to 0.3 values as windows received it before it got calibrated

Did this work before? No 

Does this work in other browsers? No
 Edge: No gamepad api support
Firefox: Also ignores Windows calibration

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 10.0
Flash Version: 

Windows has 2 options for getting the range of game controller axis, raw and non raw, for most implementations the raw versions are better suited, but they completely bypass the windows calibration settings, and this isn't noticed by many developers, as most never devices come properly "hardware" calibrated, instead of requiring "software" calibration.
 
gamepad.html
983 bytes View Download
Cc: pnangunoori@chromium.org
Labels: Needs-Feedback
Tested on latest Chrome stable  #59.0.3071.115 and Canary 61.0.3161.0 unable to reproduce the issue on Windows 10. Attached is the screencast for the reference.

Steps Followed:
1. Download and open the HTML file attached to the bug.
2. Connect gamepad to the test machine.
3. Calibrate the keys and observe the values for the respective controller axis.

Observations: Values noticed for the controller axis are in the range of -1 to 1.

@Reporter -- Could you please try by removing the extensions and creating a new profile to verify if the issue still persists.

Please let us know if we have missed anything.

Thanks in advance.
739803.webm
3.3 MB View Download
Labels: Needs-Milestone

Comment 3 by scheib@chromium.org, Sep 13 2017

Original poster:  What gamepad did you use? 

Comment 4 by scheib@chromium.org, Sep 13 2017

Labels: -Type-Bug -Pri-2 Pri-3 Type-Feature
Status: Available (was: Unconfirmed)
mattreynolds verified that Chrome implementation doesn't consider calibration. 
 Considering this a feature request.  Setting expectations, it's unlikely this will be taken on by Google staff any time soon.  Patches welcome, of course.
Project Member

Comment 5 by sheriffbot@chromium.org, Sep 14

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment