{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"OUYA android controller key layout file","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/227 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"227\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Copied from my OUYA's <tt class=\"docutils literal\">\/system\/usr\/keylayout\/Vendor_2836_Product_0001.kl<\/tt>.<\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/227\/rev-raw\/1881708277f843d659ff8cf97b3519800b68a2a9\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/227#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\"># Copyright (C) 2011 The Android Open Source Project\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n#\r\n#      http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n#\r\n# Unless required by applicable law or agreed to in writing, software\r\n# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\r\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n# See the License for the specific language governing permissions and\r\n# limitations under the License.\r\n\r\n#\r\n# OUYA Game Controller\r\n#\r\n\r\nkey 0x130    BUTTON_A\r\nkey 0x133    BUTTON_B\r\nkey 0x131    BUTTON_X\r\nkey 0x132    BUTTON_Y\r\n\r\n# Button &quot;LB&quot; maps to BUTTON_L1.\r\nkey 0x134    BUTTON_L1\r\n# Button &quot;RB&quot; maps to BUTTON_R1.\r\nkey 0x135    BUTTON_R1\r\n\r\n# These two keycodes are for click (press from above) on analog control sticks.\r\nkey 0x136    BUTTON_THUMBL\r\nkey 0x137    BUTTON_THUMBR\r\n\r\n# D-pad\r\nkey 0x138    DPAD_UP\r\nkey 0x139    DPAD_DOWN\r\nkey 0x13a    DPAD_LEFT\r\nkey 0x13b    DPAD_RIGHT\r\n\r\n# Power and Home Key\r\nkey 0x13e    HOME      #Short Press\r\nkey 0x13f    HOME ALT  #Long Press\r\n\r\n# Left (0x00, 0x01) and right (0x03, 0x04) analog control stick.\r\n# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.\r\n# This confuses applications that rely on the flat value because the joystick actually\r\n# settles in a flat range of +\/- 4096 or so.\r\naxis 0x00 X flat 4096\r\naxis 0x01 Y flat 4096\r\naxis 0x03 Z flat 4096\r\naxis 0x04 RZ flat 4096\r\n\r\n# Triggers.\r\n# (Shoulder trigger buttons marked with &quot;LT&quot; and &quot;RT&quot; are analog.\r\n# Each axis has range from 0 to 255.)\r\naxis 0x02 LTRIGGER\r\naxis 0x05 RTRIGGER\r\nkey 0x13c    BUTTON_L2\r\nkey 0x13d    BUTTON_R2\r\n<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/227\/rev-raw\/1881708277f843d659ff8cf97b3519800b68a2a9\/Vendor_2836_Product_0001.kl.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/227#Vendor_2836_Product_0001.kl.txt\">Vendor_2836_Product_0001.kl.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
