This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17307 - Investigate if double[] should be used for axes and buttons
Summary: Investigate if double[] should be used for axes and buttons
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Gamepad (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ted Mielczarek [:ted]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 14:04 UTC by Olli Pettay
Modified: 2012-06-04 20:42 UTC (History)
3 users (show)

See Also:


Attachments

Description Olli Pettay 2012-06-04 14:04:08 UTC
There shouldn't be any need to use float[].
Comment 1 Ted Mielczarek [:ted] 2012-06-04 16:52:29 UTC
I suspect this is just us being ignorant of WebIDL. I'm not sure if the extra precision matters much though, since on most platforms AFAICT the values we're dealing with are actually just signed 16-bit integers that we convert to floats for ease of use.
Comment 2 Olli Pettay 2012-06-04 16:54:53 UTC
I believe other specs have been moving away from floats to doubles.
Comment 3 Ted Mielczarek [:ted] 2012-06-04 20:42:19 UTC
http://dvcs.w3.org/hg/gamepad/rev/67ca83719804