pax_global_header 0000666 0000000 0000000 00000000064 15160640572 0014520 g ustar 00root root 0000000 0000000 52 comment=0b9d5cc3e05bdcfcdbb85fa7f0f0026cd01efa06
atar-axis-xpadneo-0b9d5cc/ 0000775 0000000 0000000 00000000000 15160640572 0015540 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/.clangd 0000664 0000000 0000000 00000000463 15160640572 0016774 0 ustar 00root root 0000000 0000000 # yaml-language-server: $schema=https://json.schemastore.org/clangd.json
CompileFlags:
Add:
- "-DVERSION=clangd-checker"
Remove:
- "-fno-allow-store-data-races"
- "-fzero-init-padding-bits=all"
- "-mpreferred-stack-boundary=3"
- "-fmin-function-alignment=16"
- "-mrecord-mcount"
atar-axis-xpadneo-0b9d5cc/.codeclimate.yml 0000664 0000000 0000000 00000000151 15160640572 0020607 0 ustar 00root root 0000000 0000000 engines:
cppcheck:
enabled: true
checks:
ConfigurationNotChecked:
enabled: false
atar-axis-xpadneo-0b9d5cc/.editorconfig 0000664 0000000 0000000 00000000254 15160640572 0020216 0 ustar 00root root 0000000 0000000 root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[Makefile*]
indent_style = tab
indent_size = 8
[*.{c,h}]
indent_style = tab
indent_size = 4
atar-axis-xpadneo-0b9d5cc/.github/ 0000775 0000000 0000000 00000000000 15160640572 0017100 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 15160640572 0021263 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/.github/ISSUE_TEMPLATE/bug_report.md 0000664 0000000 0000000 00000012226 15160640572 0023760 0 ustar 00root root 0000000 0000000 ---
name: Bug report
about: Report a bug
---
## Version of xpadneo
## Controller Model
- [ ] Xbox One S controller
- [ ] Xbox Elite 2 controller
- [ ] Xbox Series X|S controller
- [ ] Other:
### Connection mode
- [ ] Bluetooth connection
- [ ] USB cable (not yet supported by xpadneo)
- [ ] Xbox Dongle connection (not yet supported by xpadneo)
## Installed Software
- [ ] Anti-Micro (may affect button mappings)
- [ ] OpenRGB (may mess up mappings and rumble stability)
- [ ] Steam Input (enabled by default via Steam Desktop client)
- [ ] Steam Link (usually via Raspberry Pi or other micro computers)
- [ ] devices with QMK firmware (may affect udev rules, similar to OpenRGB)
- [ ] netstick (shares input devices via network similar to Steam Link)
- [ ] xboxdrv (user-space gamepad driver, not used for Bluetooth)
- [ ] xone (kernel-space gamepad driver for using USB or the Xbox Dongle)
- [ ] xow (obsolete user-space driver for using the wireless Xbox Dongle)
## Protocol Information
Please help us identify at which layer the problem can be found if you want
to report mapping errors or if the controller fails to be detected:
- [ ] Steam Proton games are having issues
- [ ] Steam Linux-native games are having issues
- [ ] I don't use Steam or did not try
- [ ] games running through Lutris, wine and/or Bottles are having issues
- [ ] I don't use Lutris, Bottles, wine or did not try
- [ ] Linux-native games are having issues
- [ ] I don't use native games or did not try
- [ ] Other software is having issues (describe software and issues below)
- [ ] Running `evtest` is showing issues (describe the issues below)
- Keep in mind that `BTN_NORTH` and `BTN_WEST` are intentionally swapped
- [ ] Running `jstest` is showing issues (describe the issues below)
- [ ] I don't have this tool or don't know how to use it
- [ ] Running `gamepad-tool` is showing issues (post console output below)
- [ ] I don't have this tool
Please describe how it is failing below in the next sections.
## Severity / Impact
- [ ] I've read the docs and the bug reporting instructions
- [ ] I've applied the latest firmware update to the controller
- [ ] I've tried disabling or running without above mentioned software
- [ ] It does not work at all
- [ ] It used to work in a previous version
- [ ] It mostly works but sometimes it doesn't
- [ ] I found a work-around
- [ ] I probably didn't figure it all out but it's too early to give up
- [ ] I don't know how to ...
- [ ] It's too complicated
- [ ] Fantastic work but ...
- [ ] I can code and I want to help
## Describe the Bug
## Steps to Reproduce
## Expected Behavior
## Screenshots / GIFs / Videos
## System Information
```console
# uname -a
```
```console
# dmesg -H | egrep -i 'bt|bluetooth|hci|l2cap|att|xbox|045e|hid|input|xpadneo' | tee xpadneo-dmesg.txt
```
## Controller and Bluetooth Information
## Additional Context
atar-axis-xpadneo-0b9d5cc/.github/ISSUE_TEMPLATE/feature_request.md 0000664 0000000 0000000 00000002420 15160640572 0025006 0 ustar 00root root 0000000 0000000 ---
name: Feature request
about: Suggest an idea for this project
---
## Version of xpadneo
## Controller Model
- [ ] Xbox One S controller
- [ ] Xbox Elite 2 controller
- [ ] Xbox Series X|S controller
- [ ] Other:
### Connection mode
- [ ] Bluetooth connection
- [ ] USB cable (not yet supported)
- [ ] Xbox Dongle connection (not yet supported)
## Describe your feature request
- [ ] I'd like to see support for a specific model
- [ ] I'd like to see support for a specific hardware feature
- [ ] I'd like to see support for a specific software feature
**Is your feature request related to a problem? Please describe.**
**Describe the solution you'd like**
**Describe alternatives you've considered**
**Additional context**
atar-axis-xpadneo-0b9d5cc/.github/pull_request_template.md 0000664 0000000 0000000 00000000473 15160640572 0024045 0 ustar 00root root 0000000 0000000
- [ ] I agree that my contribution may be distributed under GPL-2.0-only (in addition to the project's primary license)
atar-axis-xpadneo-0b9d5cc/.github/workflows/ 0000775 0000000 0000000 00000000000 15160640572 0021135 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/.github/workflows/checkpatch.yml 0000664 0000000 0000000 00000001142 15160640572 0023753 0 ustar 00root root 0000000 0000000 name: Kernel Coding Style Check
on: [pull_request, push]
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download checkpatch.pl
run: wget https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/scripts/checkpatch.pl
- name: Run checkpatch.pl
run: perl checkpatch.pl --ignore BAD_SIGN_OFF,FILE_PATH_CHANGES,FUNCTION_ARGUMENTS,FSF_MAILING_ADDRESS,LINUX_VERSION_CODE,SPLIT_STRING --no-tree <(git format-patch -U10 --stdout origin/master)
atar-axis-xpadneo-0b9d5cc/.github/workflows/stale.yml 0000664 0000000 0000000 00000003263 15160640572 0022774 0 ustar 00root root 0000000 0000000 # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests
on:
schedule:
- cron: '20 4 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: -1
stale-issue-message: 'This issue appears to be stale. We will automatically close it within 30 days of no more activity recorded.'
stale-pr-message: 'This pull request appear to be stale. We will automatically close it within 60 days of no more activity recorded.'
stale-issue-label: '1 | state: waiting for reporter feedback'
stale-pr-label: '1 | state: waiting for reporter feedback'
days-before-close: 60
days-before-issue-close: 30
close-issue-message: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
close-pr-message: >
This pull request has been automatically closed because there has been no
activity from the original author. Please reach out if you have or find the
answers we need so that we can investigate further.
atar-axis-xpadneo-0b9d5cc/.gitignore 0000664 0000000 0000000 00000000576 15160640572 0017540 0 ustar 00root root 0000000 0000000 *~
/.cache
/.vscode
/.zed
/compile_commands.json
/misc/examples/**/*.o
/misc/examples/c_directional_rumble_test/direction_rumble_test
/misc/examples/c_hidraw/hidraw
docs/_site/**
docs/Gemfile.lock
hid-xpadneo/**/*.mod*
hid-xpadneo/**/*.o*
hid-xpadneo/dkms.conf
hid-xpadneo/src/*.ko*
hid-xpadneo/src/*.symvers*
#FIXME(kakra) remove after source file split
hid-xpadneo/src/xpadneo.c
atar-axis-xpadneo-0b9d5cc/.indent.pro 0000664 0000000 0000000 00000000126 15160640572 0017620 0 ustar 00root root 0000000 0000000 -npro -kr -i8 -ts8 -sob -l100 -ss -ncs -cp1
-il0
-npsl
-T__s32
-Ts32
-Tu16
-Tu32
-Tu8
atar-axis-xpadneo-0b9d5cc/.shellcheckrc 0000664 0000000 0000000 00000000026 15160640572 0020171 0 ustar 00root root 0000000 0000000 external-sources=true
atar-axis-xpadneo-0b9d5cc/CONTRIBUTING.md 0000664 0000000 0000000 00000001574 15160640572 0020000 0 ustar 00root root 0000000 0000000
# Contributing and licensing
xpadneo uses file-level licensing via SPDX identifiers.
## License scope
- Kernel driver code (files linked into the kernel module, especially `hid-xpadneo/src/**`) is licensed under
**GPL-2.0-only**.
- Non-driver content (for example documentation, examples, tooling, and helper scripts) is generally licensed under
**GPL-3.0-or-later**, unless a file states otherwise.
## Your contribution
By submitting a contribution, you agree that your changes are licensed under the license specified by the SPDX header
in each file you modify.
If you add a new file, you must add an SPDX license identifier at the top of that file and choose the license
appropriate for its scope.
## Reference
See `LICENSE.md` and the full license texts in:
- `LICENSES/LICENSE.gpl-2.0.txt`
- `LICENSES/LICENSE.gpl-3.0.txt`
atar-axis-xpadneo-0b9d5cc/LICENSE.md 0000664 0000000 0000000 00000003040 15160640572 0017141 0 ustar 00root root 0000000 0000000
# Licensing
This repository contains components under different licenses.
## Summary
- Kernel driver code (linked into the kernel module), especially files under:
- `hid-xpadneo/src/**`
is licensed under **GPL-2.0-only**.
- Non-driver content is generally GPL-3.0-or-later **unless file headers specify otherwise**. This includes:
- Documentation (`docs/**`)
- Examples (`examples/**`)
- Tooling and helper scripts (`tools/**`, `scripts/**`)
## Canonical license texts
The full license texts are provided in:
- [GPL-2.0-only](LICENSES/LICENSE.gpl-2.0.txt)
- [GPL-3.0-or-later](LICENSES/LICENSE.gpl-3.0.txt)
## File-level license identifiers (SPDX)
This project uses SPDX license identifiers in file headers.
- For C / header files:
- `// SPDX-License-Identifier: GPL-2.0-only`
- or `// SPDX-License-Identifier: GPL-3.0-or-later`
- For Markdown files:
- ``
The SPDX identifier in each file is the authoritative license marker for that file.
## Notes on scope
The GPL-2.0-only scope is intentionally limited to code that is part of the kernel module.
Documentation and other non-module assets are out of that scope and can remain GPL-3.0-or-later.
## Contributor guidance
By submitting contributions, you agree that your changes are licensed under the license indicated by the SPDX header
of the file(s) you modify.
If a new file is added, include an SPDX license identifier at the top of the file and choose the appropriate license
for its scope.
atar-axis-xpadneo-0b9d5cc/LICENSES/ 0000775 0000000 0000000 00000000000 15160640572 0016745 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/LICENSES/LICENSE.gpl-2.0.txt 0000664 0000000 0000000 00000043100 15160640572 0021644 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, see .
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Moe Ghoul, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
atar-axis-xpadneo-0b9d5cc/LICENSES/LICENSE.gpl-3.0.txt 0000664 0000000 0000000 00000104513 15160640572 0021653 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
atar-axis-xpadneo-0b9d5cc/Makefile 0000664 0000000 0000000 00000005731 15160640572 0017206 0 ustar 00root root 0000000 0000000 ETC_PREFIX ?= /etc
DOC_PREFIX ?= /usr/share/doc/xpadneo
META_PREFIX ?= /usr/share/metainfo
MODPROBE_CONFS := xpadneo.conf
UDEV_RULES := 60-xpadneo.rules 70-xpadneo-disable-hidraw.rules
DOC_SRCS := NEWS.md $(wildcard docs/[0-9A-Z]*.md)
DOCS := $(notdir $(DOC_SRCS))
ifeq ($(PREFIX),)
DKMS ?= dkms
else
$(warning Installing to prefix, dkms commands will not be run!)
DKMS ?= : SKIPPING dkms
endif
ifeq ($(PREFIX),)
UDEVADM ?= udevadm
else
$(warning Installing to prefix, udevadm commands will not be run!)
UDEVADM ?= : SKIPPING udevadm
endif
all: build
help:
@echo "Targets:"
@echo "help This help"
@echo "build Prepare the package for DKMS deployment"
@echo "clangd-lsp Generate compile_commands.json for clangd (requires bear)"
@echo "install Install the package, documentation and DKMS source code"
@echo "uninstall Uninstall the package, documentation and DKMS source code"
@echo "install-all Install everything including optional targets"
@echo
@echo "Optional targets:"
@echo "install-metainfo Install appstream metainfo"
@echo
@echo "Variables:"
@echo "PREFIX Install files into this prefix"
@echo "DOC_PREFIX Install doc files relative to the prefix (defaults to /usr/share/doc/xpadneo)"
@echo "ETC_PREFIX Install etc files relative to the prefix (defaults to /etc)"
@echo "META_PREFIX Install metainfo files relative to the prefix (defaults to /usr/share/metainfo)"
@echo
@echo "Using PREFIX requires handling dkms commands in your package script."
.PHONY: build clangd-lsp install uninstall install-all install-metainfo help
.INTERMEDIATE: VERSION
VERSION:
{ [ -n "$(VERSION)" ] && echo $(VERSION) || git describe --tags --dirty; } >$@
build: VERSION
$(MAKE) VERSION="$(shell cat VERSION)" -C hid-xpadneo dkms.conf
clangd-lsp: compile_commands.json
install-all: install install-metainfo
install: build
mkdir -p $(PREFIX)$(ETC_PREFIX)/modprobe.d $(PREFIX)$(ETC_PREFIX)/udev/rules.d $(PREFIX)$(DOC_PREFIX)
install -D -m 0644 -t $(PREFIX)$(ETC_PREFIX)/modprobe.d $(MODPROBE_CONFS:%=hid-xpadneo/etc-modprobe.d/%)
install -D -m 0644 -t $(PREFIX)$(ETC_PREFIX)/udev/rules.d $(UDEV_RULES:%=hid-xpadneo/etc-udev-rules.d/%)
install -D -m 0644 -t $(PREFIX)$(DOC_PREFIX) $(DOC_SRCS)
$(UDEVADM) control --reload
$(DKMS) add hid-xpadneo
install-metainfo:
install -D -m 0644 -t $(PREFIX)$(META_PREFIX) xpadneo.metainfo.xml
uninstall: VERSION
$(DKMS) remove "hid-xpadneo/$(shell cat VERSION)" --all || echo "dkms: remove failed: ignored"
rm -Rf "$(PREFIX)/usr/src/hid-xpadneo-$(shell cat VERSION)"
rm -f $(DOCS:%=$(PREFIX)$(DOC_PREFIX)/%)
rm -f $(UDEV_RULES:%=$(PREFIX)$(ETC_PREFIX)/udev/rules.d/%)
rm -f $(MODPROBE_CONFS:%=$(PREFIX)$(ETC_PREFIX)/modprobe.d/%)
rmdir --ignore-fail-on-non-empty -p $(PREFIX)$(ETC_PREFIX)/modprobe.d $(PREFIX)$(ETC_PREFIX)/udev/rules.d $(PREFIX)$(DOC_PREFIX)
$(UDEVADM) control --reload
compile_commands.json: build
bear -- $(MAKE) -C hid-xpadneo clean modules
atar-axis-xpadneo-0b9d5cc/NEWS.md 0000664 0000000 0000000 00000127541 15160640572 0016650 0 ustar 00root root 0000000 0000000
# Changes since v0.10 up to v0.10.1
This is a focused maintenance release for the v0.10 series with an emphasis on stability and compatibility.
The main work in v0.10.1 targets rumble reliability. We now advertise rumble support early while deferring actual
rumble traffic until initialization is fully complete, reducing race conditions with userspace stacks that probe
capabilities immediately after hotplug. In addition, rumble locking was corrected to properly preserve IRQ state,
fixing a regression that could lead to hard lockups under force-feedback load.
Beyond rumble, this update improves day-to-day usability and hardware coverage: the optional virtual mouse device can
now be disabled completely, quirk detection was extended for newer GameSir Nova variants, and several
documentation/debugging details were cleaned up.
As a v0.10 maintenance release, this branch intentionally keeps the existing ff-memless-based architecture. The larger
native-rumble rework remains part of the v0.11 development line.
Thanks to everyone who reported regressions, provided traces, and helped validate fixes on real hardware and different
userspace environments.
## Headlines:
- xpadneo, docs: Replace back ticks syntax for shell substitution
- xpadneo, mouse: Allow disabling the mouse device completely
- xpadneo, quirks: Add OUI flag checks for new GameSir Nova
- xpadneo, rumble: Do not send rumble commands unless ready
- xpadneo, rumble: Properly save and restore IRQ state during locking
```
Kai Krakow (17):
xpadneo, licensing: Link the licenses for convenience
xpadneo, rumble: Remove rumble accumulation
xpadneo, rumble: Rename private function `xpadneo_rumble_welcome`
xpadneo, rumble: Introduce helper to calculate throttling delay
xpadneo, rumble: Migrate to more modern scoped locks
xpadneo, docs: Replace back ticks syntax for shell substitution
xpadneo, rumble: Tighten the rumble throttle timing
xpadneo, docs: Fix style of `disable_shift_mode`
xpadneo, power: Fix header export signature
xpadneo, debug: Add new debug mode to improve logging for new devices
xpadneo, debug: Move HID report debugger to new debug module
xpadneo, quirks: Add OUI flag checks for new GameSir Nova
xpadneo, debug: Add Xbox Wireless Controller modern descriptor
xpadneo, debug: Add Xbox Elite 2 Controller descriptor
xpadneo, mouse: Allow disabling the mouse device completely
xpadneo, rumble: Do not send rumble commands unless ready
xpadneo, rumble: Properly save and restore IRQ state during locking
```
# Changes since v0.9 up to v0.10
*Code name:*
> COUCH POTATO
This is a major release that bundles roughly five years of development since v0.9. During that time, xpadneo received
substantial internal refactoring, broader device support, many compatibility fixes for modern userspace and kernel
changes, and a lot of long-term maintenance work that is not always visible at first glance.
The codename reflects one of the headline additions: xpadneo can now expose controller input as a virtual mouse. This
enables couch-friendly navigation scenarios and rounds out the driver in a practical way beyond pure gamepad usage.
At the same time, this feature is intentionally marked as experimental for now so we can continue to refine its
behavior and ergonomics in v0.11.
Another key focus of this cycle was improving real-world compatibility: updated quirks and heuristics for additional
vendors and controller models, better handling of firmware and profile differences, and more robust interoperability
with SDL/Steam/hidraw environments where mapping conflicts can otherwise become painful.
We also spent significant effort on quality-of-life improvements around installation and packaging, especially in DKMS
and udev handling, plus updated troubleshooting and configuration guidance for current Linux distributions and
Bluetooth setups.
A release of this size is only possible with continued support from users, contributors, testers, package maintainers,
and everyone reporting regressions and sharing detailed logs over the years.
Special thanks to all contributors who helped shape this cycle, including:
- Florian Dollinger (`@atar-axis`) for the original project foundation and long-standing code base that made this
evolution possible.
- Ben Schattinger (`@lights0123`) for Xbox Series X|S support contributions and Share button related integration
work.
- Erik Hajnal (`@ehats`) for non-trivial XBE2 mode support work and descriptor/mapping related fixes.
- Dugan Chen (`@duganchen`) for Elite Series 2 related device support updates.
- John Mather (`@NextDesign1`) and many others for incremental fixes, reports, and ecosystem feedback that helped
improve edge-case handling over time.
## IMPORTANT: Updated Licensing
As part of the ongoing refactor, the kernel module code has been relicensed to **GPL-2.0-only**. This change was made
to ensure compatibility with the Linux kernel's licensing requirements and to allow for better integration with the
kernel's codebase. Non-driver content, such as documentation and tooling, remains licensed under **GPL-3.0-or-later**
unless specified otherwise in file headers.
Package maintainers and contributors should take note of this change when distributing or contributing to the project,
ensuring that they comply with the new licensing terms for the relevant parts of the codebase.
As part of this change, we also added AppStream metadata to the repository, which should help with integration into
Linux distribution packaging systems and improve discoverability of the project for users. Thanks to Michael Lloyd
(`@michael-lloyd`) for the contribution of the AppStream metadata.
## The Future
- The virtual mouse mode introduced in this release is still **experimental** and will be improved further during the
v0.11 cycle, with improvements backported to v0.10 if possible.
- The next release cycle will bring better rumble handling and lay the foundations for profile customization support.
- Hopefully, we will also improve and streamline the documentation further, especially around configuration and
troubleshooting, to make it easier for users to get the most out of their controllers with xpadneo.
*Thank you for your patience, testing effort, and continued trust in xpadneo.*
## Headlines:
- core, quirks: Add GameSir T4 Nova Lite support
- core, quirks: Add GuliKit KK3 MAX quirks
- core, quirks: Add heuristics to detect GameSir Nova controllers
- dev: Fix gitignore
- dkms: Explicitly add version to the install phase
- dkms: Suggest trusting the git directory if version detection failed
- docs(#429): Elite S2 Profiles carry over
- docs: Document Bluetooth LE issues and work-arounds
- docs: Document workarounds for the Xbox Wireless controller
- docs: Replace Ko-fi link to attribute donations to current maintainer
- hid-xpadneo: Allow building with kernel 6.12
- hid-xpadneo: Do not use Nintendo layouts by default
- hid-xpadneo: Move share button quirk to `xpadneo_devices` database
- installer, dkms: Fix trying to install the wrong udev filename
- xpadneo: Add support for GuliKit KingKong2 PRO controllers
- xpadneo, core: Add configuration for disabling Xbox logo shift-mode
- xpadneo, core: Deprecate synthetic rolling axis from triggers
- xpadneo, core: Fix coding style
- xpadneo, core: Remove hard requirement of ida_{alloc,free}
- xpadneo, dkms: Drop deprecated variable CLEAN
- xpadneo, dkms: Get rid of redundant file installs/removes
- xpadneo, dkms: Hooks are now effectively a no-op
- xpadneo, docs: Align all of README.md with current distribution practice
- xpadneo, docs: Link troubleshooting more prominently
- xpadneo: Evade SDL-mismapping once again
- xpadneo: Fix documentation about Share button
- xpadneo, fixups: Adapt SDL fixup to fix the Xbox button
- xpadneo, hid: Move paddles to range BTN_TRIGGER_HAPPY5
- xpadneo, hidraw: Fixup previous commit to properly work with DKMS
- xpadneo, hidraw: Work around other software messing with our udev rules
- xpadneo, init: Actually save rumble test values before we replace them
- xpadneo: Map Share button to F12 by default
- xpadneo, mouse: Implement mouse support
- xpadneo, quirks: Add another Microsoft OUI
- xpadneo, quirks: Another Microsoft OUI
- xpadneo, quirks: Fix the haptics quirks for third-party controllers
- xpadneo, quirks: Let another Microsoft OUI bypass heuristics
- xpadneo, quirks: Prevent applying heuristics for some known vendors
- xpadneo: Remove deprecated ida_simple_{get,remove}() usage
- xpadneo: Revert fixups on device removal
- xpadneo, rumble: Fix rumble throttling for modern firmware
- xpadneo: Support GameSir T4 Cyclone models
- xpadneo: Work around invalid mapping in Steam Link
```
Kai Krakow (278):
xpadneo, udev: Properly re-order modalias
xpadneo, udev: Add Xbox One X|S PIDs to udev and modalias
hid-xpadneo: Improve SDL2 work-arounds to fix XBE2 button mappings
hid-xpadneo: Fix SDL2 button mapping for XBXS
docs: Fix typo
hid-xpadneo: Print version during load
hid-xpadneo: Ignore more files from current kernel tool chain
hid-xpadneo: Add some benchmark instrumentation
hid-xpadneo: Fix typo in comment
hid-xpadneo: Fix logging SDL2 work-around on wrong condition
hid-xpadneo: Log and record the original descriptor size
installer: Fix indentation
Makefile: Create version.h on the fly
dev: Fix gitignore
hid-xpadneo: Move share button quirk to `xpadneo_devices` database
hid-xpadneo: Improve descriptor logging
hid-xpadneo: Deprecate directional rumble
src: re-indent with newer indent version
docs: List incompatible Bluetooth chipsets and settings
docs: Improve troubleshooting instructions
docs: Amend list of bugs with known fixes
docs: Use Xbox Series X|S controller name consistently
udev: Update rules for upcoming systemd update
hid-xpadneo: Do not use Nintendo layouts by default
hid-xpadneo: Split gamepad into subdevices
hid-xpadneo: Send KEY_MODE for the Xbox button
hid-xpadneo: Enable detection of the XBE2 keyboard sub device
xpadneo: Drop kernel compatibility below version 4.18
docs: Replace Ko-fi link to attribute donations to current maintainer
hid-xpadneo: Report missing applications just once
hid-xpadneo: Drop dead module parameter `combined_z_axis`
docs: Put Ko-fi on a separate line
docs: Make original driver announcement a quote
docs: Link xow author
hid-xpadneo: Auto-detect hardware profiles instead of hard-coding it
docs: Add missing text about profile support
hid-xpadneo, udev: Move udev rules up in rules priority
configure: Remove disable-ff in favor of trigger-rumble-mode
configure: No options is an error, don't do anything
configure: Do not require dkms for configuration
dkms: Install files with proper permission
installer, dkms: Fix trying to install the wrong udev filename
hid-xpadneo: Allow modparams for manual re-installation
docs: Document more of the quirk flags
hid-xpadneo, Makefile: Make version.h an intermediate target
hid-xpadneo: Use jiffies converter functions instead of HZ
hid-xpadneo: Allow adding and removing quirk flags
hid-xpadneo: Fix indentation
xpadneo, mouse: Support toggling mouse mode
dkms: Fix CI
dkms: Simplify installation
xpadneo: Drop dynamic version file handling
docs: Document rumble behavior with SDL_JOYSTICK_HIDAPI
docs: Fix typo
docs: Add note about holding the Guide button for too long
hid-xpadneo: Sync consumer key events and stop processing
xpadneo: Add current maintainer to module authors
hid-xpadneo: Move SDL work-arounds to parent device
hid-xpadneo: Revoke hidraw user access to fix a Proton mapping problem
docs: Update pairing instruction to mitigate stability issues
kbuild: Add work-around for matching source and object filename
xpadneo, core: Add support for synthetic devices
xpadneo: Fix "consumer control" naming
xpadneo, consumer: Add synthetic consumer control device on demand
reporting: Add some space for easy insertion
reporting: Improve headers
reporting: Ask for applied firmware updates
automation: Extend the feedback response deadline
automation: Remove comments
reporting: Add model identification
reporting: Add installed software section
automation: Move no-response.yml to proper location
misc, docs: Remove ERTM patches and update docs
hid-xpadneo: Map instead of disable duplicate button "AC Back"
docs: Document Bluetooth LE issues and work-arounds
docs: Remove `Privacy=device` in favor of JustWorks re-pairing
docs: Mention the xone project which has gone public now
reporting: Improve formatting of reporting template
xpadneo, consumer: Fix comment
docs: List distribution packages
hid-xpadneo, rumble: Do not lose rumble strength while throttled
docs: Fix report descriptor syntax errors
xpadneo: Work around invalid mapping in Steam Link
xpadneo, hidraw: Also work around SDL2 hidraw mode conflicts
dkms: Create version instance in DKMS source archives
dkms: Explicitly add version to the install phase
dkms, installer: Increase verbosity
docs: Add note about audio support
xpadneo, udev: Make udev rule logic more readable
xpadneo: Add support for XB1S BLE firmware update
xpadneo: Revert fixups on device removal
xpadneo: Update devices db for PID 0x0B13
xpadneo: Add XBE2 firmware 5.13 support
xpadneo: Add paddles support
xpadneo, rumble: Fix rumble throttling for modern firmware
docs: Clarify some points
xpadneo, core: Warn about old firmware version with stability issues
dkms: Suggest trusting the git directory if version detection failed
dkms: Add another status line variant to split module and version
docs: Update documentation about the XBE2 paddles
docs: Update the documentation to use the "add quirks" feature
github: Change checkboxes to proper md format
github: Reorder checkboxes in bug report
github: Add problematic software to bug reports
github: Improve bug reports for identifying the failing layer
github: Improve feature requests
xpadneo, fixups: Apply SDL fixups unconditionally
xpadneo, fixups: Adapt SDL fixup to fix the Xbox button
docs: Update description for the xone project
docs: Use capitalization for headlines consequently
docs: Don't exceed line length
docs: Fix typo
docs, installer: Add notes about needed kernel features
xpadneo, rumble: Remove deprecated directional rumble
docs: Remove obsolete ERTM notes
xpadneo: Evade SDL-mismapping once again
xpadneo, keyboard: Add keyboard support
xpadneo, consumer: Move buttons to keyboard device
xpadneo: Map Share button to F12 by default
xpadneo: Move bit swap helper to include file
xpadneo, init: Fix rumble testing logic on connect
xpadneo: Add support for GuliKit KingKong2 PRO controllers
xpadneo, init: Actually save rumble test values before we replace them
xpadneo: Upgrade CI to Ubuntu 22.04
xpadneo: Remove Ubuntu 18.04 from CI
docs: Fix headline for GuliKit controllers
Makefile: Use kernel build symlink from `/lib/modules`
xpadneo: Fix documentation about Share button
xpadneo, init: Do not report paddles unconditionally
xpadneo, hid: Move paddles to range BTN_TRIGGER_HAPPY5
xpadneo, init: Really exclude the keyboard event from the HID bitmap
xpadneo, init: Remove bogus keys from the keymap
xpadneo, init: Detect HW profile support on current firmwares
xpadneo: Support GameSir T4 Cyclone models
xpadneo, docs: Reintroduce hint about using SDL_JOYSTICK_HIDAPI=0
xpadneo, core: Sort device quirks into proper order
xpadneo, quirks: Combine quirks that mean "no haptics support"
xpadneo, core: Deprecate synthetic rolling axis from triggers
docs: Improve BT_DONGLES.md
docs: Remove feature claims that are obsolete or no longer true
docs: Fix wording and casing
docs, README: Remove the broken Codacy badge
xpadneo, quirks: Fix the haptics quirks for third-party controllers
xpadneo, core: Reorder devices by PID
xpadneo, core: Remove explicit sync when not needed
xpadneo, core: Handle sync events in xpadneo
docs: Add troubleshoot instructions for controllers requesting a PIN
docs: Add troubleshooting instructions after upgrading firmware
docs: Add missing blank line
docs: Add compatibilty status for a Simplecom Bluetooth dongle
docs, README: Add notes for package maintainers and on module signing
github: Migrate stale and close automation
github: Improve feature request template
github: Do not mark issues stale automatically
xpadneo, core: Remove code duplication
xpadneo, hidraw: Work around other software messing with our udev rules
hid-xpadneo: Allow building with kernel 6.12
xpadneo, hidraw: Fixup previous commit to properly work with DKMS
hid-xpadneo, core: Match kernel 6.12 report_fixup signature
xpadneo, core: Fix coding style
core, quirks: Add GameSir T4 Nova Lite support
core, quirks: Add heuristics to detect GameSir Nova controllers
core, quirks: DRY the rumble tests
core, tests: Fix the pulse test and print test info
core, debug: Allow output of decoded rumble packets for debugging
core, quirks: Provide a way to remove quirks added by heuristics
xpadneo, debug: Fix indentation and output
core, quirks: Add GuliKit KK3 MAX quirks
xpadneo, quirks: Prevent applying heuristics for some known vendors
xpadneo, quirks: Let another Microsoft OUI bypass heuristics
xpadneo, installer: Fix some general issues with the scripts
xpadneo, dkms: Match minimum kernel version with source code
xpadneo, installer: Add new option parser to support multiple options
xpadneo, dkms: Add kernel source dir option for easier testing
xpadneo, installer: Allow forcing replacement of a newer kernel module
xpadneo, quirks: Another Microsoft OUI
xpadneo, installer: Exit immediately on error
xpadneo: Add documentation about testing pull requests
xpadneo, installer: Fix option parser to not bubble up an error
xpadneo, dkms: Use "yes" for autoinstall instead of "Y"
xpadneo: Reorder gitignore
xpadneo, ci: Add missing dependencies
xpadneo, ci: Add Ubuntu 24.04
xpadneo, examples: Build hidraw properly on Ubuntu
xpadneo, tools: Build hidraw_c test example in CI
xpadneo, dkms: Remove DKMS work-around and let DKMS handle the source
xpadneo, installer: Use make to regenerate dkms.conf
xpadneo, installer: Introduce make-based installer
xpadneo, installer: Use the new make infrastructure
xpadneo, dkms: Add make-based installer to CI
xpadneo, docs: Fix various spelling mistakes and phrasing
xpadneo, installer: Fix usage of `ETC_PREFIX`
xpadneo, installer: Re-order config variables to the top of `Makefile`
xpadneo, installer: Support installing documentation
xpadneo, docs: Fix indentation, line length and whitespace
xpadneo, docs: Document the new quirk flags for configuration
xpadneo, docs: Use dashes instead of stars for list items
xpadneo, docs: Fix use of bare URLs
xpadneo, core: Remove left-over xdata indirection
xpadneo, installer: Delay `set -e` to not silence errors early
xpadneo, quirks: Another Microsoft OUI
xpadneo, quirks: Another Microsoft OUI
xpadneo, ci: Drop Ubuntu 20.04 CI testing
xpadneo, installer: Get rid of ERTM work-around by requiring kernel 5.12
xpadneo, installer: Do not fail uninstallation early
xpadneo, udev: Trigger loading of `uhid` before `bluetooth`
xpadneo, psy: Fix potential pointer leak during battery registration
xpadneo, psy: Fix memory leak of device and battery name
xpadneo, core: Actually check the correct devm pointer in error path
Makefile: Do not leave a stray intermediate source file behind
xpadneo, docs: Align CONFIGURATION.md with current implementation
xpadneo, docs: Align README.md with current distribution practice
xpadneo, probe: Implement error path for ida_simple_get()
xpadneo: Remove deprecated ida_simple_{get,remove}() usage
xpadneo, headers: Drop kernel version check kept for cherry picking
xpadneo, docs: Document sensor drift and deadzones better
xpadneo, docs: Link troubleshooting more prominently
xpadneo, dkms: Fix shellcheck for unused variables
xpadneo, dkms: Drop deprecated variable CLEAN
xpadneo, docs: add GPL-2.0 relicensing requirement
xpadneo, licensing: Add driver relicensing tracking document
xpadneo, licensing: Record consent from Ben Schattinger
xpadneo, licensing: Record consent from Erik Hajnal
xpadneo, licensing: Record consent from Dugan Chen
xpadneo, licensing: Record consent from yjun
xpadneo, licensing: Record consent from John Mather
xpadneo, licensing: Do not chase consent from PiMaker
xpadneo, dkms: Fix warning about unassigned variables
xpadneo, dkms: Get rid of redundant file installs/removes
xpadneo, dkms: Hooks are now effectively a no-op
xpadneo, docs: Improve bug reporting template
xpadneo, docs: document safe firmware flashing for Xbox controllers
xpadneo, docs: improve Bluetooth dongle documentation
xpadneo, docs: add user-reported Bluetooth dongle compatibility report
xpadneo, docs: add PCIe Bluetooth adapter compatibility reports
xpadneo, profiles: Report current profile as absolute axis
xpadneo, docs: Unify list formatting of README.md
xpadneo, docs: Align all of README.md with current distribution practice
xpadneo, core: Remove hard requirement of ida_{alloc,free}
xpadneo, core: Support explicit paddle button usages
xpadneo, docs: Fix manufacturer name of a tested USB BLE adapter
xpadneo, quirks: Add another Microsoft OUI
xpadneo: Add LSP support for clangd
xpadneo: Get rid of hid-ids.h
xpadneo: Add .clangd to fix some more LSP warnings
xpadneo, core: Do not reset profile switch indicator unless emulated
xpadneo, core: Honor Guide+Select mouse toggle with hardware profiles
xpadneo, mouse: Implement mouse support
xpadneo, core: Remove unused headers
xpadneo, power: Move psy/battery function out of the legacy core
xpadneo, quirks: Move quirks handling out of the legacy core
xpadneo, mouse: Unify mouse driver naming conventions and structure
xpadneo, mappings: Move usage mappings out of the legacy core
xpadneo, profiles: Move events and profiles out of the legacy core
xpadneo, rumble: Move rumble handling outside of the legacy core
xpadneo, core: Move remaining code out of the legacy core
xpadneo, synthetic: Move helpers for synthetic drivers out of the core
xpadneo, devices: Move device helpers out of the legacy core
xpadneo, drivers: Streamline naming convention
xpadneo: Rename FF to RUMBLE to better match the functionality
xpadneo, device: Move kernel backward compatibility to separate header
xpadneo, compat: Move remaining compatibility functions into compat.h
xpadneo, core: Move HID_QUIRK_INPUT_PER_APP check to core
xpadneo, core: Move driver versioning to core
xpadneo, helpers: Move shared helpers into separate header file
xpadneo, headers: Move private definitions out of shared headers
xpadneo: Do not use "extern" on the implementation function signature
xpadneo: Align private and public symbol prefixes
xpadneo, core: Improve error paths on initialization failures
xpadneo, device: Fix potential format mismatch at compile time
xpadneo, quirks: Improve quirks argument parser
xpadneo: Refactor subdevices to re-use code and common error paths
xpadneo, events: Warn once if shift mode is active
xpadneo, events: Explain why no explicit sync is needed for ABS_PROFILE
xpadneo, events: Degrade shift mode warning to notice log level
xpadneo, CI: Add Github workflow to check commits
xpadneo, installer: Add metainfo as optional install target
Alexander Tsoy (2):
docs: Suggest alternative command to get controller info
docs: Add compatibilty status for UGREEN CM390
l3d00m (2):
xpadneo, docs: Update links to other projects
xpadneo, docs: Fix typo and add specific hardware support to xone
Aniket (1):
Remove outdated secure boot docs
Eduard Tolosa (1):
xpadneo, udev: update rules for systemd v258+
Emil Velikov (1):
dkms: remove REMAKE_INITRD
Florian Dollinger (1):
Update README.md
John Mather (1):
xpadneo, quirks: Add another OUI
Kevin Locke (1):
Add BUILD_EXCLUSIVE_CONFIG to dkms.conf
Luis Davila (1):
Replaced Antergos with EndeavorOS
Matthew Scharley (1):
bluez-tools isn't required on Tumbleweed
Michael-Lloyd (1):
xpadneo, meta: Add AppStream metainfo with hardware modalias
Moté (1):
docs: Document workarounds for the Xbox Wireless controller
Scott Bailey (1):
Doc update for KK3 Max
Willster Johnson (1):
docs(#429): Elite S2 Profiles carry over
arnxxau (1):
added ff_connect_notify config option to configure.sh
bouhaa (1):
xpadneo, core: Add configuration for disabling Xbox logo shift-mode
jbillingredhat (1):
README.md: Fedora instructions are incorrect
liberodark (1):
docs: Update BT_DONGLES
mikaka (1):
Don't disable ERTM if kernel 5.12 or later
ryanrms (1):
Adding openSUSE to readme.md
thiccaxe (1):
Update TROUBLESHOOTING.md
yjun (1):
xpadneo: Fix missing report check
```
# Changes since v0.8 up to v0.9
*Quote of the day:*
> Good News, Everyone!
Much hard work of several weeks has gone into this release, so there's a big
reason to say thanks to all contributors, be it testing, suggestions, bug
reporting, or - of course - programming.
First of all, Michael Schmitt donated an Xbox Elite 2 controller, so we now
have full support for basic functionality of this controller, with support for
the advanced features coming in the v0.10 version of the driver. This builds
upon contributions done in the previous version of the driver.
Additionally, Ben Schattinger contributed support for the new Xbox Series X|S
controllers that were released by Microsoft with their new console generation.
Support for the new share button is still not finalized but it will generate a
key code. This new controller uses BLE (Bluetooth low energy) to connect to PC,
so you need a Bluetooth dongle that supports that features (most should do).
Both of you, Michael and Ben, qualified for the quote of the day. You guys
rock.
Also, some donations were provided by several people via Ko-fi. Thanks for
that, it's really appreciated. You guys are awesome!
Let's not forget all the people who contributed to the project patiently
providing feedback, bug reports, and testing, or even just a "thank you": This
release is our "thank you" back to the community.
Finally, we've got a logo now.
Here the gist of what the new version delivers:
- Discord community (shared with xow, ask to join your project)
- Code generation assertions
- Start of code-redesign for splitting the driver core
- Start of profile support (not implemented yet)
- Dropped old debug mode
- Better compliance with the Linux Gamepad specification
- Improved driver documentation
- Improved hardware documentation
- Improved hardware support
- Improved quirks handler to more easily handle hardware quirks
- Improved HID handler performance
- Improved dmesg logging
- Improved DKMS installer
- Improved rumble timing and precision
- Improved rumble damping setting
- Improved continuous integration testing
- Added support for new hardware-level device functions
- Added high-precision mode for the thumb sticks
- Added option for disabling dead-zones for better Proton support
Many of the bug fixes have been backported to the v0.8 branch which has now
received its end of life. If you're having problems with the new features,
please report that and use the v0.8 branch until that specific bug is fixed.
## Known Problems
The Bluetooth stability of the Xbox controllers is still a known issue which we
probably can't fix in the driver. Some work-arounds are in place but that's not
a 100% guarantee. Some of these problems can even be observed when using the
controller with Windows. All the problems seem to mostly focus around using
rumble, so you may need to disable rumble.
The other class of problems is connecting/pairing the controller properly. This
seems to be a Linux kernel issue or a Bluez daemon issue, or a combination of
both. Usually, Windows doesn't show any problems here. Apparently, we cannot
fix this in the driver. You may want to report this to the kernel or Bluez
developers.
Always use the controller updated to its latest firmware before trying other
steps: Microsoft fixed some connection problems, and also HID implementation
details in the past with firmware updates.
## Breaking Changes
This release fixes button mappings for 8BitDo controllers to actually match
their names on the controller instead of matching positions with original Xbox
controllers. The X,Y and A,B buttons will be swapped compared to previous
versions.
This change is controversial but let me tell you that we are going to work on
changes that let you easily choose and switch behavior in v0.10.
The module parameter `debug_level` has been dropped. Some other parameters
have been dropped in favor of better replacements. Please reconfigure your
parameters and settings.
## The Future
The new controllers provide some new functionality at the hardware level which
we are going to try to emulate at the driver level for older generation
controllers. The prominent example for this is mapping profiles support: Until
we figured out how this is implemented in hardware for the Xbox Elite 2
controller, we won't implement any emulation support in the driver. This is
because we want to end up with an emulation that is 100% compatible with the
hardware implementation, and not end up with some customization functions that
needs emulation for the Xbox Elite 2 controller.
We are also going to split the driver into components to easily add support for
USB or GIP dongle connections, with USB probably coming first because the GIP
dongle still has licensing issues for using its firmware.
## Headlines:
- hid-xpadneo, quirks: We need to carry a quirk for Linux button mappings
- hid-xpadneo, rumble: Migrate damping to generic attenuation parameter
- installer: Change to base directory first
- xpadneo, deadzones: Implement a high-precision mode without dead zones
- xpadneo, udev: Work around libinput using the controller as touchpad
```
Kai Krakow (78):
hid-xpadneo: Drop `debug_level`
hid-xpadneo, quirks: Pass quirks from driver data
udev: Expose all xpadneo input devices as user-readable
hid-xpadneo, profiles: Prepares profile switching for customization
Update bug_report.md
docs, news: Document breaking changes.
hid-xpadneo, rumble: Migrate damping to generic attenuation parameter
xpadneo, udev: Work around libinput using the controller as touchpad
hid-xpadneo: Tell the user which controller connected
hid-xpadneo, quirks: Fix a typo
hid-xpadneo, quirks: Expand flags to 32 bit
hid-xpadneo, quirks: We need to carry a quirk for Linux button mappings
xpadneo, quirks: Add Nintendo mappings quirk for 8BitDo controllers
docs: Fix a syntax problem in SDL link
xpadneo, deadzones: Use smaller dead zone and fuzz for precision
xpadneo, deadzones: Implement a high-precision mode without dead zones
docs: Document another storage location for SDL gamepad mappings
docs: Document SDL HIDAPI breakage
hid-xpadneo, init: Ignore HID_CONNECT_FF
hid-xpadneo, quirks: Convert to proper bit values
hid-xpadneo: Update copyright
configure, cleanup: Remove the tedious whitespace
xpadneo, cleanup: Fix missing newline at end of file
hid-xpadneo, cleanup: Remove some more comments
hid-xpadneo: Replace `combined_z_axis` with additional axis
hid-xpadneo: Stop spamming the HID layer with repeated reports
Revert "hid-xpadneo, quirks: Convert to proper bit values"
hid-xpadneo, timing: Use clamp() instead min()/max()
hid-xpadneo, rumble: Tighten the rumble timing
hid-xpadneo: Fix potentially loosing input packets for XBE2 controllers
docs: Add Repology badge
docs: Mention MissionControl sibling project
docs: Cleanup some whitespace
docs: Add xpadneo logo
docs: Add Discord badge
installer: Drop VERSION tag file from master branch
installer: Fix white space
installer, dkms: Prevent showing readlink errors
installer: Add verbose mode
installer: Exit on unexpected errors
installer, dkms: Skip ERTM if setting is not writable
tests: Add verbose mode to Azure Pipeline
tests: Also test uninstallation in Azure Pipeline
tests: Dump make.log to stdout on verbose DKMS error
tests: Run Azure Pipeline on multiple Ubuntu LTS versions
hid-xpadneo: Ignore trigger scale switches
hid-xpadneo, profiles: Log to kernel starting with lower-case
hid-xpadneo, rumble: Remove useless use of max()
hid-xpadneo: Optimize delay_work clamping
hid-xpadneo, rumble: Use proper integer rounding in calculations
hid-xpadneo, rumble: Limit command duration
hid-xpadneo: Fix kernel coding standards
docs: Remove bogus blank line
docs: Do not misuse back-ticks
docs: Document broken packet format of XBE2 v1
hid-xpadneo: Handle XBE2 v2 packet format
hid-xpadneo: Add XBE2 trigger scale setting
docs: Fix collaboration referral
docs: Fix a typo
hid-xpadneo: Reserve another bit for the new XBXS share button
hid-xpadneo: Document XBXS modes and PIDs
docs: Document XBXS controller support in the README
docs: Restructure text about profile support
docs: Add BLE note for the XBXS controller
docs: Move profile switching section
hid-xpadneo: Make assertions of hardware buffer sizes
hid-xpadneo: Make rumble motor bits a full enum type
installer: Move version information to separate include file
installer: Remove excessive blank lines
installer: "INSTALLED" is an array
configure: Use braces around variables
installer: Change to base directory first
hid-xpadneo: Alias the Share button
hid-xpadneo: Fix a comment about rumble timing
hid-xpadneo: Improve PID documentation
docs: Document Bluetooth low energy requirements
installer: Also fix the updater
hid-xpadneo: Move headers to separate file
Ben Schattinger (2):
docs: Document Xbox Series X/S controller
hid-xpadneo: Add Xbox Series X / S controller support
```
# Changes since v0.7 up to v0.8
*Quote of the day:*
> HID me baby, one more time!
Much hard work of several weeks has gone into this release, so there's a big
reason to say thanks to all contributors, be it testing, suggestions, bug
reporting, or - of course - programming.
Many thanks @medusalix for finally figuring out the underlying problems of
the disconnect behavior of the controller during rumble events: After some
internal discussion, we managed to find a race condition in the controller
firmware and worked around it by throttling the rumble reprogramming to
intervals of at least 10ms as this is what the controllers seems to accept
as the minimal interval without freaking out. As a "thank you", I contributed
a logically identical patch to the [xow](https://github.com/medusalix/xow)
project which has not been merged yet, tho. Check it out - it supports the
native dongle that comes with the controller!
Also, let's all say "thank you" to @ehats for contributing the Xbox Elite 2
series controller support. He started from zero to mastering the HID
internals in just a few days with just a little help from me. I'm sure, a
vast amount of effort, a steep learning curve, and a lot of endurance and
probably also one beer or another went into this work. Leave him some kudos
for this awesome contribution, and expect more to follow. His work builds
the base for adding profile support and customization into the next xpadneo
version. He qualified for the quote of the day above.
A handful patches have been contributed which fix some smaller bugs:
- Thanks to Adam Becker for adding some bug and style fixes.
- Lars-Sören Steck fixed a scripting bug, thank you.
- Manjaro users now see instructions for their favorite distribution,
thanks to @snpefk.
Let's not forget our testers, who have patiently been with us during the
development of this milestone: We appreciate your work, patience, and
contributions.
Many of the bug fixes have been backported to the v0.7 branch which has now
received its end of life. If you're having problems with the new features,
please report that and use the v0.7 branch until that specific bug is fixed.
## Breaking Changes
This version removed some module parameters with only partial replacement.
One of those if `disable_ff` which can no longer be used. Instead, there's
a new parameter `trigger_rumble_mode` which can disable trigger rumble
only. The next update will include a new parameter to set rumble attenuation
to 100% which translates to no rumble at all.
## Headlines:
- dmks, installer: Move etc sources one level up
- docs, mapping: Document and explain `joydev` mapping
- hid-xpadneo: Adhere to Linux Gamepad Specification
- hid-xpadneo, battery: Rework detection, parsing and reporting
- hid-xpadneo, compat: Fix compilation on kernel 4.19
- hid_xpadneo, quirks: Add "8BitDo SN30 Pro+"
- hid-xpadneo, rumble: Throttle reprogramming of rumble motors
- installer: Parse DKMS version info correctly
- installer: Use awk in non-GNU mode
```
Kai Krakow (70):
configure: `fake_dev_version` no longer exists
configure: `trigger_rumble_damping` should no longer default to 4
configure: Choose a single or default config file only
configure: Create missing directories and files on demand
configure: Silence superfluous error messages
dkms, install: Do not apply inline version patching
dkms, installer: Fix early exit if `git-rev-parse` does not work
dkms, installer: Fix version parsing
dkms, udev: Eliminate bash scripting from udev rules
dkms, uninstall: Fix early exit if `modprobe -r` does not work
dkms, update: Suggest a download URL actually matching the version
dkms: Use cmdline format which requires less escaping
dmks, installer: Move etc sources one level up
docs, chipsets: Update chipset compatibility reports
docs, cleanup: Fix typos
docs, cleanup: Fix white-space and new-lines
docs, cleanup: Fix whitespace
docs, cleanup: Remove outdated debug documentation
docs, cleanup: Visual tweaks
docs, formatting: Migrate to proper headlines
docs, mapping: Document and explain `joydev` mapping
docs: Document 8BitDo SN30 Pro+ controller
docs: Improve the debugging instructions
docs: Mention other projects
docs: Update documentation with rumble modes
docs: xpadneo is no longer the only driver
hid-xpadneo, battery: Protect concurrent access with spin locks
hid-xpadneo, battery: Rework detection, parsing and reporting
hid-xpadneo, cleanup: Reorder includes
hid-xpadneo, cleanup: Simplify mapping code
hid-xpadneo, comments: Fix wording
hid-xpadneo, compat: Fix compilation on kernel 4.19
hid-xpadneo, events: Do not send Xbox logo event for turn-off
hid-xpadneo, formatting: Kernel allows 100 chars line length now
hid-xpadneo, Makefile: Accept `rmmod` failing
hid-xpadneo, patching: Only show version patching if changed
hid-xpadneo, rumble: Protect concurrent access with spin locks
hid-xpadneo, rumble: Throttle reprogramming of rumble motors
hid-xpadneo: Adhere to Linux Gamepad Specification
hid-xpadneo: parameter `combined_z_axis` cannot be changed at runtime
hid-xpadneo: Separate private and foreign includes
hid_xpadneo, cleanup: Use symbols instead of numbers in mapping phase
hid_xpadneo, probe: Fix newline in error path
hid_xpadneo, quirks: Add "8BitDo SN30 Pro+"
hid_xpadneo, quirks: Migrate 8BitDo quirks to OUI match
hid_xpadneo, rumble: Optimize motor reprogramming
hid_xpadneo, style: Fix indentation
hid_xpadneo: Add quirk modes for misbehaving controllers
hid_xpadneo: New trigger rumble modes
hidxpad-neo, cleanup: Fix a comment style
installer, cleanup: Remove superfluous whitespace
installer: Add support for disabling ERTM override
installer: Compare latest version correctly
installer: Fix non-git version lookup
installer: Get latest version from the releases page
installer: Parse DKMS version info correctly
installer: Print some version information in update instructions
installer: Trim whitespace from online version numbers
installer: Try to fetch the current version from git tags
installer: Use awk in non-GNU mode
meta: Ignore vscode metadata completely
meta: Sort gitignore
misc: Add hidraw test program
Update bug_report.md
Update bug_report.md
Update bug_report.md
Update bug_report.md
Update bug_report.md
Update README.md
xpadneo, event: Remove symbols
Adam Becker (6):
Fix bug where 2 would map to unknown PS type instead of battery.
Fixing formatting issues
Don't use common return point if no resources are freed
Formatting parameter sections
Add parameter section for toggling the FF connect notification
Rename 'xpadneo_mapping' to match other names
Erik Hajnal (1):
Add support for XBE2 (Unknown mode)
Lars-Sören Steck (1):
Fix error "[: unexpected operator"
snpefk (1):
Add install instruction for Manjaro
```
# Changes since v0.6 up to v0.7
Major code overhaul and redesign. It optimizes the controller
communication path, adds support for more hardware and uses
HID table fixups now instead of trying to code for every
broken mapping variant.
## Headlines:
- fix direction_rumble_test path error (#168)
- hid-xpadneo: Convert mapping to using tables instead of code
- Pretend we are in Windows wireless mode
```
Kai Krakow (21):
Add support von non-DKMS build
Follow the kernel code style better
hid-xpadneo: Prevent accidental fall-through
hid-xpadneo: Scale rumble magnitudes correctly
hid-xpadneo, cleanup: Remove setting default axis values
hid-xpadneo, cleanup: Outsource welcome rumble
hid-xpadneo, cleanup: Cleanup `xpadneo_initBatt()` a little
hid-xpadneo: Fix usage of report ID in `xpadneo_raw_event()` hook
hid-xpadneo: Use work queue for rumble effects
hid-xpadneo: Use work queue for battery events
docs: Add some controller documentation
Pretend we are in Windows wireless mode
Revert "shift axis values to the left"
hid-xpadneo: Convert mapping to using tables instead of code
hid-xpadneo: Clean up
hid-xpadneo: Do not repeat rumble packets
hid-xpadneo: Rework the directional rumble model
hid-xpadneo, cleanup: Clean up combined z-axis feature
hid-xpadneo: Pretend different firmware for PID 0x02E0
hid-xpadneo: Autodetect battery presence after connect
hid-xpadneo, cleanup: Remove most of the remaining debug cruft
Dugan Chen (1):
Add Support For Xbox Elite Series 2 Wireless
Florian Dollinger (1):
Create no-response.yml
Srauni (1):
fix direction_rumble_test path error (#168)
```
atar-axis-xpadneo-0b9d5cc/VERSION 0000664 0000000 0000000 00000000010 15160640572 0016577 0 ustar 00root root 0000000 0000000 v0.10.1
atar-axis-xpadneo-0b9d5cc/azure-pipelines.yml 0000664 0000000 0000000 00000001664 15160640572 0021406 0 ustar 00root root 0000000 0000000 # C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
trigger:
- master
strategy:
matrix:
Ubuntu 22.04 LTS:
imageName: 'ubuntu-22.04'
Ubuntu 24.04 LTS:
imageName: 'ubuntu-24.04'
pool:
vmImage: $(imageName)
steps:
- script: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config linux-headers-$(uname -r)
displayName: 'setup'
- script: |
sudo apt-get install -y dkms
sudo ./install.sh --verbose
displayName: 'install'
- script: |
sudo apt-get install -y dkms
sudo ./uninstall.sh --verbose
displayName: 'uninstall'
- script: |
sudo make install
sudo dkms autoinstall
displayName: 'autoinstall'
- script: |
sudo apt-get install -y libncurses-dev
make -C misc/examples/c_hidraw
displayName: 'misc'
s atar-axis-xpadneo-0b9d5cc/configure.sh 0000775 0000000 0000000 00000007102 15160640572 0020060 0 ustar 00root root 0000000 0000000 #!/bin/bash
# Written by CodeCanna, refined by atar-axis
cd "$(dirname "$0")" || exit 1
set -o posix
NAME="$0"
# Define Variables
MODULE="/sys/module/hid_xpadneo/"
PARAMS="/sys/module/hid_xpadneo/parameters"
CONF_FILE=$(grep -sl '^options hid_xpadneo' /etc/modprobe.d/*.conf | tail -1)
: "${CONF_FILE:="/etc/modprobe.d/99-xpadneo-options.conf"}"
# Use getopt NOT getopts to parse arguments.
OPTS=$(getopt -n "$NAME" -o h:m:r:n: -l help,version,trigger-rumble-mode:,rumble-attenuation:,ff_connect_notify: -- "$@")
## Print Help ##
function display_help {
cat ./docs/config_help
}
## Parameter Validation ##
function check_param {
key=$1
value=$2
case $key in
"trigger_rumble_mode")
if [[ "$value" -gt 2 ]] || [[ "$value" -lt 0 ]];
then
echo "$NAME: $key: Invalid value! Value must be between 0 and 2."
exit 1
fi
;;
"rumble_attenuation")
if [[ "$value" -gt 100 ]] || [[ "$value" -lt 0 ]];
then
echo "$NAME: $key: Invalid value! Value must be between 0 and 100."
exit 1
fi
;;
"ff_connect_notify")
if [[ "$value" -gt 2 ]] || [[ "$value" -lt 0 ]];
then
echo "$NAME: $key: Invalid value! Value must be 0 or 1."
exit 1
fi
;;
*)
# key not known, should not be possible
exit 2
;;
esac
}
## Parameter Setting Helpers ##
function set_modprobe_param {
sed -i "/^[[:space:]]*options[[:space:]]\+hid_xpadneo/s/$1=[^[:space:]]*/$1=$2/g" "$CONF_FILE"
}
function set_sysfs_param {
echo "$2" > "$PARAMS/$1"
}
## Parameter Setting ##
function set_param {
key=$1
value=$2
# check for valid parameters first
check_param "$key" "$value"
# edit sysfs parameter if module is inserted
if [[ -d "$MODULE" ]];
then
echo "$NAME: Module inserted - writing to $PARAMS"
if ! set_sysfs_param "$key" "$value";
then
echo "$NAME: ERROR! Could not write to $PARAMS!"
exit 1
fi
fi
# edit modprobe config file
if ! set_modprobe_param "$key" "$value";
then
echo "$NAME: ERROR! Could not write to $CONF_FILE!"
exit 1
fi
echo "$NAME: $key: parameter written to $CONF_FILE"
}
## Argument Parsing ##
function parse_args {
if [[ $1 == "" ]];
then
display_help
exit 1
fi
if ! grep -sq 'options hid_xpadneo' "${CONF_FILE}";
then
# If line doesn't exist echo all of the defaults.
mkdir -p "$(dirname "${CONF_FILE}")"
touch "${CONF_FILE}"
echo "options hid_xpadneo disable_deadzones=0 rumble_attenuation=0 trigger_rumble_mode=0 ff_connect_notify=1" >> "$CONF_FILE"
fi
eval set -- "$OPTS"
while true;
do
case "$1" in
-h | --help)
display_help
shift
;;
-m | --trigger-rumble-mode)
key='trigger_rumble_mode'
value="${2#*=}"
set_param "$key" "$value"
shift 2
;;
-r | --rumble-attenuation)
key='rumble_attenuation'
value="${2#*=}"
set_param "$key" "$value"
shift 2
;;
-n | --ff_connect_notify)
key='ff_connect_notify'
value="${2#*=}"
set_param "$key" "$value"
shift 2
;;
--)
shift
break
;;
*)
echo "$NAME: Invalid option"
display_help
exit 1
;;
esac
done
}
### Main Entry Point ###
PARAMETERS=( "$@" )
parse_args "${PARAMETERS[@]}"
# Check if xpadneo is installed
if lsmod | grep -vq 'hid-xpadneo';
then
>&2 echo -e "$0: WARNING: hid-xpadneo not loaded, configured anyways"
fi
atar-axis-xpadneo-0b9d5cc/docs/ 0000775 0000000 0000000 00000000000 15160640572 0016470 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/docs/3P-BUGS.md 0000664 0000000 0000000 00000001246 15160640572 0020035 0 ustar 00root root 0000000 0000000
## Third Party Bugs
While developing this driver we recognized some bugs in KDE and linux itself,
some of which are fixed now - others are not:
* Broken Battery Indicator in KDE
fixed!
* Cambridge Silicon Radio (CSR) chip sets do have problems while reconnecting (OUI 00:1A:7D)
* Most of these problems may be fixed in kernel 5.10
* Qualcomm chip sets may have performance and lag problems (OUI 9C:B6:D0)
* Some Bluetooth dongles may need additional firmware for proper operation
* Possible solution: try installing `linux-firmware` from your distribution
atar-axis-xpadneo-0b9d5cc/docs/BT_DONGLES.md 0000664 0000000 0000000 00000020226 15160640572 0020474 0 ustar 00root root 0000000 0000000
## BT Dongles
Please report your Dongles and how they work [here](https://github.com/atar-axis/xpadneo/issues/93)
> **Note:**
> Product names are not reliable indicators for Bluetooth chipsets. Some vendors ship different hardware revisions
> under the same name. Always check the USB ID (`lsusb`) and chipset information.
> **Note on integrated Bluetooth adapters:**
> PCIe and on-board Bluetooth chipsets may behave very differently from USB adapters.
> Stability can vary significantly depending on chipset generation and firmware.
To identify your Bluetooth adapter:
```bash
lsusb
dmesg | grep -i bluetooth
```
Pay special attention to USB IDs and firmware versions, not product names.
## Bluetooth Low Energy
Some newer controller may work in Bluetooth low energy mode (BLE). One of
those controllers is the XBOX Series X|S controller.
If your distribution supports the command, run `btmgmt info` and look for
`le` in supported and current settings, example:
```
# btmgmt info
Index list with 1 item
hci0: Primary controller
addr 00:1A:7D:XX:XX:XX version 6 manufacturer 10 class 0x100104
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy static-addr phy-configuration
current settings: powered ssp br/edr le secure-conn
name jupiter
short name
```
If `btmgmt` command is not available, try `bluetoothctl mgmt.info` instead.
### Actions Semiconductor
* [eppfun Bluetooth 5.3 USB Adapter](https://www.amazon.co.uk/dp/B0BG5YTK9P)
* Chip set: CM591 (reported, exact variant unclear)
* `ID 10d7:b012 Actions general adapter`
* Performance:
* Stable connection
* No disconnects reported
* Suitable for long gaming sessions
* Tested with:
* Xbox Elite Series 2 controller
* Ubuntu 24.10 (GNOME)
* Reported by @ashleyhinton [here](https://github.com/atar-axis/xpadneo/issues/527)
### Cambridge Silicon Radio
* [Panda Bluetooth 4.0 USB Nano Adapter](https://www.amazon.com/gp/product/B00BCU4TZE/)
* Chip set: CSR ???
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Re-Connection Problems
* Reliable once connected
* Reported by @ugly95 [here](https://github.com/atar-axis/xpadneo/issues/76#issuecomment-462532230)
* [MIATONE Bluetooth Adapter Bluetooth CSR 4.0](https://www.amazon.com/gp/product/B00M1ATR4C/)
* Chip set: CSR 8510
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Re-Connection Problems
* Reliable once connected
* Reported by @ugly95 [here](https://github.com/atar-axis/xpadneo/issues/76#issuecomment-462532230)
* [CSL - Bluetooth 4.0 USB Adapter](https://www.amazon.de/dp/B01N0368AY)
* Chip set: CSR 8510 A10
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Re-Connection Problems
* Initial Connection Problems
* Reported by @germangoergs [here](https://github.com/atar-axis/xpadneo/issues/91) and [here](https://github.com/atar-axis/xpadneo/issues/93#issuecomment-480997846)
* [Sabrent USB Bluetooth 4.0 Micro Adapter for PC](https://www.amazon.com/gp/product/B06XHY5VXF/)
* Chip set CSR ???
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Re-Connection Problems
* Reliable once connected
* Reported by @ugly95 [here](https://github.com/atar-axis/xpadneo/issues/93#issuecomment-481065171)
* [Yizhet USB nano Bluetooth 4.0 Adapter](https://www.amazon.de/gp/product/B01LR8CNXU/)
* Chip set CSR 8510 A10
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Re-Connection Problems
* Reliable once connected
* Reported by @NoXPhasma [here](https://github.com/atar-axis/xpadneo/issues/91#issuecomment-484815264)
* [TP-Link USB Bluetooth Adapter Bluetooth 4.0 (UB400)](https://www.amazon.com/gp/product/B07V1SZCY6)
* Chip set: CSR ???
* `ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)`
* Performance:
* Connection is flawless
* Reported by @Arian8j2 [here](https://github.com/atar-axis/xpadneo/issues/389#issuecomment-1677012088)
### Broadcom
* [Plugable USB Bluetooth 4.0 Low Energy Micro Adapter](https://www.amazon.com/Plugable-Bluetooth-Adapter-Raspberry-Compatible/dp/B009ZIILLI/)
* Chip set: BCM20702A0
* `ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0`
* Performance:
* Connection flawless
* Sometimes laggy in games
* Reported by @ugly95 [here](https://github.com/atar-axis/xpadneo/issues/93#issuecomment-481065171) and [here](https://github.com/atar-axis/xpadneo/issues/76#issuecomment-464397584)
* [Targus BT 4.0 USB adapter](https://www.targus.com/au/acb75au)
* Chip set: BCM20702A0
* `ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0`
* Performance:
* Connection flawless
* Sometimes laggy in games
* Reported by @Zowayix [here](https://github.com/atar-axis/xpadneo/issues/93#issuecomment-487280791)
### Qualcomm
* Unspecified model ():
* `btmon` logs showed very low input report rate and high input lag (300ms+)
### Intel
* Intel 7265 (NGFF / PCIe)
* Chip set: Intel 7265
* `ID 8087:0a2a Intel Corp. Bluetooth wireless interface`
* Performance:
* Rock solid pairing and connection
* Stable with multiple controllers (5 connected simultaneously)
* No special configuration required
* Tested on:
* Ubuntu 25.04
* Reported by @teeedubb [here](https://github.com/atar-axis/xpadneo/issues/541)
* Status: incompatible ()
* OUI: DC:1B:A1 (Intel)
* Used as on-board chip set: Gigabyte B450 AORUS Pro WiFi 1.0 with integrated Bluetooth
* Status: bluetoothd logs "Request attribute has encountered an unlikely error"
* Chip set: AX200
* Used as on-board chip set: ASUS B550-i
### Realtek
Known bad firmware for RTL8761BU chip set is 0xdfc6d922. It causes frequent
reconnects. Firmware version can be found in the kernel log:
```
$ sudo dmesg | grep 'RTL: fw version'
[ 21.193448] Bluetooth: hci0: RTL: fw version 0xdfc6d922
```
Several users reported that switching away from RTL8761BU-based adapters
resolved frequent disconnect issues entirely.
* Realtek RTL8852AE (NGFF / PCIe)
* Chip set: RTL8852AE
* Performance:
* Frequent disconnects and reconnects
* Unreliable pairing with some Xbox One controllers
* Other controllers may fail to pair entirely
* Tested on:
* Ubuntu 25.04 (distribution-provided drivers)
* Notes:
* Multiple users report instability with game controllers
* Reported by @teeedubb [here](https://github.com/atar-axis/xpadneo/issues/541)
* TP-Link USB Bluetooth Adapter (marketed as "UB400" or "UB500")
* Multiple hardware revisions exist under the same product name
* Some units report as:
* `ID 2357:0604` (RTL8761BU, problematic firmware)
* Performance:
* Frequent disconnects with known bad firmware
* Notes:
* Devices sold as "UB400" may internally be UB500-class hardware
* Always verify using `lsusb`
* [TP-Link USB Bluetooth Adapter Bluetooth 5.0 (UB500)](https://www.amazon.com/gp/product/B09DMP6T22)
* Chip set: RTL8761BU
* `ID 2357:0604 TP-Link TP-Link UB500 Adapter`
* Performance:
* Disconnects after some random interval and reconnects
* When it's connected, it's good
* Reported by @Arian8j2 [here](https://github.com/atar-axis/xpadneo/issues/389#issuecomment-1677012088)
* [Simplecom NB409 Bluetooth 5.0 USB Wireless Dongle with A2DP EDR](https://www.mwave.com.au/product/simplecom-nb409-bluetooth-50-usb-wireless-dongle-with-a2dp-edr-ac38550)
* Chip set: RTL8761BU
* `ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio`
* Status: it works straight out of the box for a user on Manjaro KDE with kernel 5.15 and 6.1
* Reported by @mscharley [here](https://github.com/atar-axis/xpadneo/issues/406)
* [UGREEN Bluetooth 5.0 USB Adapter (CM390)](https://www.amazon.com/gp/product/B08R8992YC/)
* Chip set: RTL8761BU
* `ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio`
* Performance:
* Connection flawless if good firmware is being used
atar-axis-xpadneo-0b9d5cc/docs/CONFIGURATION.md 0000664 0000000 0000000 00000006616 15160640572 0021032 0 ustar 00root root 0000000 0000000
## Configuration
**Alternatively** to using the config-script, you can also do it by hand:
The driver can be reconfigured at runtime by accessing the following sysfs
files in `/sys/module/hid_xpadneo/parameters`:
- `disable_deadzones` (default `0`)
- `0` enables standard behavior to be compatible with `joydev` expectations
- `1` enables raw passthrough of axis values without dead zones for high-precision use with modern Wine/Proton or other games implementing circular deadzones
- `trigger_rumble_mode` (default `0`)
- `0` rumbles triggers by pressure and current rumble effect
- `1` reserved/unsupported since v0.10, identical to `0`
- `2` disables trigger rumble
- `rumble_attenuation` (default `0,0`)
- Attenuation the strength of the force feedback
- `0` (none, full rumble) to `100` (max, no rumble)
- If one or two values are given, the first value is the overall attenuation
- If two values are given, the second value applies an extra attenuation to the triggers
- Example 1: `0,100` turns trigger rumble off, `100,0` or `100` turn all rumble off
- Example 2: `50,50` makes 50% rumble overall, and 25% for the triggers (50% of 50% = 25%)
- Example 3: `50` makes 50% rumble overall (main and triggers)
- Trigger-only rumble is not possible
- `quirks` (default empty)
- Let's you adjust the quirk mode of your controller
- Comma separated list of `address:flags` pairs (use `+flags` or `-flags` to change flags instead)
- Specify your controller MAC address in the format `11:22:33:44:55:66`
- Specify the flags as sum of the following:
- `1` if your controller does not support pulse parameters (i.e., 8BitDo controllers)
- `2` if your controller does not support trigger rumble (most clones in compatibility mode)
- `4` if your controller does not support individual motor programming (i.e., 8BitDo controllers)
- `8` if your controller supports hardware profiles (auto-detected, do not set manually)
- `16` if your controller boots in Linux mode (auto-detected, do not change manually)
- `32` if you prefer to use Nintendo button mappings (i.e., 8BitDo controllers, defaults to off)
- `64` if your controller has a awkwardly mapped Share button (auto-detected, do not set manually)
- `128` if your controller uses motor-enable bits in reverse
- `256` if your controller uses motor-enable bits with trigger and main motors swapped
- `512` to avoid having your controller misdetected by heuristics (please report a bug)
- `disable_shift_mode` (default 0)
- Let's you disable Xbox logo button shift behavior
- '0' Xbox logo button will be used as shift
- '1' will pass through the Xbox logo button as is
- `disable_mouse` (default 0)
- Let's you disable initialization of a mouse device through xpadneo, thus disabling mouse mode.
- '0' mouse device will be available
- '1' mouse device will be absent
- `debug_descriptor` (default 0)
- Enable debug logging for HID descriptor parsing
Some settings may need to be changed at loading time of the module, take a look at the following example to see how
that works:
### Example
To disable trigger rumbling temporarily, run
`echo 2 | sudo tee /sys/module/hid_xpadneo/parameters/trigger_rumble_mode`
To make the setting permanent and applied at loading time, try
`echo "options hid_xpadneo trigger_rumble_mode=2" | sudo tee /etc/modprobe.d/99-xpadneo-bluetooth.conf`
atar-axis-xpadneo-0b9d5cc/docs/DEBUGGING.md 0000664 0000000 0000000 00000004046 15160640572 0020311 0 ustar 00root root 0000000 0000000
## Debugging
If you are asked to send debug info or want to fix bugs, follow the guide
displayed when [opening a new bug report](https://github.com/atar-axis/xpadneo/issues/new?template=bug_report.md).
This has all the hints to get you started with debugging. You may also want
to increase the kernel debug level if your distribution sets it very low.
Otherwise, the driver reports most incidents, quirks, and fixes to `dmesg`.
### Environment
Useful information can now be acquired with the commands:
* `dmesg`: I advise you to run `dmesg -wdH` in a terminal while you connect your controller from a second terminal
to get hardware information in realtime.
* `modinfo hid_xpadneo`: get information on xpadneo as a kernel module.
* When your gamepad is connected, get the HID report descriptor:
```bash
xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
```
### Generated Events
If you are asked to supply the events generated by xpadneo, please run the following command:
```
perl -0777 -l -ne 'print "/dev/input/$1\n" if /Name="Xbox Wireless Controller".*Handlers.*(event[0-9]+)/s' /proc/bus/input/devices | xargs evtest
```
Do whatever you think does not behave correctly (e.g. move the sticks from left to right if you think the range
is wrong) and upload the output.
### HID Device Descriptor (including checksum)
If we ask you to supply the device descriptor, please post the output of the following command:
```bash
xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
```
### Bluetooth Connection
Some debugging needs a deeper low level look. You can do this by running `btmon`:
```bash
sudo btmon | tee xpadneo-btmon.txt
```
Then reproduce the problem you are observing.
We probably also need some information about the dongle:
* Run `lsusb` and pick the device number of your dongle.
* Run `lsusb -v -s## | tee xpadneo-lsusb.txt` where `##` is the device number picked in the previous step.
atar-axis-xpadneo-0b9d5cc/docs/FIRMWARE_FLASHING.md 0000664 0000000 0000000 00000016440 15160640572 0021506 0 ustar 00root root 0000000 0000000
# Firmware Update / Flashing Instructions
There are multiple ways to update the controller firmware which require different technical skills. The easiest method
is using an Xbox Console. If you do not own one, you may want to ask a friend who does.
The next easiest method is using a Windows PC. If you are using dual-boot or have access to a Windows PC, we recommend
that method.
The last method requires some technical skills and installing a Windows VM in Linux. This is quite easy and safe, too,
but you need to follow the instructions quite strictly.
---
## Firmware Update Using an Xbox Console (Recommended)
If you have access to an **Xbox console** (Xbox One, Xbox Series S, or Xbox Series X), this is the **simplest and
safest way** to update your controller’s firmware.
Many users are not aware that controller firmware updates can be performed directly on an Xbox console.
### Advantages
- **No Windows PC required**
- **No virtual machines or USB passthrough**
- **No risk of soft-bricking during flashing**
- Firmware is installed **directly by Microsoft**
### Requirements
- An Xbox console (your own, or one belonging to a friend or family member)
- An internet connection on the console
- A USB cable (recommended) or a wireless connection
### Steps
1. Power on the Xbox console
2. Connect the controller to the Xbox (USB cable recommended, wireless also works)
3. Open **Settings**
4. Navigate to
**Devices & connections → Accessories**
5. Select the controller
6. If a firmware update is available, the Xbox will prompt you automatically
7. Follow the on-screen instructions to complete the update
Once the update is finished, you can reconnect the controller to your Linux system and use it normally.
### When this method is strongly recommended
* You do not have access to a Windows PC
* You want to avoid virtual machines entirely
* You previously experienced USB passthrough issues
* You want the lowest-risk update method available
---
## Firmware Flashing under Linux Using a Windows VM
Updating the firmware of Xbox controllers currently requires Windows. If you do not have a native Windows installation,
this can be done safely using a virtual machine – **but only if USB passthrough is configured correctly**.
**Important note about “brickingâ€**
What users often describe as “bricking†during firmware updates is almost always a **temporary soft-brick**:
- During flashing, the controller switches into a **bootloader mode**
- In this mode, the USB **Product ID (PID) changes**
- If the VM does not automatically re-attach the device after this PID change, the update may appear to hang or fail
In almost all cases, this can be recovered by unplugging the USB cable and removing the batteries. However, incorrect
USB passthrough configuration can still cause failed updates or confusing behavior.
The instructions below are written to **avoid this situation entirely**.
---
## Recommended option (most reliable): Use the Xbox Wireless USB Dongle
If you own an **Xbox Wireless USB Dongle**, this is the **preferred and safest method**:
- The dongle does **not** change its USB PID during controller firmware updates
- Firmware flashing works **wirelessly**
- USB passthrough is stable and does not require special filters
- Follow the instructions for the USB cable method below; the steps are mostly identical
Simply pass the **dongle** through to the Windows VM and update the controller via **Xbox Accessories**.
If you do **not** have the dongle, follow the USB method below carefully.
---
## Firmware Update using VirtualBox or a Windows machine (USB cable method)
### Requirements
If you already have a Windows PC, you can skip the VM and ISO download entirely, and update directly:
- VirtualBox
- Windows 10, download from Microsoft:
[https://www.microsoft.com/software-download/windows10ISO](https://www.microsoft.com/software-download/windows10ISO)
- or Windows 11, download from Microsoft:
[https://www.microsoft.com/software-download/windows11](https://www.microsoft.com/software-download/windows11)
Required for both methods:
- Xbox Accessories app (from Microsoft Store)
### Step 1 – Create and prepare the Windows VM
*Skip this step but install the **Xbox Accessories** app if you already have a Windows machine.*
1. Install VirtualBox
2. Create a new Windows 10 or Windows 11 virtual machine
3. Boot the VM using the Windows 10 or Windows 11 ISO
4. Complete Windows setup
5. Install:
- All Windows Updates
- All Microsoft Store updates
- **Xbox Accessories** from the Microsoft Store
6. Shut down the VM
So far, everything is standard Windows setup.
### Step 2 – Prevent Linux from interfering with USB passthrough (important)
*Skip this step if you don't use a VM but a native Windows machine.*
On some systems, the legacy `xpad` driver is loaded automatically. This driver makes the controller appear as an
Xbox 360 controller, which **breaks USB passthrough for firmware flashing**.
To prevent this temporarily:
1. Create a new file in `/etc/modprobe.d/` (the filename does not matter, it just needs to end in `.conf`)
2. Add the following line:
```conf
blacklist xpad
```
3. Reboot your Linux system
This ensures the controller is passed to the VM **unchanged**.
> You can safely undo this later.
### Step 3 – Configure USB passthrough correctly (critical step)
*Skip this step if you don't use a VM but a native Windows machine.*
1. Plug the controller into your PC via USB
2. Open the VM **Settings**
3. Go to **USB**
4. Click **“Add new USB filter from deviceâ€** (USB icon with a plus)
5. Select your controller or the dongle from the list

Now the important part:
6. The USB filter must match the physical USB port, not the device ID
7. Edit the newly created USB filter
8. **Remove all fields except**:
- `Port`
- `Name` (can be anything you like)
This ensures:
- The controller stays attached to the VM even when it switches into bootloader mode
- The firmware update will **not** abort due to a PID change
### Step 4 – Update the firmware
1. Start the Windows VM or your Windows machine
2. Launch **Xbox Accessories**
3. The controller should now appear correctly
4. Perform the firmware update
**Important:**
- Keep the controller plugged into the **same physical USB port** throughout the update.
- Do **not** unplug the controller during the update.
### Step 5 – Cleanup (optional)
*Skip this step if you didn't blacklist `xpad` earlier.*
If you want to use the legacy `xpad` driver again (e.g. for wired gameplay):
1. Remove the blacklist file created earlier
2. Reboot
---
## Troubleshooting / Recovery
If something goes wrong during flashing:
- This does not damage the controller permanently
- Unplug the controller from USB if applicable (the dongle can stay plugged in)
- Remove the batteries
- Wait a few seconds
- Reconnect and try again
This resolves almost all cases of "bricked" controllers.
---
## Summary
- Firmware flashing via VM **is safe** if USB passthrough is configured correctly
- PID changes during bootloader mode are expected behavior
- Incorrect USB filters are the most common cause of failed updates
- Using the **Xbox Wireless USB Dongle** avoids all PID-related issues and is strongly recommended
atar-axis-xpadneo-0b9d5cc/docs/Gemfile 0000664 0000000 0000000 00000000111 15160640572 0017754 0 ustar 00root root 0000000 0000000 source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
atar-axis-xpadneo-0b9d5cc/docs/PACKAGING.md 0000664 0000000 0000000 00000011422 15160640572 0020276 0 ustar 00root root 0000000 0000000
## Packaging
From v0.10 on, xpadneo provides a `Makefile` to help package maintainers
avoiding a lot of the duplicate work which was historically done by the
installer script. This also allows for prefixed installation to prepare an
install image before merging the package to the live system.
Run `make help` for an overview of the options.
### Configuration
The top-level `Makefile` supports some configuration variables:
- `PREFIX`: Allows to install the package to a pre-install image which
can be put in an archive for package deployment and file tracking. If
this variable is provided, it will also skip deployment of the DKMS
source tree. This is mainly due to limitations of DKMS handling
prefixed installations properly. Package maintainers have to do this
manually in a post-installation step.
- `ETC_PREFIX`: Allows to install files to `/usr/lib` which would
normally go to `/etc`. This is applied relative to `PREFIX`.
- `DOC_PREFIX`: Allows to install documentation files to a custom location.
Default is `/usr/share/doc/xpadneo`. This is applied relative to `PREFIX`.
- `META_PREFIX`: Allows to install metainfo files to a custom location.
Default is `/usr/share/metainfo`. This is applied relative to `PREFIX`.
**Example:**
```bash
make PREFIX=/tmp/xpadneo-image ETC_PREFIX=/usr/lib install
```
### Installation
When using the `Makefile`, xpadneo will no longer automatically try to build
the DKMS module. How to handle this in detail is left up to the package
maintainer. If you run `make install` without a `PREFIX` or use an empty
prefix, `make install` will run `dkms add` to add the source code to the
DKMS source tree. No other DKMS action will be taken.
**Examples:**
```bash
# Install package files to `/` and deploy the DKMS sources
make install
# Install package files but deploy the DKMS sources as a separate step
make PREFIX=/ install
dkms add hid-xpadneo
```
Instead of directly building the DKMS module, this allows a package installer
to just provide the source code and install the support files. Building of
the actual module via DKMS is left to the package maintainer.
Many distributions recommend to install base configuration to `/usr/lib`
instead of `/etc`. The make-based installer supports this by supplying a
`ETC_PREFIX` variable.
**Example:**
```bash
# Install package files to `/usr/lib` instead of `/etc`
make ETC_PREFIX=/usr/lib install
# This can be combined with prefixed installation
make PREFIX=/tmp/xpadneo-image ETC_PREFIX=/usr/lib install
dkms add hid-xpadneo
```
In all these usages, xpadneo will never try to build and install the kernel
module on its own. This step is left up to the package maintainer.
**Background:** DKMS does not support prefixed installations. If you try to
do so, symlinks will point to the wrong location. DKMS also doesn't support
proper uninstallation: It will remove the kernel module from its build system
but it won't touch the files it copied to `/usr/src` during `dkms add`.
Package maintainers are required to properly handle this according to their
specific distribution. xpadneo won't try to mess with this to prevent errors
in the boot system of the distribution. It cannot know the implementation
details.
`make PREFIX=...` will warn about this but still show the command which would
be run:
```
# make PREFIX=...
Makefile:7: Installing to prefix, dkms commands will not be run!
...
: SKIPPING dkms add hid-xpadneo
```
Documentation will be installed to `DOC_PREFIX` and follows the same rules as
above. Default location is `/usr/share/doc/xpadneo`. Some distributions may
want to override this with a versioned path.
### Uninstallation
Package maintainers usually don't need to care about uninstallation because
the packaging system tracks installed files and also properly removes them.
Still, xpadneo provides `make uninstall` which runs the following steps for
that **exact** xpadneo version only:
1. Removes xpadneo from *all* kernel instances of DKMS
2. Removes xpadneo kernel sources from `/usr/src`
3. Removes installed udev rules and module configurations **unconditionally**
Step 3 means that it will remove files which may be shared with an already
installed xpadneo package. **Be careful!**
If using `PREFIX` or `ETC_PREFIX`, the same rules as above apply: If a
`PREFIX` is provided, `dkms remove` won't be run.
This is not meant to be used by package maintainers as part of handling the
package installation. It is a development tool.
### Summary
Package maintainers are advised to migrate to the new installation method.
Please provide feedback if you see problems or missing features.
Package maintainers **SHOULD NOT** use `install.sh` or its sibling scripts
to maintain the installation. But you may use the contents of it as a guide
for your package installation script.
atar-axis-xpadneo-0b9d5cc/docs/README.md 0000664 0000000 0000000 00000050363 15160640572 0017756 0 ustar 00root root 0000000 0000000
[](https://ko-fi.com/O4O43SURE)
If you want to support me or accelerate the development of a special feature, consider a small donation :heart:
Just leave a message if your donation is for a specific use (like a new hardware or a specific function).
[](https://dev.azure.com/dollingerflorian/dollingerflorian/_build/latest?definitionId=1?branchName=master)
[](http://isitmaintained.com/project/atar-axis/xpadneo "Average time to resolve an issue")
[](https://repology.org/project/xpadneo/versions)
[](https://discord.gg/nCqfKa84KA)
# Advanced Linux Driver for Xbox One Wireless Gamepad

Quote from [@atar-axis (Florian Dollinger)](https://github.com/atar-axis), creator of the initial driver:
> This is the first driver for the Xbox One Wireless Gamepad (which is shipped with the Xbox One S). I wrote it for a
> student project at fortiss GmbH and it is fully functional but does only support the connection via Bluetooth as
> yet - more will follow.
>
> Many thanks to *Kai Krakow* who **sponsored** me a Xbox One Wireless Controller :video_game: (including Wireless
> Adapter) and a pack of mouthwatering guarana cacao :coffee:
## Other Projects
- [xone](https://github.com/dlundqvist/xone) is a driver aiming for fully supporting all Microsoft GIP devices thus
replacing the xpad driver in the kernel. It supports Xbox One and Xbox Series X|S accessories.
- [xow](https://github.com/medusalix/xow) is an unmaintained driver for the Xbox One S controllers, which has been
superseded by xone. Kudos to [@medusalix](https://github.com/medusalix) for working together on finding some
work-arounds for controller firmware bugs.
- [xpad](https://github.com/paroj/xpad) supports this and many other controllers in USB mode.
- [MissionControl](https://github.com/ndeadly/MissionControl) aims to support the controller on Nintendo Switch via
Bluetooth.
These other projects may not support some of the advanced features of xpadneo.
## Heads Up Package Maintainers
Licensing of the project has changed, so please update your packaging if you maintain a package for this driver.
Please refer to [LICENSE.md](../LICENSE.md) for details. If you have any questions, please ask.
The project introduced some packaging helpers and changed the installation process. Please see
[Packaging](https://atar-axis.github.io/xpadneo/#packaging).
## Breaking Changes
### Kernel 4.18 or newer required
As of xpadneo v0.10, we require kernel 4.18 or later to utilize `HID_QUIRK_INPUT_PER_APP` which splits the gamepad into
multiple sub-devices to fix problems and incompatibilities at several layers.
### Paddle Button Codes Changed
To stay compatible with SDL and current kernel development, the button codes for the grip paddles of XBE2 controllers
have been moved to the official kernel standards as of kernel 6.17. We will also reflect this change for older kernel
versions so user-space can rely on a consistent mapping. If you remapped those buttons with third-party software, you
will need to redo those mappings.
### SDL2 2.28 Compatibility
Thanks to [@slouken](https://github.com/slouken) from SDL2, xpadneo mappings are now auto-detected in the upcoming
SDL2 2.28 release. This will fix long-standing problems with Steam Input and SDL2 games. With this release, we will
also have full paddle support.
If you still see problems, ensure that you didn't create custom controllerdb entries. See also:
- https://github.com/atar-axis/xpadneo/issues/428
- https://github.com/libsdl-org/SDL/commit/9567989eb3ce9c858f0fe76806c5ccad69da89ba
- https://github.com/libsdl-org/SDL/commit/0f4b15e16b7f07a46db6dc8e651f8c1849d658c5
Known issues:
- The Share button will currently not be recognized by SDL2, scheduled to be fixed in xpadneo v0.11
- If SDL2 uses hidraw, mappings will be wrong, export `SDL_JOYSTICK_HIDAPI=0` in your profile or find which software
enabled hidraw device access to all drivers
### Quirks by Design
With BLE firmware, all models switched to a unified HID report descriptor, only the XBE2 controller identifies with
PID 0x0B22 while the other models identify with PID 0x0B13. This has some known consequences:
- All non-XBE2 controllers will claim to have a Share button no matter if it physically exists. As HID doesn't report
the internal model number, xpadneo cannot fix it currently. The button is currently mapped to F12, so this has no
consequences.
- All XBE2 controllers will claim to have a full keyboard and the Share button is actually the Profile button. Since
Share is currently mapped to F12, this will have no consequences.
## Advantages of this Driver
- Supports Bluetooth
- Supports most force feedback and all rumble effects through Linux `ff-memless` effect emulation
- Supports [Trigger Force Feedback](https://www.youtube.com/watch?v=G4PHupKm2OQ) in every game by applying a
pressure-dependent effect intensity to the current rumble effect (not even supported in Windows)
- Supports adjusting rumble intensity including disabling rumble
- Offers a consistent mapping, even if the Gamepad was paired to Windows/Xbox before, and independent of software
layers (SDL2, Stadia via Chrome Gamepad API, etc)
- Working paddles (buttons on the backside of the controller)
- Correct axis range (signed, important for e.g. RPCS3)
- Supports battery level indication (including the Play 'n Charge Kit)

- Easy installation
- Exposes the currently selected profile to user-space (Xbox Elite 2 controllers, or emulated)
- Supports customization through profiles (work in progress)
- Supports grip paddles (as shipped with the Xbox Elite 2 controller)
- Optional high-precision mode for Wine/Proton users (disables dead zones so games don't apply an additional one)
- Share button support on supported controllers
- Works as a mouse if you are in couch-mode (press Guide+Select)
## Unavailable Features
Across all models, xpadneo won't support audio features of the controllers because the firmware doesn't support audio
in Bluetooth mode. In the future, xpadneo may support audio when USB and dongle support will be added.
### Xbox One S Wireless Controller
This is the initial controller supported from the first version of xpadneo. All features are fully supported. This
controller uses emulated profile switching support (see below).
### Xbox Elite Series 2 Wireless Controller
Basic support for the Xbox Elite Series 2 Wireless controller is present, covering all the features of the driver.
The following features are missing:
- Upload of profile mappings and sensitivity curves is currently not supported.
This controller uses native profile switching support (see below).
### Xbox Series X|S Wireless Controller
Full support for the Xbox Series X|S controller is present including the share button. This is currently statically
mapped to keyboard event `KEY_F12` to take screenshots with Steam. It will be configurable in the future. This
controller uses emulated profile switching support (see below).
This controller uses BLE (Bluetooth low energy) and can only be supported if your Bluetooth dongle also supports BLE.
**Known problems:** The controller may not properly set its connection parameters, resulting in laggy and choppy
input experience. See also: [Troubleshooting](https://atar-axis.github.io/xpadneo/#troubleshooting).
### 8BitDo Controllers
This driver supports the Nintendo layout of those controllers to exposes them correctly as button A, B, X, and Y
as labelled on the device. This is swapped compared to the original Xbox controller layout. However, this feature is
not enabled by default. If you want to use this feature, you have to add a quirk flag to the module options:
```
# /etc/modprobe.d/99-xpadneo-quirks.conf
options hid_xpadneo quirks=E4:17:D8:xx:xx:xx+32
```
where you replace `xx:xx:xx` with the values from your controller MAC (as shown in `dmesg`). The value `32` enables
Nintendo layout. If you'll want to add other quirk flags, simply add the values,
e.g. `32` + `7` (default quirks for 8BitDo) = `39`. After changing this, reload the driver or reboot.
This controller uses emulated profile switching support (see below).
**Breaking change:** Users of previous versions of the driver may want to remove their custom SDL mappings. Full
support has been added for these controllers and broken mapping of previously versions no longer needs to be
applied. See also: [SDL](https://atar-axis.github.io/xpadneo/#troubleshooting#sdl).
### GuliKit KingKong Controller Family
This driver supports the GuliKit King Kong controller family, the driver was tested with model NS09 (using firmware
v2.0) and NS39 (aka KK3 MAX, firmware v3.6) but should work just fine for the older models, too. If in doubt, follow
the firmware upgrade guides on the GuliKit home page to receive the latest firmware. Both the Android mode and the
X-Input mode are supported but it may depend on your Bluetooth stack which mode works better for you (Android mode
didn't pair for me).
This driver supports the Nintendo layout of those controllers to exposes them correctly as button A, B, X, and Y
as labelled on the device. This is swapped compared to the original Xbox controller layout. However, this feature is
not enabled by default. If you want to use this feature, you have to add a quirk flag to the module options:
```
# /etc/modprobe.d/99-xpadneo-quirks.conf
options hid_xpadneo quirks=98:B6:EA:xx:xx:xx+32
```
where you replace `xx:xx:xx` with the values from your controller MAC (as shown in `dmesg`). The value `32` enables
Nintendo layout. If you'll want to add other quirk flags, simply add the values,
e.g. `32` + `131` (default quirks for GuliKit) = `163`. After changing this, reload the driver or reboot.
However, alternatively the controller supports swapping the buttons on the fly, too: Just press and hold the settings
button, the click the plus button. Thus, the quirks flag is just a matter of setting the defaults.
This controller uses emulated profile switching support (see below).
### GameSir T4 Cyclone Family
This driver supports the GameSir T4 Cyclone controller family, tested by the community. The Pro-models also support
trigger rumble but since we cannot distinguish both models by the Bluetooth MAC OUI, we simply enable the trigger
rumble protocol for both variants. This should not introduce any problems but if it does, and your model does not have
trigger rumble support, you can explicitly tell the driver to not use the trigger rumble motors by adding a quirk flag:
```
# /etc/modprobe.d/99-xpadneo-quirks.conf
options hid_xpadneo quirks=A0:5A:5D:xx:xx:xx+2
```
This controller uses emulated profile switching support (see below).
### GameSir T4 Nova Lite Family
This driver supports the GameSir T4 Nova Lite controller family, tested by the community. These models have a quirk of
only allowing rumble when all motor-enable bits are set and does not have trigger rumble motors. It looks like these
models are available with different MAC OUIs, so your particular controller may not be automatically detected. In this
case, manually add the quirk flags for your controller:
```
# /etc/modprobe.d/99-xpadneo-quirks.conf
options hid_xpadneo quirks=3E:42:6C:xx:xx:xx+6
```
This controller uses emulated profile switching support (see below).
This manufacturer uses random MAC addresses, so we cannot rely on known OUIs. Heuristics try to detect this controller.
### A Note About GameSir Devices
GameSir devices do not use officially registered MAC OUIs on the Bluetooth radio part, and they come with various
flaky firmware behavior and bugs, while mimicking all other identifiable feature of genuine Microsoft controllers
perfectly. This makes such devices hard to detect to work around the bugs in the rumble implementation but we will
need a correct implementation in a future version of xpadneo. This means that xpadneo will probably drop official
support for GameSir devices in the future: Base functionality should work out of the box but advanced future rumble
features may show erratic behavior. There's nothing we can do about that and you should instead complain at the
manufacturer: either properly implement the full rumble protocol, or just stick to officially registered OUIs.
If you've come here because your kernel logged `enabling heuristic GameSir Nova quirks` but you don't have a GameSir
device, try the following module option and report the incident on our issue tracker:
```
# /etc/modprobe.d/99-xpadneo-quirks.conf
options hid_xpadneo quirks=78:86:2E:xx:xx:xx+512
```
## Profile Switching
The driver supports switching between different profiles, either through emulation or by using the hardware
switch that comes with some models. This switching can be done at any time even while in a game. The API for
customizing each profile does not exist yet.
The currently selected profile is exposed to user-space as an additional axis `ABS_PROFILE` (supported since kernel
6.0-rc1) with 4 positions, indicating which profile has currently been selected. For user-space to make full use of
this knowledge, one would need to remap the paddles to distinctive, unique buttons in each profile. Otherwise you are
limited to the generic gamepad buttons. Thus, the "profile axis" can be used as a shift operator in software that
supports it.
### Native Profile Switching Support
The driver support native profile switching for the Xbox Elite Series 2 controller. However, the feature is not
finalized yet:
- The default profile (no LED) exposes the paddles as extra buttons.
- The other three profiles behave the same way by default. While there is no support for modifying them currently,
configurations set in the [Xbox Accessories app (Windows only)](https://apps.microsoft.com/store/detail/xbox-accessories/9NBLGGH30XJ3)
will carry over and operate as intended.
### Emulated Profile Switching Support
The driver emulates profile switching for controllers without a hardware profile switch by pressing buttons A, B, X,
or Y while holding down the Xbox logo button. However, the following caveats apply:
- Profiles currently behave all the same, and there is no support for configuring them.
- Full support will be available once the Xbox Elite Series 2 controller is fully supported.
- If you hold the button for too long, the controller will turn off - we cannot prevent that.
**Important:** Emulated profile switching won't work if you disabled the shift-mode of the Xbox logo button (module
parameter `disable_shift_mode`).
### Mouse Profile Support
The driver can switch to emulating a mouse (and limited keyboard) on all supported controllers. Press
Guide+Select to switch to mouse mode or back to controller mode:
- Left stick moves the mouse pointer
- Right stick can be used as a scrolling wheel/ball
- Triggers for left and right mouse button
- Shoulder buttons for back and forward button
- D-pad for cursor movement
- Menu to show on-screen keyboard (untested, we send `KEY_ONSCREEN_KEYBOARD` on the consumer device)
- A for Enter
- B for Escape
**Important:** The mouse profile won't work if you disabled the shift-mode of the Xbox logo button (module parameter
`disable_shift_mode`). If you set the new `disable_mouse` module parameter to `1`, xpadneo will no longer register a
mouse device at all, so the Guide button combo will simply pass through to the desktop and no mouse emulation will be
started.
## Getting Started
### Distribution Packages
If your distribution has a maintained package, you can just use that and do not need to follow the manual install
instructions below:
[](https://repology.org/project/xpadneo/versions)
### Notes for Package Maintainers
To properly support module signing and UEFI secure boot, `openssl` and `mokutil` are required additionally to the
prerequisites below. The [DKMS readme](https://github.com/dell/dkms/blob/master/README.md) has more instructions.
### Prerequisites
Make sure you have installed *dkms*, *linux headers* and a bluetooth implementation (e.g. *bluez*) and their
dependencies.
Kernel maintainers should also include the `uhid` module (`CONFIG_UHID`) because otherwise Bluetooth LE devices (all
models with firmware 5.x or higher) cannot create the HID input device which is handled in user-space by the bluez
daemon.
- On **Arch** and Arch-based distributions (like **EndeavourOS**), try
`sudo pacman -S dkms linux-headers bluez bluez-utils`
- On **Debian** based systems (like Ubuntu) you can install those packages by running
`sudo apt-get install dkms linux-headers-$(uname -r)`
- On **Fedora**, it is
`sudo dnf install dkms make bluez bluez-tools kernel-devel-$(uname -r) kernel-headers`
- On **Manjaro** try
`sudo pacman -S dkms linux-latest-headers bluez bluez-utils`
- On **openSUSE** (tested on Tumbleweed, should work for Leap), it is
`sudo zypper install dkms make bluez kernel-devel kernel-source`
- On **OSMC** you will have to run the following commands
`sudo apt-get install dkms rbp2-headers-$(uname -r)`
`sudo ln -s "/usr/src/rbp2-headers-$(uname -r)" "/lib/modules/$(uname -r)/build"` (as a [workaround](https://github.com/osmc/osmc/issues/471))
- On **Raspbian**, it is
`sudo apt-get install dkms raspberrypi-kernel-headers`
If you recently updated your firmware using `rpi-update` the above package may not yet include the header files for
your kernel. Please follow the steps described [here](https://github.com/notro/rpi-source/wiki) in this case.
- On **generic distributions**, it doesn't need DKMS but requires a configured kernel source tree, then:
`cd hid-xpadneo && make modules && sudo make modules_install`
- **Module singing and UEFI secure boot:** If installing yourself, you may need to follow the instructions above for
package maintainers.
Please feel free to add other distributions as well!
### Installation
- Download the Repository to your local machine
`git clone https://github.com/atar-axis/xpadneo.git`
- `cd xpadneo`
- If using DKMS, run `sudo ./install.sh`
- If not using DKMS, follow steps above (generic distribution)
- Done!
### Connection
- `sudo bluetoothctl`
- `[bluetooth]# scan on`
- wait until all available devices are listed (otherwise it may be hard to identify which one is the gamepad)
- push the connect button on upper side of the gamepad, and hold it down until the light starts flashing fast
- wait for the gamepad to show up in bluetoothctl, remember the address (e.g. `C8:3F:26:XX:XX:XX`)
- `[bluetooth]# scan off` to stop scanning as it may interfere with properly pairing the controller
- `[bluetooth]# pair `
- `[bluetooth]# trust `
- `[bluetooth]# connect ` (should usually not be needed but there are [open bugs](https://github.com/atar-axis/xpadneo/issues/198))
- The `` parameter is optional if the command line already shows the controller name
You know that everything works fine when you feel the gamepad rumble ;)
If it doesn't, please check our documentation in [Troubleshooting](https://atar-axis.github.io/xpadneo/#troubleshooting).
### Configuration
- If using DKMS: Use `sudo ./configure.sh` to configure the driver as you wish. The script will guide you through the
available options.
### Update
In order to update xpadneo, do the following
- Update your cloned repo: `git pull`
- If using DKMS: Run `sudo ./update.sh`
- otherwise follow the steps above (generic distribution)
### Uninstallation
- If using DKMS: Run `sudo ./uninstall.sh` to remove all installed versions of hid-xpadneo
- otherwise follow the steps above (generic distribution)
## Further Information
For further information please visit the GitHub Page which is generated
automatically from the content of the `/docs` folder.
You will find there e.g. the following sections
- [Troubleshooting](https://atar-axis.github.io/xpadneo/#troubleshooting)
- [Debugging](https://atar-axis.github.io/xpadneo/#debugging)
- [Compatible BT Dongles](https://atar-axis.github.io/xpadneo/#bt-dongles)
atar-axis-xpadneo-0b9d5cc/docs/SDL.md 0000664 0000000 0000000 00000011330 15160640572 0017432 0 ustar 00root root 0000000 0000000
## SDL Mapping
We fixed the following problem by pretending we are in Windows wireless mode
by faking the *input device PID* to `0x02E0`. The original PID `0x02FD`
triggers several unwanted fixups at multiple layers, i.e. SDL or the HTML5
game controller API. The following paragraphs document the originally
wrong behavior observed and we clearly don't want our fixed mappings to be
"fixed" again by layers detected a seemingly wrong button mapping:
Since after libSDL2 2.0.8, SDL contains a fix for the wrong mapping introduced
by the generic hid driver. Thus, you may experience wrong button mappings
again.
Also, Wine since version 3.3 supports using SDL for `xinput*.dll`, and with
version 3.4 it includes a patch to detect the Xbox One S controller. Games
running in Wine and using xinput may thus also see wrong mappings.
The Steam client includes a correction for SDL based games since some
version, not depending on the SDL version. It provides a custom SDL
mapping the same way we are describing here.
To fix this and have both SDL-based software and software using the legacy
joystick interface using correct button mapping, you need to export an
environment variable which then overrides default behavior:
```
export SDL_GAMECONTROLLERCONFIG="\
050000005e040000fd02000003090000,Xbox One Wireless Controller,\
a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,\
guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,\
rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,\
start:b7,x:b2,y:b3,"
```
You need to set this before starting the software. To apply it globally,
put this line into your logon scripts.
The id `050000005e040000fd02000003090000` is crafted from your device
id as four 32-bit words. It is, in LSB order, the bus number 5, the
vendor id `045e`, the device id `02fd`, and the interface version
or serial `0903` which is not a running number but firmware dependent.
This version number is not the same as shown in dmesg as the fourth
component.
You can find the values by looking at dmesg when `xpadneo` detects
your device. In dmesg, find the device path, then change to the
device path below `/sys` and look for the files in the `id` directory.
The name value after the id is purely cosmetically, you can name it
whatever you like. It may show up in games as a visual identifier.
If running Wine games, to properly support xpadneo, ensure you have
removed any previous xinput hacks (which includes redirecting
`xinput*.dll` to native and placing a hacked xinput dll in the
game directory. Also ensure your Wine built comes with SDL support
compiled in.
If you do not want to apply this setting globally, you can instead
put the SDL mapping inside Steam `config.vdf`. You can find this
file in `$STEAM_BASE/config/config.vdf`. Find the line containing
`"SDL_GamepadBind"` and adjust or add your own controller (see
above). Ensure correct quoting, and Steam is not running
while editing the file. This may not work for Steam in Wine
because the Wine SDL layer comes first, you still need to export
the variable before running Wine. An example with multiple
controllers looks like this:
```
"SDL_GamepadBind" "030000006d0400001fc2000005030000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,
03000000de280000fc11000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,
03000000de280000ff11000001000000,Steam Virtual Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,
030000006d04000019c2000011010000,Logitech F710 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,
050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,"
```
An alternative store location of user-defined mappings can be found here:
```
$HOME/.local/share/gamecontrollerdb.local.txt
```
atar-axis-xpadneo-0b9d5cc/docs/TESTING.md 0000664 0000000 0000000 00000002414 15160640572 0020130 0 ustar 00root root 0000000 0000000
## Testing and Development
### Working with Pull Requests
If working with pull requests, do not clone a fork of the other repository.
The installer needs the original version tags to properly work and to have
correct version tags that have not been tampered with.
It is always recommended to add additional remotes for the forks to your
already existing local clone.
To do this, follow these steps. This example uses kakra/xpadneo as a fork:
```bash
# checkout a clone from the original repository
git clone https://github.com/atar-axis/xpadneo.git
cd xpadneo
# add the fork for the pull request as a clone
git remote add kakra https://github.com/kakra/xpadneo.git
git remote update
# option 1: switch to another branch within this directory
git switch -C local/branch/name kakra/remote/branch/name
# option 2: setup a git workdir to use an isolated directory
git worktree add ../xpadneo-kakra -B local/branch/name kakra/remote/branch/name
# to update to the latest version of a pull request
git remote update --prune
# then reset your outdated copy of the branch
git reset --merge kakra/remote/branch/name # tries keeping your local modifications
git reset --hard kakra/remote/branch/name # discards your local modifications
```
atar-axis-xpadneo-0b9d5cc/docs/TROUBLESHOOTING.md 0000664 0000000 0000000 00000025712 15160640572 0021310 0 ustar 00root root 0000000 0000000
## Troubleshooting
### Gamepad Does Not Connect Properly
#### High Latency or Lost Button Events with Bluetooth LE
**Affected models:** Xbox controllers using Bluetooth LE (Xbox Series X\|S or later)
While using new Xbox Series X\|S controller, you may experience laggy or choppy input, also button presses may be
lost or delayed. This problem only affects Bluetooth LE controllers, the older models are not affected by these
settings even if you think you may see such a problem.
A proper solution is still missing but we isolated it to the Bluetooth LE connection parameters for latency and
intervals. The bluez developers say that the connected device should suggest the best settings, the bluez daemon only
ships sensible default settings. It looks like the new Xbox controllers do not properly suggest their preferred
connection parameters, some BLE mice show the same problem. You can work around it by changing the bluez defaults
instead. This change is not recommended by the bluez developers but as long as you only use a very specific set of BLE
devices, this change should be fine.
The controller uses 100 Hz internally for its protocol, so we decided to use intervals of 8.75..11.25ms. Each tick is
1.25ms, so we end up with `MinConnectionInterval=7` and `MaxConnectionInterval=9`. If you already use a similar
work-around for other devices, you may need to adjust your settings to the proper bounds, i.e. do not increase the
min value, do not lower the max value.
Edit the following file and restart the Bluetooth service or reboot:
```
# /etc/bluetooth/main.conf
[LE]
MinConnectionInterval=7
MaxConnectionInterval=9
ConnectionLatency=0
```
References:
* https://www.novelbits.io/ble-connection-intervals/
* https://github.com/bluez/bluez/issues/156
* https://wiki.archlinux.org/title/Bluetooth_mouse#Mouse_lag
#### Incompatible Bluetooth Chip Set
Some chip sets, e.g. the CSR 85xx or Intel AX200 (and variants like 3xxx), do have problems when you try to reconnect
the gamepad.
Some chip sets may need additional driver firmware to work correctly. Try installing
`linux-firmware` from your distribution.
See below, if this happens since a firmware upgrade of the controller.
#### Gamepad Connects and Immediately Disconnects since Firmware Upgrade
After upgrading the controller firmware, it is essential to fully remove/forget the device from your Bluetooth device
list, then reboot to ensure a clean state, then re-pair the controller.
Reference:
* https://github.com/atar-axis/xpadneo/issues/439
#### Gamepad Asks for a PIN During Pairing
A user found that with genuine Xbox controllers, the fix is often to use an external USB dongle instead of the internal
chip set for pairing the controller (recommended to try first).
If it still asks for a PIN, try `0000` to connect the controller. It should happen just once.
Some third-party controllers and clones will still show the issue on later connects. The issue should be reported to
the Bluez project to fix it, we only provide a work-around here.
To work around the issue, this solution was found. It may affect other devices and reduces security, use at your own
risk:
```ini
# /etc/bluetooth/input.conf
[General]
UserspaceHID=true
ClassicBondedOnly=false
LEAutoSecurity=false
```
Reference:
* https://github.com/atar-axis/xpadneo/issues/262#issuecomment-1913918332
### Gamepad Is Connected but Did not Rumble
If the gamepad does connect but it doesn't rumble, then most probably the wrong driver is loaded,
or the gamepad is quirky and doesn't fully support the protocol. Your kernel may also be missing the `uhid` module
which is needed by all Bluetooth LE devices for input capabilities because the bluez daemon will handle HID data in
user-space. Most distributions include `uhid` but if in doubt, ask your distribution kernel maintainers.
Check the output of `zgrep UHID /proc/config.gz` to check whether your kernel has uhid support. This is only required
for Xbox controllers with firmware 5.x or higher.
Check the output of the `dmesg` command to see whether xpadneo was loaded and logged your
gamepad.
### Gamepad Has Quirks (i.e., wrong rumble behavior)
You may want to try several combinations of quirk flags added to the module parameters.
See [Configuration](https://atar-axis.github.io/xpadneo/#configuration) and `modinfo hid-xpadneo`
for more information. You may also want to use the hidraw testing utility which bypasses the
driver and let's you try different combination of parameters. The utility is located at
`misc/examples/c_hidraw`.
### Gamepad Does not Connect at All, Runs A Reconnect Loop, or Immediately Disconnects
Check whether ERTM was disabled (see above). Also, some newer models use a different Bluetooth protocol "Bluetooth
low energy" (BLE) which you may accidentally have disabled. Check the following settings in `/etc/bluetooth/main.conf`:
```
[General]
ControllerMode = dual
JustWorksRepairing = confirm
```
#### Xbox Wireless Controller
The newest wireless controllers from Microsoft (Xbox One and Xbox Series X\|S) are known to cause a reconnect loop and
not pairing with Bluez. There are some specific workarounds:
- Plug your controller to a Windows 10 computer via a USB cord. Download
the [Xbox Accessories application](https://xbox.com/accessories-app). When launching the app, it should ask you to
update the firmware of the controller. When it's done, your controller should work just fine with any Linux system.
- If you paired your controller to your linux computer before updating the firmware, and the controller is still not
connecting properly after the firmware update, try removing the bluetooth device and re-pairing through the usual
process.
- If it didn't work, you can try these two workarounds:
- Use a Windows 10 computer *on the same Bluetooth adapter* to pair with the controller. It must absolutely be on the
same Bluetooth adapter, i.e. the same computer (can be inside a virtual machine with Bluetooth passthrough) if it's
an internal Bluetooth adapter, or the same Bluetooth dongle. Then, you can get the pairing keys and install them
within your Linux Bluetooth system.
- After pairing the controller on Windows, refer to
[the steps on the ArchLinux wiki](https://wiki.archlinux.org/title/Bluetooth#Extracting_on_Windows) for
extracting the pairing keys from Windows.
- Reboot the computer and try connecting.
- If this fails, try removing the Xbox controller and re-pairing through the usual process.
- Update to a newer kernel. Kernel 5.13 and higher might have patched a fix.
- Use a different Bluetooth stack. Xbox controllers work fine with Fluoride (the bluetooth stack from Android).
Sadly, it's hard to install on another Linux, and Bluez is the only stack easily provided on most Linux
distributions.
- If none of these options worked, or you can't try them, then the only solution is to plug the controller using a USB
cord. As for now, it won't load the xpadneo driver, but the default controller driver. USB support may be added soon
to xpadneo.
### Gamepad Axes Have Phantom Input, Erratic Behavior, or Triggers Get Stuck
If you observe some of these issues, this is usually a problem with deadzones:
- Triggers get stuck when randomly pressing and depressing them
- Camera or character drift when releasing an axis
- Your hardware degrades and software deadzones become too small
It depends on your situation and setup to decide what your preferred way of fixing is.
xpadneo supports a high precision mode which you can activate via a module parameter. It defaults to off. It is called
`disabled_deadzones`, and when you enable it, xpadneo won't allow the kernel to process any deadzone handling. This is
useful if you run games that properly implement circular deadzones or need very high precision movement. Most Windows
games running via Proton belong to this category. Sometimes, you still need to adjust the settings in game to balance
precision and phantom inputs.
If you stick with the default behavior, the kernel implement deadzones. But this is a very simple implementation and is
based just on absolute axis values instead of center point distance (circular). If you want to or need to use bigger
deadzones, you most likely want to use the deadzone implementation of Proton or games.
This problem will also affect the triggers. One user reported that an emulator didn't properly work until the deadzones
had been adjusted in the emulator, see: https://github.com/atar-axis/xpadneo/issues/474
Finally, over time, most controllers will start to drift slightly. We cannot fix this in the driver because we should
not increase deadzones to arbitrarily high values for all users. Use the game or kernel settings instead to increase
the deadzone. Controllers that use contact-less sensors (hall effect, MR, AMR, or TMR sensors) are usually not
affected.
### Gamepad Axes Are Swapped, Seemingly Unresponsive or Strange Behavior
If you observe this problem with `jstest`, `systemsettings joystick` (KDE) or `jstest-gtk`, there's usually nothing
to do as these test programs use the old `joydev` API while most (modern) games use the `evdev` API. Some emulators,
tho, use the `joydev` API and do not respect the axes naming from `evdev`. In this case, please run the following
command to correct the axes mapping for the js interface:
```bash
jscal -u 8,0,1,3,4,2,5,16,17,10,304,305,307,308,310,311,314,315,317,318 /dev/input/js0
```
Explanation: `-u` set the mapping for `8` axes to axes code `0,1,3,4,...` and for `10` buttons to button codes
`304,305,307,308,...`. This only remaps the `joydev` API, **not** the `evdev` API. Making this change may have
unexpected consequences for applications using both APIs.
**IMPORTANT:** Now test all your axes to collect calibration data. You can then use the following command to store the
settings permanently:
```bash
sudo jscal-store /dev/input/js0
```
If the gamepad does not restore the mapping after disconnecting and reconnecting it, i.e., your distribution doesn't
ship a proper udev rule for that, you may want to add the this udev rule, then reboot (see also
`/misc/examples/udev-rules/99-xpadneo-joydev.rules`):
```bash
# /etc/udev/rules.d/99-xpadneo-joydev.rules
KERNEL=="js*", ACTION=="add", DRIVERS=="xpadneo", RUN+="/usr/bin/jscal-restore %E{DEVNAME}"
```
From now on, connecting the gamepad should restore the values from /var/lib/joystick/joystick.state. If you messed up,
simply remove your gamepad from the file and start over.
Please check, if `jscal-restore` is really in `/usr/bin`, otherwise use the correct path, found by running:
```bash
type -p jscal-restore
```
**IMPORTANT NOTE:** The Chrome gamepad API (used for Stadia and other browser games) is a hybrid user of both the
`joydev` and the `evdev` API bit it uses a hard-coded axes mapping for each controller model. Thus, when you run the
above commands, the API will be confused and now shows the problem you initially tried to fix. To use the Chrome
gamepad API, you'd need to revert that settings. There is currently no known work-around.
atar-axis-xpadneo-0b9d5cc/docs/_config.yml 0000664 0000000 0000000 00000000032 15160640572 0020612 0 ustar 00root root 0000000 0000000 theme: jekyll-theme-cayman atar-axis-xpadneo-0b9d5cc/docs/config_help 0000664 0000000 0000000 00000001353 15160640572 0020672 0 ustar 00root root 0000000 0000000 configure.sh Usage:
NOTE: Short options don't require an equals sign, only long options. EX. -r 3 vs. --rumble-attenuation=50
-h, --help
Display this help screen.
--version
Display version number of xpadneo
-m, --trigger-rumble-mode
Select the parameters for trigger rumble. [0 (pressure controlled), 1 (directional, deprecated), 2 (disable trigger rumble)]
-r, --rumble-attenuation
Attenuate the strength of the trigger force feedback. [0 (none, full rumble) to 100 (max, no rumble)]
-n, --ff_connect_notify
Enable or disable connect notification. [0 (disabled), 1 (enabled)]
NOTE: For more information on configuring xpadneo visit https://atar-axis.github.io/xpadneo/
Or the GitHub page: https://github.com/atar-axis/xpadneo
atar-axis-xpadneo-0b9d5cc/docs/descriptors/ 0000775 0000000 0000000 00000000000 15160640572 0021031 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/docs/descriptors/8bitso_sn30_windows.md 0000664 0000000 0000000 00000023223 15160640572 0025202 0 ustar 00root root 0000000 0000000
# HID Descriptor for 8BitDo SN30 Pro+ (Windows mode)
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:02E0.000B/report_descriptor
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 33 09 34 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 01 09 32 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 01 09
35 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0a 15 00 25 01 75 01 95 0a 81 02 15 00 25 00
75 06 95 01 81 03 05 01 09 80 85 02 a1 00 09 85 15 00 25 01
95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 c0 05 0f 09
21 85 03 a1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 25
00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09
50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91 02 09 a7 15
00 26 ff 00 75 08 95 01 91 02 65 00 55 00 09 7c 15 00 26 ff
00 75 08 95 01 91 02 c0 85 04 05 06 09 20 15 00 26 ff 00 75
08 95 01 81 02 c0 00
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x33, // Usage (Rx)
0x09, 0x34, // Usage (Ry)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x32, // Usage (Z)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0A, // Usage Maximum (0x0A)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0A, // Report Count (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x80, // Usage (Sys Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x00, // Collection (Physical)
0x09, 0x85, // Usage (Sys Main Menu)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x85, 0x04, // Report ID (4)
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x00, // Unknown (bTag: 0x00, bType: 0x00)
// 307 bytes
// best guess: USB HID Report Descriptor
```
Converted to tables of report IDs:
```
TBD
```
Button bitmap (extracted from `btmon`):
```
ID -- -- -- -- -- -- -- -- -- -- -- -- Buttons
01 00 80 00 80 00 80 00 80 00 00 00 00 00 01 00 - B 0000 0001 = 90001
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - B 0000 0001
01 00 80 00 80 00 80 00 80 00 00 00 00 00 02 00 - A 0000 0010 = 90002
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - A 0000 0010
01 00 80 00 80 00 80 00 80 00 00 00 00 00 04 00 - Y 0000 0100 = 90003
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - Y 0000 0100
01 00 80 00 80 00 80 00 80 00 00 00 00 00 08 00 - X 0000 1000 = 90004
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - X 0000 1000
01 00 80 00 80 00 80 00 80 00 00 00 00 00 10 00 - L 0001 0000 = 90005 (shoulder)
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - L 0001 0000
01 00 80 00 80 00 80 00 80 00 00 00 00 00 20 00 - R 0010 0000 = 90006 (shoulder)
01 00 80 00 80 00 80 00 80 00 00 00 00 00 00 00 - R 0010 0000
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/gamesir_nova_2_lite.md 0000664 0000000 0000000 00000003573 15160640572 0025273 0 ustar 00root root 0000000 0000000
# HID Descriptor for GameSir Nova Lite 2 (Windows mode)
Hex dump of the controller descriptor:
```
xpadneo 0005:045E:02E0.000C: report descriptor: length=306 crc16=0x8BC5
xpadneo 0005:045E:02E0.000C: report descriptor: OUI 1F:45:F3 (0x1F) - locally-administered (LAA), multicast
xpadneo 0005:045E:02E0.000C: report descriptor: dumping 306 unpatched bytes (crc16=0x8BC5) [LAA OUI]
xpadneo hid-desc: 00000000: 05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31
xpadneo hid-desc: 00000010: 15 00 27 ff ff 00 00 95 02 75 10 81 02 c0 09 01
xpadneo hid-desc: 00000020: a1 00 09 33 09 34 15 00 27 ff ff 00 00 95 02 75
xpadneo hid-desc: 00000030: 10 81 02 c0 05 01 09 32 15 00 26 ff 03 95 01 75
xpadneo hid-desc: 00000040: 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 01 09
xpadneo hid-desc: 00000050: 35 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00
xpadneo hid-desc: 00000060: 75 06 95 01 81 03 05 01 09 39 15 01 25 08 35 00
xpadneo hid-desc: 00000070: 46 3b 01 66 14 00 75 04 95 01 81 42 75 04 95 01
xpadneo hid-desc: 00000080: 15 00 25 00 35 00 45 00 65 00 81 03 05 09 19 01
xpadneo hid-desc: 00000090: 29 0a 15 00 25 01 75 01 95 0a 81 02 15 00 25 00
xpadneo hid-desc: 000000a0: 75 06 95 01 81 03 05 01 09 80 85 02 a1 00 09 85
xpadneo hid-desc: 000000b0: 15 00 25 01 95 01 75 01 81 02 15 00 25 00 75 07
xpadneo hid-desc: 000000c0: 95 01 81 03 c0 05 0f 09 21 85 03 a1 02 09 97 15
xpadneo hid-desc: 000000d0: 00 25 01 75 04 95 01 91 02 15 00 25 00 75 04 95
xpadneo hid-desc: 000000e0: 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09
xpadneo hid-desc: 000000f0: 50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91
xpadneo hid-desc: 00000100: 02 09 a7 15 00 26 ff 00 75 08 95 01 91 02 65 00
xpadneo hid-desc: 00000110: 55 00 09 7c 15 00 26 ff 00 75 08 95 01 91 02 c0
xpadneo hid-desc: 00000120: 85 04 05 06 09 20 15 00 26 ff 00 75 08 95 01 81
xpadneo hid-desc: 00000130: 02 c0
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/gulikit_kingkong2_android.md 0000664 0000000 0000000 00000022243 15160640572 0026477 0 ustar 00root root 0000000 0000000
# USB Descriptor for GuliKit KingKong 2 (Android mode)
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/class/hidraw/hidraw18/device/report_descriptor
00000000: 05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff .............0.1..'.
00000014: ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 33 09 34 15 00 .....u.........3.4..
00000028: 27 ff ff 00 00 95 02 75 10 81 02 c0 05 01 09 32 15 00 26 ff '......u.......2..&.
0000003c: 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 01 09 ...u.....%.u........
00000050: 35 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 5..&....u.....%.u...
00000064: 81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04 .....9..%.5.F;.f..u.
00000078: 95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03 ...Bu.....%.5.E.e...
0000008c: 05 09 19 01 29 0a 15 00 25 01 75 01 95 0a 81 02 15 00 25 00 ....)...%.u.......%.
000000a0: 75 06 95 01 81 03 05 01 09 80 85 02 a1 00 09 85 15 00 25 01 u.................%.
000000b4: 95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 c0 05 0f 09 ..u.....%.u.........
000000c8: 21 85 03 a1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 25 !........%.u.......%
000000dc: 00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09 .u......p..%du......
000000f0: 50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91 02 09 a7 15 Pf..U...&..u........
00000104: 00 26 ff 00 75 08 95 01 91 02 65 00 55 00 09 7c 15 00 26 ff .&..u.....e.U..|..&.
00000118: 00 75 08 95 01 91 02 c0 85 04 05 06 09 20 15 00 26 ff 00 75 .u........... ..&..u
0000012c: 08 95 01 81 02 c0 00
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x33, // Usage (Rx)
0x09, 0x34, // Usage (Ry)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x32, // Usage (Z)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0A, // Usage Maximum (0x0A)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0A, // Report Count (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x80, // Usage (Sys Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x00, // Collection (Physical)
0x09, 0x85, // Usage (Sys Main Menu)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x85, 0x04, // Report ID (4)
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x00, // Unknown (bTag: 0x00, bType: 0x00)
// 307 bytes
// best guess: USB HID Report Descriptor
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/xb1s_linux.md 0000664 0000000 0000000 00000030360 15160640572 0023451 0 ustar 00root root 0000000 0000000
# USB Descriptor for Xbox One S Wireless (Linux mode)
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:02FD.005C/report_descriptor
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 32 09 35 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 02 09 c5 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09
c4 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0f 15 00 25 01 75 01 95 0f 81 02 15 00 25 00
75 01 95 01 81 03 05 0c 0a 24 02 15 00 25 01 95 01 75 01 81
02 15 00 25 00 75 07 95 01 81 03 05 0c 09 01 85 02 a1 01 05
0c 0a 23 02 15 00 25 01 95 01 75 01 81 02 15 00 25 00 75 07
95 01 81 03 c0 05 0f 09 21 85 03 a1 02 09 97 15 00 25 01 75
04 95 01 91 02 15 00 25 00 75 04 95 01 91 03 09 70 15 00 25
64 75 08 95 04 91 02 09 50 66 01 10 55 0e 15 00 26 ff 00 75
08 95 01 91 02 09 a7 15 00 26 ff 00 75 08 95 01 91 02 65 00
55 00 09 7c 15 00 26 ff 00 75 08 95 01 91 02 c0 05 06 09 20
85 04 15 00 26 ff 00 75 08 95 01 81 02 c0 00
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x32, // Usage (Z)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC5, // Usage (Brake)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC4, // Usage (Accelerator)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0F, // Usage Maximum (0x0F)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0F, // Report Count (15)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x01, // Report Size (1)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x24, 0x02, // Usage (AC Back)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x09, 0x01, // Usage (Consumer Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x01, // Collection (Application)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x23, 0x02, // Usage (AC Home)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x85, 0x04, // Report ID (4)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x00, // Unknown (bTag: 0x00, bType: 0x00)
// 335 bytes
// best guess: USB HID Report Descriptor
```
Converted to tables of report IDs:
```
Bit | 0 | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128
Byt | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | EOF
ID | | | | | | | | | | | | | | | | |
----|----------------------------------------------------------------------------------------------------------|----------
01 | X : Y | Z : Rz | Brake | Accel | Dpad | Buttons | AC Back |
Rng | 0-65534 : | 0-65534 : | 0-1023 | 0-1023 | 0-1 | 0-1 | 0-1 |
Sz | 16 : 16 | 16 : 16 | 10+(6) | 10+(6) | 4+(4) | 15+(1) | 1+(7) | 128 Bits
----|---------------------------------------------------------------------------------------------------------------------
02 | AC Home | | | | | | | | | | | | | | | |
Rng | 0-1 | | | | | | | | | | | | | | | |
Sz | 1+(7) | | | | | | | | | | | | | | | | 8 Bits
----|---------------------------------------------------------------------------------------------------------------------
03 | 0x97 | 0x70 (Motors) | 0x50 | 0xA7 | 0x7C | | | | | | | | |
Rng | 0-1 | 0-100 | 0-255 | 0-255 | 0-255 | | | | | | | | |
Sz | 4+(4) | 8 : 8 : 8 : 8 | 8 | 8 | 8 | | | | | | | | | 64 Bits
----|---------------------------------------------------------------------------------------------------------------------
04 | Bat | | | | | | | | | | | | | | | |
Rng | 0-255 | | | | | | | | | | | | | | | |
Sz | 8 | | | | | | | | | | | | | | | | 8 Bits
```
Button bitmap:
```
BTN_A 0000 0001 .000 0000 01 00 Bit 1
BTN_B 0000 0010 .000 0000 02 00 Bit 2
BTN_X 0000 1000 .000 0000 08 00 Bit 4
BTN_Y 0001 0000 .000 0000 10 00 Bit 5
BTN_TL 0100 0000 .000 0000 40 00 Bit 7
BTN_TR 1000 0000 .000 0000 80 00 Bit 8
BTN_SELECT AC Back (left)
BTN_START 0000 0000 .000 1000 00 08 Bit 12 (right)
BTN_HOME 0000 0000 .001 0000 00 10 Bit 13 AC Home (Xbox button, center)
BTN_THUMBL 0000 0000 .010 0000 00 20 Bit 14
BTN_THUMBR 0000 0000 .100 0000 00 40 Bit 15
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/xb1s_windows.md 0000664 0000000 0000000 00000021443 15160640572 0024006 0 ustar 00root root 0000000 0000000
# USB Descriptor for Xbox One S Wireless (Windows mode)
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:02FD.005C/report_descriptor
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 33 09 34 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 01 09 32 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 01 09
35 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0a 15 00 25 01 75 01 95 0a 81 02 15 00 25 00
75 06 95 01 81 03 05 01 09 80 85 02 a1 00 09 85 15 00 25 01
95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 c0 05 0f 09
21 85 03 a1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 25
00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09
50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91 02 09 a7 15
00 26 ff 00 75 08 95 01 91 02 65 00 55 00 09 7c 15 00 26 ff
00 75 08 95 01 91 02 c0 85 04 05 06 09 20 15 00 26 ff 00 75
08 95 01 81 02 c0 00
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x33, // Usage (Rx)
0x09, 0x34, // Usage (Ry)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x32, // Usage (Z)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0A, // Usage Maximum (0x0A)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0A, // Report Count (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x80, // Usage (Sys Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x00, // Collection (Physical)
0x09, 0x85, // Usage (Sys Main Menu)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x85, 0x04, // Report ID (4)
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x00, // Unknown (bTag: 0x00, bType: 0x00)
// 307 bytes
// best guess: USB HID Report Descriptor```
Converted to tables of report IDs:
```
TBD
```
Button bitmap:
```
TBD
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/xbe2_linux.md 0000664 0000000 0000000 00000117124 15160640572 0023440 0 ustar 00root root 0000000 0000000
# USB Descriptor for Xbox Elite 2 Wireless (Linux mode)
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:0B05.0002/report_descriptor
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 32 09 35 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 02 09 c5 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09
c4 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0f 15 00 25 01 75 01 95 0f 81 02 15 00 25 00
75 01 95 01 81 03 05 0c 0a 24 02 15 00 25 01 95 01 75 01 81
02 15 00 25 00 75 07 95 01 81 03 05 0c 09 01 a1 01 0a 81 00
15 00 26 ff 00 95 01 75 04 81 02 15 00 25 00 95 01 75 04 81
03 0a 84 00 15 00 26 ff 00 95 01 75 04 81 02 15 00 25 00 95
01 75 04 81 03 0a 85 00 15 00 26 ff 00 95 01 75 08 81 02 0a
99 00 15 00 26 ff 00 95 01 75 04 81 02 15 00 25 00 95 01 75
04 81 03 0a 9e 00 15 00 26 ff 00 95 01 75 08 81 02 0a a1 00
15 00 26 ff 00 95 01 75 08 81 02 0a a2 00 15 00 26 ff 00 95
01 75 08 81 02 0a a3 00 15 00 26 ff 00 95 01 75 08 81 02 0a
a4 00 15 00 26 ff 00 95 01 75 08 81 02 0a b9 00 15 00 26 ff
00 95 01 75 08 81 02 0a ba 00 15 00 26 ff 00 95 01 75 08 81
02 0a bb 00 15 00 26 ff 00 95 01 75 08 81 02 0a be 00 15 00
26 ff 00 95 01 75 08 81 02 0a c0 00 15 00 26 ff 00 95 01 75
08 81 02 0a c1 00 15 00 26 ff 00 95 01 75 08 81 02 0a c2 00
15 00 26 ff 00 95 01 75 08 81 02 0a c3 00 15 00 26 ff 00 95
01 75 08 81 02 0a c4 00 15 00 26 ff 00 95 01 75 08 81 02 0a
c5 00 15 00 26 ff 00 95 01 75 08 81 02 0a c6 00 15 00 26 ff
00 95 01 75 08 81 02 0a c7 00 15 00 26 ff 00 95 01 75 08 81
02 0a c8 00 15 00 26 ff 00 95 01 75 08 81 02 c0 05 0c 09 01
85 02 a1 01 05 0c 0a 23 02 15 00 25 01 95 01 75 01 81 02 15
00 25 00 75 07 95 01 81 03 c0 05 0f 09 21 85 03 a1 02 09 97
15 00 25 01 75 04 95 01 91 02 15 00 25 00 75 04 95 01 91 03
09 70 15 00 25 64 75 08 95 04 91 02 09 50 66 01 10 55 0e 15
00 26 ff 00 75 08 95 01 91 02 09 a7 15 00 26 ff 00 75 08 95
01 91 02 65 00 55 00 09 7c 15 00 26 ff 00 75 08 95 01 91 02
c0 05 06 09 20 85 04 15 00 26 ff 00 75 08 95 01 81 02 06 00
ff 09 01 a1 02 85 06 09 01 15 00 25 64 75 08 95 01 b1 02 09
02 15 00 25 64 75 08 95 01 b1 02 09 03 15 00 26 ff 00 75 08
95 01 b1 02 09 04 26 ff 00 75 08 95 3c b2 02 01 c0 06 00 ff
09 02 a1 02 85 07 09 05 15 00 25 64 75 08 95 01 b1 02 09 06
15 00 25 64 75 08 95 01 b1 02 09 07 15 00 25 64 75 08 95 01
b1 02 c0 06 00 ff 09 03 a1 02 85 08 09 08 15 00 25 64 75 08
95 01 b1 02 09 09 15 00 25 64 75 08 95 01 b1 02 09 0a 15 00
26 ff 00 75 08 95 01 b1 02 c0 06 00 ff 09 04 a1 01 85 09 09
0b 15 00 25 64 75 08 95 01 b1 02 09 0c 15 00 25 64 75 08 95
01 b1 02 09 0d 15 00 25 64 75 08 95 01 b1 02 09 0e 15 00 26
ff 00 75 08 95 01 b1 02 09 0f 26 ff 00 75 08 95 3c b2 02 01
c0 06 00 ff 09 05 a1 01 85 0a 09 10 15 00 27 ff ff ff 7f 75
20 95 01 81 02 09 11 15 00 27 ff ff ff 7f 75 20 95 01 81 02
09 12 15 00 26 ff 00 75 08 95 02 81 02 09 13 15 00 26 ff 00
75 08 95 01 81 02 c0 06 00 ff 09 06 a1 02 85 0b 09 14 15 00
25 64 75 08 95 01 b1 02 c0 c0 05 01 09 06 a1 01 85 05 05 07
19 e0 29 e7 15 00 25 01 75 01 95 08 81 02 95 01 75 08 81 03
95 06 75 08 15 00 25 65 05 07 19 00 29 65 81 00 c0 00
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x32, // Usage (Z)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC5, // Usage (Brake)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC4, // Usage (Accelerator)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0F, // Usage Maximum (0x0F)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0F, // Report Count (15)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x01, // Report Size (1)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x24, 0x02, // Usage (AC Back)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x09, 0x01, // Usage (Consumer Control)
0xA1, 0x01, // Collection (Application)
0x0A, 0x81, 0x00, // Usage (Assign Selection)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x84, 0x00, // Usage (Enter Channel)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x85, 0x00, // Usage (Order Movie)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x99, 0x00, // Usage (Media Select Security)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x9E, 0x00, // Usage (Media Select SAP)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA1, 0x00, // Usage (Once)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA2, 0x00, // Usage (Daily)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA3, 0x00, // Usage (Weekly)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA4, 0x00, // Usage (Monthly)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xB9, 0x00, // Usage (Random Play)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBA, 0x00, // Usage (Select Disc)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBB, 0x00, // Usage (Enter Disc)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBE, 0x00, // Usage (Track Normal)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC0, 0x00, // Usage (Frame Forward)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC1, 0x00, // Usage (Frame Back)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC2, 0x00, // Usage (Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC3, 0x00, // Usage (Clear Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC4, 0x00, // Usage (Repeat From Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC5, 0x00, // Usage (Return To Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC6, 0x00, // Usage (Search Mark Forward)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC7, 0x00, // Usage (Search Mark Backwards)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC8, 0x00, // Usage (Counter Reset)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0C, // Usage Page (Consumer)
0x09, 0x01, // Usage (Consumer Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x01, // Collection (Application)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x23, 0x02, // Usage (AC Home)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x85, 0x04, // Report ID (4)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x01, // Usage (0x01)
0xA1, 0x02, // Collection (Logical)
0x85, 0x06, // Report ID (6)
0x09, 0x01, // Usage (0x01)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x02, // Usage (0x02)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x03, // Usage (0x03)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x04, // Usage (0x04)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x3C, // Report Count (60)
0xB2, 0x02, 0x01, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile,Buffered Bytes)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x02, // Usage (0x02)
0xA1, 0x02, // Collection (Logical)
0x85, 0x07, // Report ID (7)
0x09, 0x05, // Usage (0x05)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x06, // Usage (0x06)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x07, // Usage (0x07)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x03, // Usage (0x03)
0xA1, 0x02, // Collection (Logical)
0x85, 0x08, // Report ID (8)
0x09, 0x08, // Usage (0x08)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x09, // Usage (0x09)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0A, // Usage (0x0A)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x04, // Usage (0x04)
0xA1, 0x01, // Collection (Application)
0x85, 0x09, // Report ID (9)
0x09, 0x0B, // Usage (0x0B)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0C, // Usage (0x0C)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0D, // Usage (0x0D)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0E, // Usage (0x0E)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0F, // Usage (0x0F)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x3C, // Report Count (60)
0xB2, 0x02, 0x01, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile,Buffered Bytes)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x05, // Usage (0x05)
0xA1, 0x01, // Collection (Application)
0x85, 0x0A, // Report ID (10)
0x09, 0x10, // Usage (0x10)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0xFF, 0x7F, // Logical Maximum (2147483646)
0x75, 0x20, // Report Size (32)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x11, // Usage (0x11)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0xFF, 0x7F, // Logical Maximum (2147483646)
0x75, 0x20, // Report Size (32)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x12, // Usage (0x12)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x02, // Report Count (2)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x13, // Usage (0x13)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x06, // Usage (0x06)
0xA1, 0x02, // Collection (Logical)
0x85, 0x0B, // Report ID (11)
0x09, 0x14, // Usage (0x14)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x06, // Usage (Keyboard)
0xA1, 0x01, // Collection (Application)
0x85, 0x05, // Report ID (5)
0x05, 0x07, // Usage Page (Kbrd/Keypad)
0x19, 0xE0, // Usage Minimum (0xE0)
0x29, 0xE7, // Usage Maximum (0xE7)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x08, // Report Count (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x06, // Report Count (6)
0x75, 0x08, // Report Size (8)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x65, // Logical Maximum (101)
0x05, 0x07, // Usage Page (Kbrd/Keypad)
0x19, 0x00, // Usage Minimum (0x00)
0x29, 0x65, // Usage Maximum (0x65)
0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x00, // Unknown (bTag: 0x00, bType: 0x00)
// 1038 bytes
// best guess: USB HID Report Descriptor
```
Converted to tables of report IDs:
```
Bit | 0 | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | ........ | 248 | 256 | 264 | 272 | EOF
Byt | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | | 34 | 35 | 36 | 37 |
ID | | | | | | | | | | | | | | | | | | | | | | | | | Media Control items | | | | |
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
01 | X : Y | Z : Rz | Brake | Accel | Dpad | Buttons | AC Back | Asg. Sel. | Ent. Chn. | Ord.Mov. | Me.S.Sel. | MSSAP, O, D, W, M, RP, SD, ED, TN, FrF, FrB, M, CM, RFM, RTM, SMF, SMB, CR |
Rng | 0-65534 : | 0-65534 : | 0-1023 | 0-1023 | 0-1 | 0-1 | 0-1 | 0-255 ??? | 0-255 ??? | 0-255 | 0-255 ??? | 0-255 |
Sz | 16 : 16 | 16 : 16 | 10+(6) | 10+(6) | 4+(4) | 15+(1) | 1+(7) | 4+(4) | 4+(4) | 8 | 4+(4) | 8 : 8 : 8 : 8 : ... ... : 8 : 8 : 8 : 8 | 304 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
02 | AC Home | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-1 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 1+(7) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
03 | 0x97 | 0x70 (Motors) | 0x50 | 0xA7 | 0x7C | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-1 | 0-100 | 0-255 | 0-255 | 0-255 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 4+(4) | 8 : 8 : 8 : 8 | 8 | 8 | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 64 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
04 | Bat | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-255 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
05 | Keypad* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-1 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
06 | 0x01 | 0x02 | 0x03 | 0x04 ...
Rng | 0-100 | 0-100 | 0-255 | 0-255 : 0-255 : ... : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : ...
Sz | 8 | 8 | 8 | 480 = 60x 8 ... ... 504 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
07 | 0x05 | 0x06 | 0x07 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-100 | 0-100 | 0-100 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 8 | 8 | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
08 | 0x08 | 0x09 | 0x0A | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-100 | 0-100 | 0-255 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 8 | 8 | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
09 | 0x0B | 0x0C | 0x0D | 0x0E | 0x0F ...
Rng | 0-100 | 0-100 | 0-100 | 0-255 | 0-255 : ... : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : ...
Sz | 8 | 8 | 8 | 8 | 480 = 60x 8 ... ... 512 Bits
----|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------
0A | 0x10 | 0x11 | 0x12 | 0x13 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rng | 0-2147483646 | 0-2147483646 | 0-255 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Sz | 32 | 32 | 8 : 8 | 8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78 Bits
Keypad* Codes xE0 - 0xE7
```
Button bitmap:
```
BTN_A 0000 0001 .000 0000 01 00 Bit 1
BTN_B 0000 0010 .000 0000 02 00 Bit 2
BTN_X 0000 1000 .000 0000 08 00 Bit 4
BTN_Y 0001 0000 .000 0000 10 00 Bit 5
BTN_TL 0100 0000 .000 0000 40 00 Bit 7
BTN_TR 1000 0000 .000 0000 80 00 Bit 8
BTN_SELECT AC Back (left)
BTN_START 0000 0000 .000 1000 00 08 Bit 12 (right)
BTN_HOME 0000 0000 .001 0000 00 10 Bit 13 AC Home (Xbox button, center)
BTN_THUMBL 0000 0000 .010 0000 00 20 Bit 14
BTN_THUMBR 0000 0000 .100 0000 00 40 Bit 15
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/xbe2_unknown.md 0000664 0000000 0000000 00000104654 15160640572 0024004 0 ustar 00root root 0000000 0000000
# USB Descriptor for Xbox Elite 2 Wireless (Unknown mode)
Hex dump of the original, unmodified controller descriptor:
```
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 32 09 35 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 02 09 c5 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09
c4 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0f 15 00 25 01 75 01 95 0f 81 02 15 00 25 00
75 01 95 01 81 03 05 0c 0a 24 02 15 00 25 01 95 01 75 01 81
02 15 00 25 00 75 07 95 01 81 03 05 01 09 01 a1 00 09 40 09
41 15 00 27 ff ff 00 00 95 02 75 10 81 02 c0 05 01 09 01 a1
00 09 43 09 44 15 00 27 ff ff 00 00 95 02 75 10 81 02 c0 05
01 09 42 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06
95 01 81 03 05 01 09 45 15 00 26 ff 03 95 01 75 0a 81 02 15
00 25 00 75 06 95 01 81 03 05 01 09 37 15 01 25 08 35 00 46
3b 01 66 14 00 75 04 95 01 81 42 75 04 95 01 15 00 25 00 35
00 45 00 65 00 81 03 05 09 19 10 29 1e 15 00 25 01 75 01 95
0f 81 02 15 00 25 00 75 01 95 01 81 03 05 0c 0a 82 00 15 00
25 01 95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 05 0c
09 01 a1 01 0a 81 00 15 00 26 ff 00 95 01 75 04 81 02 15 00
25 00 95 01 75 04 81 03 0a 84 00 15 00 26 ff 00 95 01 75 04
81 02 15 00 25 00 95 01 75 04 81 03 0a 85 00 15 00 26 ff 00
95 01 75 08 81 02 0a 99 00 15 00 26 ff 00 95 01 75 04 81 02
15 00 25 00 95 01 75 04 81 03 0a 9e 00 15 00 26 ff 00 95 01
75 08 81 02 0a a1 00 15 00 26 ff 00 95 01 75 08 81 02 0a a2
00 15 00 26 ff 00 95 01 75 08 81 02 0a a3 00 15 00 26 ff 00
95 01 75 08 81 02 0a a4 00 15 00 26 ff 00 95 01 75 08 81 02
0a b9 00 15 00 26 ff 00 95 01 75 08 81 02 0a ba 00 15 00 26
ff 00 95 01 75 08 81 02 0a bb 00 15 00 26 ff 00 95 01 75 08
81 02 0a be 00 15 00 26 ff 00 95 01 75 08 81 02 0a c0 00 15
00 26 ff 00 95 01 75 08 81 02 0a c1 00 15 00 26 ff 00 95 01
75 08 81 02 0a c2 00 15 00 26 ff 00 95 01 75 08 81 02 0a c3
00 15 00 26 ff 00 95 01 75 08 81 02 0a c4 00 15 00 26 ff 00
95 01 75 08 81 02 0a c5 00 15 00 26 ff 00 95 01 75 08 81 02
0a c6 00 15 00 26 ff 00 95 01 75 08 81 02 0a c7 00 15 00 26
ff 00 95 01 75 08 81 02 0a c8 00 15 00 26 ff 00 95 01 75 08
81 02 c0 05 0c 09 01 85 02 a1 01 05 0c 0a 23 02 15 00 25 01
95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 c0 05 0f 09
21 85 03 a1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 25
00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09
50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91 02 09 a7 15
00 26 ff 00 75 08 95 01 91 02 65 00 55 00 09 7c 15 00 26 ff
00 75 08 95 01 91 02 c0 05 06 09 20 85 04 15 00 26 ff 00 75
08 95 01 81 02 06 00 ff 09 01 a1 02 85 06 09 01 15 00 25 64
75 08 95 01 b1 02 09 02 15 00 25 64 75 08 95 01 b1 02 09 03
15 00 26 ff 00 75 08 95 01 b1 02 09 04 26 ff 00 75 08 95 3c
b2 02 01 c0 06 00 ff 09 02 a1 02 85 07 09 05 15 00 25 64 75
08 95 01 b1 02 09 06 15 00 25 64 75 08 95 01 b1 02 09 07 15
00 25 64 75 08 95 01 b1 02 c0 06 00 ff 09 03 a1 02 85 08 09
08 15 00 25 64 75 08 95 01 b1 02 09 09 15 00 25 64 75 08 95
01 b1 02 09 0a 15 00 26 ff 00 75 08 95 01 b1 02 c0 06 00 ff
09 04 a1 01 85 09 09 0b 15 00 25 64 75 08 95 01 b1 02 09 0c
15 00 25 64 75 08 95 01 b1 02 09 0d 15 00 25 64 75 08 95 01
b1 02 09 0e 15 00 26 ff 00 75 08 95 01 b1 02 09 0f 26 ff 00
75 08 95 3c b2 02 01 c0 06 00 ff 09 05 a1 01 85 0a 09 10 15
00 27 ff ff ff 7f 75 20 95 01 81 02 09 11 15 00 27 ff ff ff
7f 75 20 95 01 81 02 09 12 15 00 26 ff 00 75 08 95 02 81 02
09 13 15 00 26 ff 00 75 08 95 01 81 02 c0 06 00 ff 09 06 a1
02 85 0b 09 14 15 00 25 64 75 08 95 01 b1 02 c0 c0 05 01 09
06 a1 01 85 05 05 07 19 e0 29 e7 15 00 25 01 75 01 95 08 81
02 95 01 75 08 81 03 95 06 75 08 15 00 25 65 05 07 19 00 29
65 81 00 c0 00
```
## Packet structure (as captured by `btmon`)
### Packet Format v1
```
a1 01 LX LX LY LY RX RX RY RY LT LT RT RT DP BB
ST SE LX LX LY LY RX RX RY RY LT LT RT RT DP BB // Copy of the first row (except first two bytes)
ST SE PP 00 PR TS 00 00 00 00 00 00 00 00 00 00 // First two bytes are a copy of the first two bytes from above
00 00 00 00 00 00 00 00
```
### Packet Format v2 (after firmware update)
```
a1 01 LX LX LY LY RX RX RY RY LT LT RT RT DP BB
ST SE PP 00 PR TS 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
```
LX, LY, RX, RY: X and Y axes for the left and right sticks (00 00 - ff ff)
LT, RT: Going from 00 00 to FF 03
DP: D-Pad info
0 -> nothing
01-08 -> N, NE, E, SE, S, SW, W, NW
BB: on/off for ABXY, LB, RB
0bRL0Y X0BA // R = RB, L = LB
If Profile != 00, then ONLY THE FIRST ROW's (!!!) BB are on/off values for the paddles:
0b0002 4013 // 1 = P1, etc.
ST: on/off for Start and Sticks (thumb stick buttons)
0b0000 SRL0 // S = Start, R/L = Right/Left thumb stick button
SE: on/off for Select
0b0000 000S // S = Select
PP: on/off Paddles (mapped to A,B,X,Y by default in profile 1-3)
0b0000 4321 // 1 = P1, etc.
PR: Profile
00-03 -> Number of LEDs on (= Profile number)
TS: Trigger settings
0b0000 RrLl // R/L = RT/LT has 2 states, r/l = RT/LT only goes halfway.
Pressing the connection button sends a new packet, but there's nothing in the packet about it
## Parsed descriptor
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x32, // Usage (Z) // Fixed up to RX
0x09, 0x35, // Usage (Rz) // Fixed up to Ry
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC5, // Usage (Brake) // Fixed up to Z (LT)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC4, // Usage (Accelerator) // Fixed up to Rz (RT)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button) // ABXY, LB, RB
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0F, // Usage Maximum (0x0F)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0F, // Report Count (15)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x01, // Report Size (1)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x24, 0x02, // Usage (AC Back)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x40, // Usage (Vx)
0x09, 0x41, // Usage (Vy)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x43, // Usage (Vbrx)
0x09, 0x44, // Usage (Vbry)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x42, // Usage (Vz)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x45, // Usage (Vbrz)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x37, // Usage (Dial) // Rudder
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x10, // Usage Minimum (0x10)
0x29, 0x1E, // Usage Maximum (0x1E)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0F, // Report Count (15)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x01, // Report Size (1)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x82, 0x00, // Usage (Mode Step)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x09, 0x01, // Usage (Consumer Control)
0xA1, 0x01, // Collection (Application)
0x0A, 0x81, 0x00, // Usage (Assign Selection)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x84, 0x00, // Usage (Enter Channel)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x85, 0x00, // Usage (Order Movie)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x99, 0x00, // Usage (Media Select Security)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x95, 0x01, // Report Count (1)
0x75, 0x04, // Report Size (4)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0x9E, 0x00, // Usage (Media Select SAP)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA1, 0x00, // Usage (Once)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA2, 0x00, // Usage (Daily)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA3, 0x00, // Usage (Weekly)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xA4, 0x00, // Usage (Monthly)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xB9, 0x00, // Usage (Random Play)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBA, 0x00, // Usage (Select Disc)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBB, 0x00, // Usage (Enter Disc)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xBE, 0x00, // Usage (Track Normal)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC0, 0x00, // Usage (Frame Forward)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC1, 0x00, // Usage (Frame Back)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC2, 0x00, // Usage (Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC3, 0x00, // Usage (Clear Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC4, 0x00, // Usage (Repeat From Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC5, 0x00, // Usage (Return To Mark)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC6, 0x00, // Usage (Search Mark Forward)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC7, 0x00, // Usage (Search Mark Backwards)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x0A, 0xC8, 0x00, // Usage (Counter Reset)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0C, // Usage Page (Consumer)
0x09, 0x01, // Usage (Consumer Control)
0x85, 0x02, // Report ID (2)
0xA1, 0x01, // Collection (Application)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0x23, 0x02, // Usage (AC Home)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x05, 0x06, // Usage Page (Generic Dev Ctrls)
0x09, 0x20, // Usage (Battery Strength)
0x85, 0x04, // Report ID (4)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x01, // Usage (0x01)
0xA1, 0x02, // Collection (Logical)
0x85, 0x06, // Report ID (6)
0x09, 0x01, // Usage (0x01)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x02, // Usage (0x02)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x03, // Usage (0x03)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x04, // Usage (0x04)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x3C, // Report Count (60)
0xB2, 0x02, 0x01, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile,Buffered Bytes)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x02, // Usage (0x02)
0xA1, 0x02, // Collection (Logical)
0x85, 0x07, // Report ID (7)
0x09, 0x05, // Usage (0x05)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x06, // Usage (0x06)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x07, // Usage (0x07)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x03, // Usage (0x03)
0xA1, 0x02, // Collection (Logical)
0x85, 0x08, // Report ID (8)
0x09, 0x08, // Usage (0x08)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x09, // Usage (0x09)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0A, // Usage (0x0A)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x04, // Usage (0x04)
0xA1, 0x01, // Collection (Application)
0x85, 0x09, // Report ID (9)
0x09, 0x0B, // Usage (0x0B)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0C, // Usage (0x0C)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0D, // Usage (0x0D)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0E, // Usage (0x0E)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x0F, // Usage (0x0F)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x3C, // Report Count (60)
0xB2, 0x02, 0x01, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile,Buffered Bytes)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x05, // Usage (0x05)
0xA1, 0x01, // Collection (Application)
0x85, 0x0A, // Report ID (10)
0x09, 0x10, // Usage (0x10)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0xFF, 0x7F, // Logical Maximum (2147483646)
0x75, 0x20, // Report Size (32)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x11, // Usage (0x11)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0xFF, 0x7F, // Logical Maximum (2147483646)
0x75, 0x20, // Report Size (32)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x12, // Usage (0x12)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x02, // Report Count (2)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x13, // Usage (0x13)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
0x09, 0x06, // Usage (0x06)
0xA1, 0x02, // Collection (Logical)
0x85, 0x0B, // Report ID (11)
0x09, 0x14, // Usage (0x14)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0xC0, // End Collection
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x06, // Usage (Keyboard)
0xA1, 0x01, // Collection (Application)
0x85, 0x05, // Report ID (5)
0x05, 0x07, // Usage Page (Kbrd/Keypad)
0x19, 0xE0, // Usage Minimum (0xE0)
0x29, 0xE7, // Usage Maximum (0xE7)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x08, // Report Count (8)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x06, // Report Count (6)
0x75, 0x08, // Report Size (8)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x65, // Logical Maximum (101)
0x05, 0x07, // Usage Page (Kbrd/Keypad)
0x19, 0x00, // Usage Minimum (0x00)
0x29, 0x65, // Usage Maximum (0x65)
0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
// 1224 bytes
```
atar-axis-xpadneo-0b9d5cc/docs/descriptors/xbxs.md 0000664 0000000 0000000 00000024145 15160640572 0022345 0 ustar 00root root 0000000 0000000
# USB Descriptor for Xbox Series X|S Wireless
Hex dump of the controller descriptor:
```
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:0B13.000A/report_descriptor
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff
ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 32 09 35 15 00
27 ff ff 00 00 95 02 75 10 81 02 c0 05 02 09 c5 15 00 26 ff
03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09
c4 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01
81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04
95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03
05 09 19 01 29 0f 15 00 25 01 75 01 95 0f 81 02 15 00 25 00
75 01 95 01 81 03 05 0c 0a b2 00 15 00 25 01 95 01 75 01 81
02 15 00 25 00 75 07 95 01 81 03 05 0f 09 21 85 03 a1 02 09
97 15 00 25 01 75 04 95 01 91 02 15 00 25 00 75 04 95 01 91
03 09 70 15 00 25 64 75 08 95 04 91 02 09 50 66 01 10 55 0e
15 00 26 ff 00 75 08 95 01 91 02 09 a7 15 00 26 ff 00 75 08
95 01 91 02 65 00 55 00 09 7c 15 00 26 ff 00 75 08 95 01 91
02 c0 c0
```
Parsed descriptor:
(via https://eleccelerator.com/usbdescreqparser/)
```
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x05, // Usage (Game Pad)
0xA1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x09, 0x32, // Usage (Z)
0x09, 0x35, // Usage (Rz)
0x15, 0x00, // Logical Minimum (0)
0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534)
0x95, 0x02, // Report Count (2)
0x75, 0x10, // Report Size (16)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC5, // Usage (Brake)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x02, // Usage Page (Sim Ctrls)
0x09, 0xC4, // Usage (Accelerator)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x03, // Logical Maximum (1023)
0x95, 0x01, // Report Count (1)
0x75, 0x0A, // Report Size (10)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x06, // Report Size (6)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x39, // Usage (Hat switch)
0x15, 0x01, // Logical Minimum (1)
0x25, 0x08, // Logical Maximum (8)
0x35, 0x00, // Physical Minimum (0)
0x46, 0x3B, 0x01, // Physical Maximum (315)
0x66, 0x14, 0x00, // Unit (System: English Rotation, Length: Centimeter)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x35, 0x00, // Physical Minimum (0)
0x45, 0x00, // Physical Maximum (0)
0x65, 0x00, // Unit (None)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x0F, // Usage Maximum (0x0F)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x0F, // Report Count (15)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x01, // Report Size (1)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0C, // Usage Page (Consumer)
0x0A, 0xB2, 0x00, // Usage (Record)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x01, // Report Count (1)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x07, // Report Size (7)
0x95, 0x01, // Report Count (1)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x0F, // Usage Page (PID Page)
0x09, 0x21, // Usage (0x21)
0x85, 0x03, // Report ID (3)
0xA1, 0x02, // Collection (Logical)
0x09, 0x97, // Usage (0x97)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x00, // Logical Maximum (0)
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x70, // Usage (0x70)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x64, // Logical Maximum (100)
0x75, 0x08, // Report Size (8)
0x95, 0x04, // Report Count (4)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0x50, // Usage (0x50)
0x66, 0x01, 0x10, // Unit (System: SI Linear, Time: Seconds)
0x55, 0x0E, // Unit Exponent (-2)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xA7, // Usage (0xA7)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x65, 0x00, // Unit (None)
0x55, 0x00, // Unit Exponent (0)
0x09, 0x7C, // Usage (0x7C)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0xC0, // End Collection
// 283 bytes
// best guess: USB HID Report Descriptor
```
btmon Logs:
```
Bluetooth monitor ver 5.55
= Note: Linux version 5.10.5-arch1-1 (x86_64) 0.182753
= Note: Bluetooth subsystem version 2.22 0.182760
= New Index: 9C:FC:E8:B8:2C:A6 (Primary,USB,hci0) [hci0] 0.182763
= Open Index: 9C:FC:E8:B8:2C:A6 [hci0] 0.182765
= Index Info: 9C:FC:E8:B8:2C:A6 (Intel Corp.) [hci0] 0.182767
@ MGMT Open: bluetoothd (privileged) version 1.18 {0x0001} 0.182770
> ACL Data RX: Handle 256 flags 0x02 dlen 14 #1 [hci0] 0.254476
Channel: 65 len 10 [PSM 0 mode Basic (0x00)] {chan 65535}
a1 01 00 00 00 00 00 00 00 00 ..........
## select
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #2 [hci0] 3.043182
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000800
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #3 [hci0] 3.160076
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000800
## share
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #27 [hci0] 5.140647
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000001
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #28 [hci0] 5.230076
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000001
## back
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #43 [hci0] 6.535466
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000400
> ACL Data RX: Handle 3586 flags 0x02 dlen 23 #44 [hci0] 6.580045
ATT: Handle Value Notification (0x1b) len 18
Handle: 0x001e
Data: eb7e5f80eb7f85800000000000000400
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
1 2 3 4 5 6 7 8 9 10 12 14 16
11 13 15
[15] = 0x04 Back
[15] = 0x08 Select
[16] = 0x01 Share
```
atar-axis-xpadneo-0b9d5cc/docs/heuristics/ 0000775 0000000 0000000 00000000000 15160640572 0020652 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/docs/heuristics/gamesir-nova.md 0000664 0000000 0000000 00000004772 15160640572 0023576 0 ustar 00root root 0000000 0000000
# GameSir Nova OUIs
Gamesir Nova uses random MAC OUIs. We collect them here to implement a
working heuristic matcher.
We also collect OUIs here which should not match the heuristics because we
are seeing conflicts with some official vendors.
The best indicators we currently have are the LLA or multicast bits in the MAC
address, one of which is always set. While the LLA bit is quite weak because
it is technically allowed, the multicast bit is much stronger because it should
never be used for controllers, and all other vendors follow that.
- Officially validated OUIs are flagged with a "+".
- LAA OUIs are flagged with an "L".
- Multicast OUIs are flagged with an "M".
| OUI Flag | Vendor | Bit representation | descriptor length
| ------------ | --------- | --------------------------------------- | -------------------
| 1F:45:F3 LM | GameSir | `0001 1111 : 0100 0101 : 1111 0011` | 306
| 3E:42:6C L | GameSir | `0011 1110 : 0100 0010 : 0110 1100` | 283
| ED:BC:9A M | GameSir | `1110 1101 : 1011 1100 : 1001 1010` | 283
| 6A:07:14 L | GameSir | `0110 1010 : 0000 0111 : 0001 0100` | 283
| **OR Mask** | | **`0000 0011 : 0000 0000 : 0000 0000` | **mask 0x03**
| 3C:FA:06 + | Microsoft | `0011 1100 : 1111 1010 : 0000 0110` | 283 inval match
| 44:16:22 + | Microsoft | `0100 0100 : 0001 0110 : 0010 0010` |
| 68:6C:E6 + | Microsoft | `0110 1000 : 0110 1100 : 1110 0110` | 283 inval match
| 78:86:2E + | Microsoft | `0111 1000 : 1000 0110 : 0010 1110` |
| 98:7A:14 + | Microsoft | `1001 1000 : 0111 1010 : 0001 0100` |
| AC:8E:BD + | Microsoft | `1010 1100 : 1000 1110 : 1011 1101` | 283 inval match
| C8:3F:26 + | Microsoft | `1100 1000 : 0011 1111 : 0010 0110` |
| **AND mask** | | **`0000 0000 : 0000 0000 : 0000 0000`** | **mask 0x00**
| 98:B6:E9 + | Nintendo | `1001 1000 : 1011 0110 : 1110 1001` |
| **AND mask** | | **`0010 1000 : 1011 0110 : 1110 1001`** | **mask 0x98 B6 E9**
| 98:B6:E8 | GuliKit | `1001 1000 : 1011 0110 : 1110 1000` |
| 98:B6:EA | GuliKit | `1001 1000 : 1011 0110 : 1110 1010` |
| 98:B6:EC | GuliKit | `1001 1000 : 1011 0110 : 1110 1100` |
| **AND mask** | | **`0010 1000 : 1011 0110 : 1110 1000`** | **mask 0x98 B6 E8**
| E4:17:D8 + | 8BitDo | `1110 0100 : 0001 0111 : 1101 1000` |
| **AND mask** | | **`1110 0100 : 0001 0111 : 1101 1000`** | **mask 0xE4 17 D8**
atar-axis-xpadneo-0b9d5cc/docs/img/ 0000775 0000000 0000000 00000000000 15160640572 0017244 5 ustar 00root root 0000000 0000000 atar-axis-xpadneo-0b9d5cc/docs/img/battery_support.png 0000664 0000000 0000000 00000014331 15160640572 0023222 0 ustar 00root root 0000000 0000000 ‰PNG
IHDR † A Õ] zTXtRaw profile type exif xÚ˜i–Ü8„ÿósn Àãp}on0ǟʬòÒe÷¸ß”œ)%% " Îþ}ÿøË-çPEõÖ"µ×ž_¯sŠõù~
µ÷Uúq<Ô÷EÌÎåõ³×9
ÆåÛZßãóÇñ ëmÇÞ†>¿
Ÿ9sñ~ÎÞ†J~§÷ïÐßïúÝrÞŸ¹ßcò:ýü»*ÁØ‚½’C>%•ÈwöY
+ƒsã;†®ë3RÊ/b>/
Þô/bÇû‰òc(BlïÚO1z'ù:vO„¾÷(}\æoüðý%v÷n»÷¼V7j#R-¼ß&ž+œ„²<¯5å#\ëstc‰Ä6hNŽRO™hßTÓN#ÝtžóJk>Y9ç¼ryƬhîy= T?ÒÍZzÙŒrY VΟ¾¤gÞþÌ·’1óN<™Æoüå_
þ“ãÓнNÝ”<˜ù1~eç4n8rþÍS ’î;¦òÄ÷9Â'¬ßþØ‚ò„ÙÑq¾LLI߸UœÏI¬!¾R#é~ DÌ-8“
ıSKQsÖ”ˆ£ÏÀó\jž DòNá‚M)
p,ûܼ£éy6K~
#- !¤ˆM/°jø£ÕàÐ"5ˆH“.£•V›´Ö´¹F
-ZU´©ªi×aŪ‰5S3ë6zî “Þº†n½÷1˜t`zðöà‰1fžeÖ)³M6ûú¬ºdµ¥ËV_cç]6é¿ÛÖ°m÷=N:PéÔ#§=vú®Ýrë•Û®^»ýŽOÔÞ¨þˆZú ¹ß£–Þ¨9bõyN¿¡Æ°ê‡‰är"Žˆåš@\³h©ÖìÈ9f±#ZE2¨%qpvrÄ@°ž”å¦Oì¾!÷[Ü‚Ô?Â-ÿ
¹àÐý?ݹ¿âöj{<¥<