<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21388</bug_id>
          
          <creation_ts>2013-03-25 12:51:48 +0000</creation_ts>
          <short_desc>handling of analog vs. digital buttons</short_desc>
          <delta_ts>2013-10-11 16:28:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Gamepad</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ted Mielczarek [:ted]">ted</reporter>
          <assigned_to name="Ted Mielczarek [:ted]">ted</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>scott.w3bugzilla</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84920</commentid>
    <comment_count>0</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2013-03-25 12:51:48 +0000</bug_when>
    <thetext>Currently the spec represents buttons as an array of double values, to handle analog buttons (like the trigger buttons on most modern gamepads). However, I&apos;m starting to think this might not be sufficient. The Playstation 3 controller, for example, has pressure-sensitive buttons which provide both a digital (pressed/not pressed) and an analog (how hard is it being pressed) value. It seems like it would be unfortunate to lose part of that data.

Should we spec button values to include both a boolean and a double value?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94561</commentid>
    <comment_count>1</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2013-10-10 18:14:21 +0000</bug_when>
    <thetext>The recently-unveiled Gamepad framework in iOS 7/OS X 10.9 exposes buttons as a pressed+value pair:
https://developer.apple.com/library/ios/documentation/GameController/Reference/GCControllerButtonInput_Ref/Reference/Reference.html#//apple_ref/doc/c_ref/GCControllerButtonInput</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94590</commentid>
    <comment_count>2</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2013-10-11 16:28:52 +0000</bug_when>
    <thetext>I changed the buttons[] attribute to be of type GamepadButton, which has both pressed and value attributes:
https://dvcs.w3.org/hg/gamepad/rev/a37c10a031b4

This is the only breaking change I wanted to make to the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>