|
| 1 | +# Copyright (C) 2016 The Android Open Source Project |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# |
| 16 | +# Old Logitech WingMan RumblePad |
| 17 | +# |
| 18 | + |
| 19 | +# key 103 DPAD_UP |
| 20 | +# key 105 DPAD_LEFT |
| 21 | +# key 106 DPAD_RIGHT |
| 22 | +# key 108 DPAD_DOWN |
| 23 | + |
| 24 | + |
| 25 | +key 288 BUTTON_A |
| 26 | +key 289 BUTTON_B |
| 27 | +key 291 BUTTON_X |
| 28 | +key 292 BUTTON_Y |
| 29 | +key 294 BUTTON_L1 |
| 30 | +key 295 BUTTON_R1 |
| 31 | +key 297 MENU # Normally: BUTTON_L2 |
| 32 | +key 298 HOME # Normally: BUTTON_R2 |
| 33 | +key 296 BUTTON_START |
| 34 | +key 290 BUTTON_SELECT # Normally: BUTTON_C |
| 35 | +key 293 ESCAPE # Normally: BUTTON_Z |
| 36 | + |
| 37 | +# Left and right stick. |
| 38 | +# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd. |
| 39 | +# This confuses applications that rely on the flat value because the joystick actually |
| 40 | +# settles in a flat range of +/- 4096 or so. |
| 41 | +axis 0x00 X flat 4096 # OK |
| 42 | +axis 0x01 Y flat 4096 # OK |
| 43 | +axis 0x05 Z flat 4096 # OK |
| 44 | +axis 0x06 RZ flat 4096 # OK |
| 45 | + |
| 46 | +axis 0x02 THROTTLE flat 4096 # OK |
| 47 | + |
| 48 | + |
| 49 | +# This actually controls the DPAD |
| 50 | +axis 0x10 HAT_X |
| 51 | +axis 0x11 HAT_Y |
0 commit comments