<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>OUYA android controller key layout file</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/227 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="227"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Copied from my OUYA's &lt;tt class="docutils literal"&gt;/system/usr/keylayout/Vendor_2836_Product_0001.kl&lt;/tt&gt;.&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/227/rev-raw/1881708277f843d659ff8cf97b3519800b68a2a9/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/227#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;# Copyright (C) 2011 The Android Open Source Project&#13;
#&#13;
# Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;);&#13;
# you may not use this file except in compliance with the License.&#13;
# You may obtain a copy of the License at&#13;
#&#13;
#      http://www.apache.org/licenses/LICENSE-2.0&#13;
#&#13;
# Unless required by applicable law or agreed to in writing, software&#13;
# distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,&#13;
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&#13;
# See the License for the specific language governing permissions and&#13;
# limitations under the License.&#13;
&#13;
#&#13;
# OUYA Game Controller&#13;
#&#13;
&#13;
key 0x130    BUTTON_A&#13;
key 0x133    BUTTON_B&#13;
key 0x131    BUTTON_X&#13;
key 0x132    BUTTON_Y&#13;
&#13;
# Button &amp;quot;LB&amp;quot; maps to BUTTON_L1.&#13;
key 0x134    BUTTON_L1&#13;
# Button &amp;quot;RB&amp;quot; maps to BUTTON_R1.&#13;
key 0x135    BUTTON_R1&#13;
&#13;
# These two keycodes are for click (press from above) on analog control sticks.&#13;
key 0x136    BUTTON_THUMBL&#13;
key 0x137    BUTTON_THUMBR&#13;
&#13;
# D-pad&#13;
key 0x138    DPAD_UP&#13;
key 0x139    DPAD_DOWN&#13;
key 0x13a    DPAD_LEFT&#13;
key 0x13b    DPAD_RIGHT&#13;
&#13;
# Power and Home Key&#13;
key 0x13e    HOME      #Short Press&#13;
key 0x13f    HOME ALT  #Long Press&#13;
&#13;
# Left (0x00, 0x01) and right (0x03, 0x04) analog control stick.&#13;
# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.&#13;
# This confuses applications that rely on the flat value because the joystick actually&#13;
# settles in a flat range of +/- 4096 or so.&#13;
axis 0x00 X flat 4096&#13;
axis 0x01 Y flat 4096&#13;
axis 0x03 Z flat 4096&#13;
axis 0x04 RZ flat 4096&#13;
&#13;
# Triggers.&#13;
# (Shoulder trigger buttons marked with &amp;quot;LT&amp;quot; and &amp;quot;RT&amp;quot; are analog.&#13;
# Each axis has range from 0 to 255.)&#13;
axis 0x02 LTRIGGER&#13;
axis 0x05 RTRIGGER&#13;
key 0x13c    BUTTON_L2&#13;
key 0x13d    BUTTON_R2&#13;
&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/227/rev-raw/1881708277f843d659ff8cf97b3519800b68a2a9/Vendor_2836_Product_0001.kl.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/227#Vendor_2836_Product_0001.kl.txt"&gt;Vendor_2836_Product_0001.kl.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
