<commit_before>---
feature_name: Input Device Capabilities
chrome_version: 47
feature_id: 5681847971348480
---

<h3>Background</h3>
<p>
  The Input Device Capabilities API provides information about the capabilities of the physical
  device responsible for generating an event.
</p>
<p>
  This sample illustrates using <code>UIEvent.sourceCapabilities</code> (via a <code>click</code>
  <code>UIEvent</code>) to obtain the capabilities of the device that triggered the click, and
  then checks the <code>firesTouchEvents</code> property to determine whether that device can also
  create a <a href="http://www.w3.org/TR/touch-events/#touchevent-interface"><code>TouchEvent</code></a>.
</p>
<p><commit_msg>Review feedback<commit_after>---
feature_name: Input Device Capabilities
chrome_version: 47
feature_id: 5681847971348480
---

<h3>Background</h3>
<p>
  The <a href="http://rbyers.github.io/InputDevice/index.html">Input Device Capabilities API</a>
  provides information about the capabilities of the physical device responsible for generating an
  event.
</p>
<p>
  This sample illustrates using <code>UIEvent.sourceCapabilities</code> (via a <code>click</code>
  <code>UIEvent</code>) to obtain the capabilities of the device that triggered the click, and
  then checks the <code>firesTouchEvents</code> property to determine whether that device can also
  create a <a href="http://www.w3.org/TR/touch-events/#touchevent-interface"><code>TouchEvent</code></a>.
  Developers should note that this doesn't necessarily mean the device is a touch screen. For
  example, stylus and mouse devices typically generate <code>TouchEvent</code>s on mobile browsers.
</p>
<p>
{'fraction_non_alphanumeric': 0.10964649490713002, 'fraction_numerical': 0.025164769322947873, 'mean_word_length': 5.231343283582089, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '349131', 'n_tokens_mistral': 514, 'n_tokens_neox': 483, 'n_words': 169}