diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f499c5b8..bda2d97c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,7 +6,7 @@ on:
- master
jobs:
- build:
+ windows:
runs-on: windows-latest
steps:
- name: Checkout
@@ -30,8 +30,8 @@ jobs:
id: extract_release_variables
shell: bash
run: |
- echo ::set-output name=tag_name::$(ls build/distributions/ControllerBuddy-*.zip | xargs -i basename {} .zip)
- echo ::set-output name=zip_path::$(ls build/distributions/ControllerBuddy-*.zip)
+ echo ::set-output name=tag_name::$(ls build/distributions/ControllerBuddy-*.zip | xargs -i basename -s .zip {} | sed s/-windows//)
+ echo ::set-output name=archive_path::$(ls build/distributions/ControllerBuddy-*.zip)
- name: Tag Commit
uses: tvdias/github-tagger@v0.0.2
with:
@@ -44,4 +44,39 @@ jobs:
tag_name: ${{ steps.extract_release_variables.outputs.tag_name }}
draft: false
prerelease: false
- files: ${{ steps.extract_release_variables.outputs.zip_path }}
+ files: ${{ steps.extract_release_variables.outputs.archive_path }}
+ linux:
+ needs: windows
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ persist-credentials: false
+ submodules: true
+ - name: Install JDK
+ uses: actions/setup-java@v3
+ with:
+ distribution: zulu
+ java-version: 18.0.1+10
+ - name: Build
+ uses: eskatos/gradle-command-action@v2
+ env:
+ GRADLE_OPTS: -Dorg.gradle.daemon=false
+ with:
+ arguments: distTar --info
+ - name: Extract Release Variables
+ id: extract_release_variables
+ shell: bash
+ run: |
+ echo ::set-output name=tag_name::$(ls build/distributions/ControllerBuddy-*.tgz | xargs -i basename -s .tgz {} | sed s/-linux//)
+ echo ::set-output name=archive_path::$(ls build/distributions/ControllerBuddy-*.tgz)
+ - name: Release
+ id: release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: ${{ steps.extract_release_variables.outputs.tag_name }}
+ draft: false
+ prerelease: false
+ files: ${{ steps.extract_release_variables.outputs.archive_path }}
diff --git a/LICENSE b/LICENSE
index d159169d..f288702d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,281 +1,622 @@
GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ Version 3, 29 June 2007
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ 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 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
+ 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
-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.
+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 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.
+ 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 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.
+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.
- 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
+ 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.
- 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
+ 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
-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
+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 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.
+ 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
@@ -287,15 +628,15 @@ 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
+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
+ 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
+ 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,
@@ -303,37 +644,31 @@ the "copyright" line and a pointer to where the full notice is found.
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, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ 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:
+ If the program does terminal interaction, 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'.
+ 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, 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
- Ty Coon, 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.
+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
+.
diff --git a/README.md b/README.md
index 707a2aa9..1c8f2d03 100644
--- a/README.md
+++ b/README.md
@@ -4,17 +4,35 @@
This is the source code repository of ControllerBuddy, regular users should refer to [ControllerBuddy's homepage](https://controllerbuddy.org) for getting started.
#### License Information:
-GNU General Public License v2.0
+GNU General Public License v3.0
#### Download and Installation:
+
+###### Windows:
1. First ensure you have correctly installed [vJoy](https://github.com/jshafer817/vJoy/releases/latest) on your system.
2. [Click here](https://github.com/bwRavencl/ControllerBuddy/releases/latest) and download the latest build of ControllerBuddy for Windows as a ZIP archive.
3. Extract the `ControllerBuddy` directory from the archive to any desired location on your hard-drive.
4. Run `ControllerBuddy.exe` inside the extracted `ControllerBuddy` directory.
+###### Linux:
+1. First ensure you have installed libsdl2 on your system:
+ - Debian / Ubuntu: `sudo apt-get install libsdl2-2.0`
+ - Red-Hat-based: `sudo yum install SDL2`
+2. Configure uinput:
+ 1. Create an uinput group: `sudo groupadd -f uinput`
+ 2. Add yourself to the group: `sudo gpasswd -a USER uinput` (replace USER with your username)
+ 3. As root, create a file `/etc/udev/rules.d/99-input.rules` with the following content:
+ `SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput"`
+ 4. As root, create a file `/etc/modules-load.d/uinput.conf` with the following content:
+ `uinput`
+3. Reboot
+5. [Click here](https://github.com/bwRavencl/ControllerBuddy/releases/latest) and download the latest build of ControllerBuddy for Linux as a TGZ archive.
+6. Extract the `ControllerBuddy` directory from the archive to any desired location on your hard-drive.
+7. Run `ControllerBuddy` inside the extracted `ControllerBuddy/bin` directory.
+
#### Description:
ControllerBuddy is a highly advanced gamepad mapping software, which supports the creation of input profiles for complex target applications such as flight simulators.
-In addition to the simplistic mapping of buttons and axes of a physical game-controller to keyboard and mouse input, ControllerBuddy also supports the feeding of input commands to a virtual joystick, provided by the awesome vJoy device driver created by Shaul Eizikovich.
+In addition to the simplistic mapping of buttons and axes of a physical game-controller to keyboard and mouse input, ControllerBuddy also supports the feeding of input commands to a virtual joystick device (vJoy / uinput).
ControllerBuddy's goal is to enable the user to control target applications solely via a gamepad and not having to reach for a keyboard or mouse at any point in time.
#### Features:
@@ -47,9 +65,8 @@ ControllerBuddy's goal is to enable the user to control target applications sole
- Dual Sense (with special support for the touchpad, haptic feedback and lightbar)
- etc. (to check if your controller is supported please refer to the [SDL_GameControllerDB](https://github.com/gabomdq/SDL_GameControllerDB) project)
- Supported operating systems:
- - Windows x64 (local / client / server)
+ - Windows / Linux (local / client / server)
- macOS (only server - no binaries provided!)
- - Linux (only server - no binaries provided!)
- Language support for:
- English
- German
@@ -96,21 +113,21 @@ A set of well thought out profiles for the most popular flight simulators are av
#### Architecture:
Local mode:
```
- Local:
-
- Physical Controller
- |
- |
- v
- ControllerBuddy
- | |
- | |
- v v
-vJoy Device Driver Win32 API
- | |
- | |
- v v
- Target Application
+ Local:
+
+ Physical Controller
+ |
+ |
+ v
+ ControllerBuddy
+ | |
+ | |
+ v v
+vJoy / uinput Win32 / X11
+ | |
+ | |
+ v v
+ Target Application
```
Server-Client mode:
@@ -125,7 +142,7 @@ Server-Client mode:
| |
| |
v v
- vJoy Device Driver Win32 API
+ vJoy / uinput Win32 / X11
| |
| |
v v
@@ -177,6 +194,7 @@ ControllerBuddy uses the following awesome software technologies and libraries:
- [FlatLaf](https://www.formdev.com/flatlaf/)
- [Gson](https://github.com/google/gson)
- [Java Native Access (JNA)](https://github.com/java-native-access/jna)
+- [linuxio4j](https://github.com/bithatch/linuxio4j)
- [LWJGL - Lightweight Java Game Library 3](https://www.lwjgl.org)
- [Pure Java HID-API](https://github.com/nyholku/purejavahidapi)
- [SDL_GameControllerDB](https://github.com/gabomdq/SDL_GameControllerDB)
@@ -186,15 +204,16 @@ ControllerBuddy uses the following awesome software technologies and libraries:
If you want to build ControllerBuddy from its source code this section might be helpful to get you started.
ControllerBuddy uses the Gradle build system, the following Gradle tasks are supported:
-| Task | Command |
-| -------------------------------- | ------------------------ |
-| Generate version source file | gradlew generateVersion |
-| Run SpotBugs and Spotless | gradlew check |
-| Apply Spotless formatting | gradlew spotlessApply |
-| Run ControllerBuddy | gradlew run |
-| Install a jpackage image | gradlew installDist |
-| Create a zipped jpackage image | gradlew distZip |
-| Generate Eclipse files | gradlew eclipse |
-| Delete Eclipse files | gradlew cleanEclipse |
-| Delete build and gen directories | gradlew clean |
+| Task | Command |
+| -------------------------------------- | ------------------------ |
+| Generate version source file | gradlew generateVersion |
+| Run SpotBugs and Spotless | gradlew check |
+| Apply Spotless formatting | gradlew spotlessApply |
+| Run ControllerBuddy | gradlew run |
+| Install a jpackage image | gradlew installDist |
+| Create a ZIP-compressed jpackage image | gradlew distZip |
+| Create a TGZ-compressed jpackage image | gradlew distTar |
+| Generate Eclipse files | gradlew eclipse |
+| Delete Eclipse files | gradlew cleanEclipse |
+| Delete build and gen directories | gradlew clean |
| Check for dependency updates | gradlew dependencyUpdate |
diff --git a/build.gradle b/build.gradle
index 0b3967b9..2f77c545 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,6 @@
import org.gradle.nativeplatform.platform.internal.Architectures
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
+import org.gradle.plugins.ide.eclipse.model.Container
import org.gradle.plugins.ide.eclipse.model.SourceFolder
import com.github.spotbugs.snom.SpotBugsReport
@@ -28,6 +29,8 @@ java {
}
ext {
+ os = DefaultNativePlatform.currentOperatingSystem
+
versionWithoutHash = version.substring(0, version.indexOf('-'))
resourcesDir = 'src/main/resources'
@@ -38,6 +41,10 @@ ext {
appImageDir = "$tmpDir/$project.name"
runtimeDir = "$tmpDir/runtime"
+ linuxJvmArgs = [
+ '--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED'
+ ]
+
gamecontrollerdbFile = "$resourcesDir/gamecontrollerdb.txt"
jdtUiPrefsFile = '.settings/org.eclipse.jdt.ui.prefs'
@@ -49,6 +56,8 @@ ext {
spotlessFormatFile = 'spotless.eclipseformat.xml'
spotlessImportOrderFile = 'spotless.importorder'
+
+ distAppendix = os.toFamilyName()
}
repositories {
@@ -60,17 +69,17 @@ dependencies {
def jnaVersion = '5.11.0'
def lwjglVersion = '3.3.1'
- def os = DefaultNativePlatform.currentOperatingSystem
- def clientPlatform = false
+ def openVrSupport = false
def lwjglOs
if (os.windows) {
lwjglOs = "windows"
- clientPlatform = true
+ openVrSupport = true
} else if (os.macOsX)
lwjglOs = 'macos'
- else if (os.linux)
+ else if (os.linux) {
lwjglOs = 'linux'
- else
+ openVrSupport = true
+ } else
throw new GradleException("Unsupported operating system $os.displayName")
def arch = DefaultNativePlatform.currentArchitecture
@@ -84,11 +93,13 @@ dependencies {
break
case { Architectures.ARM_V7.isAlias(it) && os.linux }:
lwjglArch = 'arm32'
+ openVrSupport = false
break
case 'aarch64':
case 'arm-v8':
case 'arm64':
lwjglArch = 'arm64'
+ openVrSupport = false
break
default:
throw new GradleException("Unsupported system architecture $arch.displayName")
@@ -108,7 +119,8 @@ dependencies {
"org.lwjgl:lwjgl-opengl:$lwjglVersion",
"org.lwjgl:lwjgl-openvr:$lwjglVersion",
"org.lwjgl:lwjgl:$lwjglVersion:natives-$lwjglPlatform",
- 'com.github.prat-man:unique4j:6701cef900'
+ 'com.github.prat-man:unique4j:6701cef900',
+ 'uk.co.bithatch:linuxio4j:2.1'
runtimeOnly "org.lwjgl:lwjgl-glfw:$lwjglVersion:natives-$lwjglPlatform"
@@ -116,7 +128,7 @@ dependencies {
exclude group: 'xml-apis', module: 'xml-apis'
}
- if (clientPlatform)
+ if (openVrSupport)
runtimeOnly "org.lwjgl:lwjgl-opengl:$lwjglVersion:natives-${lwjglPlatform}", "org.lwjgl:lwjgl-openvr:$lwjglVersion:natives-${lwjglPlatform}"
}
@@ -155,9 +167,9 @@ spotless {
licenseHeader '''\
/* Copyright (C) $YEAR Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -165,9 +177,8 @@ spotless {
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
'''.stripIndent()
@@ -249,6 +260,12 @@ eclipse {
file {
whenMerged { cp ->
cp.entries.add(3, new SourceFolder(versionDir, null))
+ if (os.linux)
+ cp.entries.findAll {it instanceof Container && it.path ==~ /org\.eclipse\.jdt\.launching\.JRE_CONTAINER\/.*$/}.each {
+ def entryAttributes = it.entryAttributes
+ entryAttributes['module'] = 'true'
+ entryAttributes['add-opens'] = 'java.desktop/sun.awt.X11=ALL-UNNAMED'
+ }
}
}
}
@@ -452,7 +469,12 @@ tasks.eclipse.doLast {
compileJava {
dependsOn generateVersion, copyGameControllerDB
source generateVersion.outputs.files, sourceSets.main.java
- options.compilerArgs += ["-Xlint:deprecation"]
+ options.compilerArgs += ['-Xlint:deprecation']
+}
+
+run {
+ if (os.linux)
+ jvmArgs = linuxJvmArgs
}
task jlink(type: Exec) {
@@ -486,16 +508,52 @@ task jpackage(type: Exec) {
description = 'Executes the jpackage command to create a standalone application image packaged with a custom minimal Java runtime.'
dependsOn copyLibs, customizeLoggingProperties
doFirst { delete appImageDir }
- commandLine 'jpackage', '--input', libsDir, '--dest', tmpDir, '--type', 'app-image', '--name', project.name, '--runtime-image', runtimeDir, '--main-class', project.application.mainClassName, '--main-jar', "$project.name-${version}.jar", '--app-version', versionWithoutHash, '--icon', "$projectDir/icon.ico", '--copyright', "Copyright ${new Date().format('yyyy')} Matteo Hausner", '--vendor', 'Matteo Hausner', '--verbose'
+ def commandLineParts = [
+ 'jpackage',
+ '--input',
+ libsDir,
+ '--dest',
+ tmpDir,
+ '--type',
+ 'app-image',
+ '--name',
+ project.name,
+ '--runtime-image',
+ runtimeDir,
+ '--main-class',
+ project.application.mainClassName,
+ '--main-jar',
+ "$project.name-${version}.jar",
+ '--app-version',
+ versionWithoutHash,
+ '--icon',
+ "$projectDir/icon.${os.windows ? 'ico' : 'png'}",
+ '--copyright',
+ "Copyright ${new Date().format('yyyy')} Matteo Hausner",
+ '--vendor',
+ 'Matteo Hausner',
+ '--verbose'
+ ]
+ if (os.linux)
+ linuxJvmArgs.each { commandLineParts.addAll(['--java-options', it]) }
+ commandLine commandLineParts
}
startScripts.enabled = false
-distTar.enabled = false
+
+task distTar(type: Tar, overwrite: true) {
+ dependsOn jpackage
+ from tmpDir
+ include "$project.name/**"
+ appendix distAppendix
+ compression Compression.GZIP
+}
task distZip(type: Zip, overwrite: true) {
dependsOn jpackage
from tmpDir
include "$project.name/**"
+ appendix distAppendix
}
task installDist(type: Sync, overwrite: true) {
diff --git a/icon.png b/icon.png
new file mode 100644
index 00000000..52985d5b
Binary files /dev/null and b/icon.png differ
diff --git a/spotbugs-baseline.xml b/spotbugs-baseline.xml
index a3237bc9..20a58eb6 100644
--- a/spotbugs-baseline.xml
+++ b/spotbugs-baseline.xml
@@ -1,241 +1,249 @@
+ timestamp="1653416208860" analysisTimestamp="1653416208860" release="">
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Mode$Component$ComponentType.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Mode$Component.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Mode.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Input$VirtualAxis.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Input.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/annotation/Action$ActionCategory.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/annotation/Action.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/annotation/ActionProperty.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IActivatableAction$Activatable.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IActivatableAction$Activation.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IActivatableAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IButtonToAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ILongPressAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IInitializationAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IResetableAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/DescribableAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder$PropertySetter.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder$PropertySetterAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder$EditActionsAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ActivationEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder$JComboBoxSetPropertyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/AxisValueEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder$JSpinnerSetPropertyChangeListener.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder$JCheckBoxSetPropertyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder$ZeroBasedFormatter.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder$ZeroBasedFormatterFactory.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ClicksEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/DeadZoneEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/DirectionEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/DistanceEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ExponentEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/InitialValueEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder$CheckboxJList$CheckboxListCellRenderer.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder$CheckboxJList$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder$CheckboxJList.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder$JListSetPropertyListSelectionListener.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/LockKeyEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/LongPressEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/MaxCursorSpeedEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/MaxRelativeSpeedEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/ModeEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/MouseAxisEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/MouseButtonEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder$MyDocumentListener.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/VirtualAxisEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/gui/VrCoordinateSystemEditorBuilder.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToAxisAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToAxisAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/InvertableAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IAxisToAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToCursorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToCursorAction$MouseAxis.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToCursorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToKeyAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToMouseButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToRelativeAxisAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToScrollAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToScrollAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/AxisToVrResetZeroPoseAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction$VrCoordinateSystem.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToCursorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToLockKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToMouseButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToPressOnScreenKeyboardKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToReleaseAllOnScreenKeyboardKeysAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToScrollAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction$Direction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/ButtonToVrResetZeroPoseAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/action/NullAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/Profile.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/KeyStroke.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/SonyExtension$Connection.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/SonyExtension$SonyInputReportListener.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/SonyExtension.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/OverlayAxis.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/LockKey.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/input/ScanCode.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$CompoundButton$CompoundButtonLocation.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$CompoundButton$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$CompoundButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$CustomButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$EditComponentAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$FourWay.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$Stick$StickType.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$Stick.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/GuiUtils$FrameDragListener.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/GuiUtils.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ChangeVJoyDirectoryAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ControllerInfo.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$DisplayIndicatorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ExportAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$HotSwappingButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$HtmlFileChooser.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$IndicatorProgressBar.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$InvertIndicatorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$JsonContext.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$NewAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$NewModeAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$OpenAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$OutputType.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ProfileFileChooser.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$QuitAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$RemoveModeAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SaveAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SaveAsAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SelectControllerAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SelectIndicatorColorAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SetHostAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SetHotSwapButtonAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$SetModeDescriptionAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ShowAboutDialogAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ShowAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ShowLicensesAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$ShowWebsiteAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$StartClientAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$StartLocalAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$StartServerAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$StopAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$TaskRunner.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$UnsavedChangesAwareAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$2.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$3.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$4.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$1StatusBarTextTimerTask.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$5.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main$6.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/Main.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OpenVrOverlay$TextureData.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OpenVrOverlay.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard$AbstractKeyboardButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard$DefaultKeyboardButton$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard$DefaultKeyboardButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard$LockKeyButton.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$AddActionAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$AssignedAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$AvailableAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$CancelAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$OKAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$RemoveActionAction.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/gui/EditActionsDialog.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/Output$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/Output.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ClientOutput$ClientState.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ClientOutput$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ClientOutput.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/VJoyOutput.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/IVjoyInterface.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/LocalOutput.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ServerOutput$ServerState.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ServerOutput$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/output/ServerOutput.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/json/ColorTypeAdapter.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory$1.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/version/VersionUtils.class
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/build/classes/java/main/de/bwravencl/controllerbuddy/version/Version.class
- /home/matteo/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.5.0/dc98be5d5390230684a092589d70ea76a147925c/commons-cli-1.5.0.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/com.formdev/flatlaf/2.2/ed87941b335d36f14eed6d68a779cde6ccab79c5/flatlaf-2.2.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/com.github.nyholku/purejavahidapi/ef5679619d/9170f7e18f897be429e1f2c5edd44807a7d7044a/purejavahidapi-ef5679619d.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/com.github.prat-man/unique4j/6701cef900/1952ed05262057672c6ece5cc5084d1e7da0c70e/unique4j-6701cef900.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.9.0/8a1167e089096758b49f9b34066ef98b2f4b37aa/gson-2.9.0.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/io.github.classgraph/classgraph/4.8.146/360448a09bfa5689d89cfa97fea53b3fdefa9c23/classgraph-4.8.146.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna-platform/5.11.0/3982895a856ba88cd7acf75a1b3a11046eef419d/jna-platform-5.11.0.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna/5.11.0/27770efb6329f092f895c7329662d1aa8ee8c0ac/jna-5.11.0.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl-glfw/3.3.1/cbac1b8d30cb4795149c1ef540f912671a8616d0/lwjgl-glfw-3.3.1.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl-opengl/3.3.1/831a5533a21a5f4f81bbc51bb13e9899319b5411/lwjgl-opengl-3.3.1.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl-openvr/3.3.1/228e175484b0ee41bef656f6b5665dd0da3adbb9/lwjgl-openvr-3.3.1.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl/3.3.1/ae58664f88e18a9bb2c77b063833ca7aaec484cb/lwjgl-3.3.1.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl/3.3.1/b597401014acb7196c76d97e15a6288f54f1f692/lwjgl-3.3.1-natives-linux-arm64.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-swing/1.14/e73ec76aa7d5b0f01aa47a9970d9fc246c0821e7/batik-swing-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-bridge/1.14/5833c8b8dc292081e0db6bbaee935e7e1391daaf/batik-bridge-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-script/1.14/f39a410e0cb936d0538c4a7411e1ae45c0d0a10a/batik-script-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-anim/1.14/135d69b4deb4569237e9ee9c508a13ba407a77bb/batik-anim-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-gvt/1.14/93aacfbe75655c2900c9fb069ffa059370366c78/batik-gvt-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-svg-dom/1.14/916c216454503413ed4fc76dbfac55b30bbcae2b/batik-svg-dom-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-parser/1.14/4ac928fd781673c0b6a181fabaa89f0ee3b32f28/batik-parser-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-awt-util/1.14/8f30e4cfc76626e7786ce0991df351cd91cddec6/batik-awt-util-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-dom/1.14/66943d7b34766d0d270cce9c61fba4d769362af/batik-dom-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-css/1.14/3118d46f4879ec08c6c6471c7c0825652ed659ee/batik-css-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-ext/1.14/79fe8cc37676e7af4c85f2f7fd51e17f46bc75ed/batik-ext-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-gui-util/1.14/4657a260ef8b6819d135b2d7c15fc0b97fc802c0/batik-gui-util-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-xml/1.14/b78b3e2f87579f02dcc342a147017cce8fc0ffc6/batik-xml-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-util/1.14/7ca55c864e5ddd690ba07f44e3ba8e68e9048a02/batik-util-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-constants/1.14/371acf696982f1c8e2689f5899b4e8453ccd74ff/batik-constants-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-i18n/1.14/a4e7b0cda9132904f21b25ab29a0b73e1867e7fd/batik-i18n-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/batik-shared-resources/1.14/42e9d6345952575e8b2f4ee26108b2811c334305/batik-shared-resources-1.14.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/xml-apis/xml-apis-ext/1.3.04/41a8b86b358e87f3f13cf46069721719105aff66/xml-apis-ext-1.3.04.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/org.apache.xmlgraphics/xmlgraphics-commons/2.6/8779b8d8f426f24fdb4a512f8bc4248cb3775bd2/xmlgraphics-commons-2.6.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/xalan/xalan/2.7.2/d55d3f02a56ec4c25695fe67e1334ff8c2ecea23/xalan-2.7.2.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/1.3.1/b90b6ac57cf27a2858eaa490d02ba7945d18ca7b/commons-io-1.3.1.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.0.4/f029a2aefe2b3e1517573c580f948caac31b1056/commons-logging-1.0.4.jar
- /home/matteo/.gradle/caches/modules-2/files-2.1/xalan/serializer/2.7.2/24247f3bb052ee068971393bdb83e04512bb1c3c/serializer-2.7.2.jar
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/src/main/resources
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/src/main/java
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$CompoundButton$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$CompoundButton$CompoundButtonLocation.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$CompoundButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$CustomButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$EditComponentAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$FourWay.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$Stick$StickType.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent$Stick.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$AddActionAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$AssignedAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$AvailableAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$CancelAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$OKAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog$RemoveActionAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\EditActionsDialog.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\GuiUtils$FrameDragListener.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\GuiUtils.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$1StatusBarTextTimerTask.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$2.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$3.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$4.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$5.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$6.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ChangeVJoyDirectoryAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ControllerInfo.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$DisplayIndicatorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ExportAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$HotSwappingButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$HtmlFileChooser.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$IndicatorProgressBar.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$InvertIndicatorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$JsonContext.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$NewAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$NewModeAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$OpenAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ProfileFileChooser.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$QuitAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$RemoveModeAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$RunModeType.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SaveAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SaveAsAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SelectControllerAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SelectIndicatorColorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SetHostAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SetHotSwapButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$SetModeDescriptionAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ShowAboutDialogAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ShowAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ShowLicensesAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$ShowWebsiteAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$StartClientAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$StartLocalAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$StartServerAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$StopAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$TaskRunner.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main$UnsavedChangesAwareAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\Main.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard$AbstractKeyboardButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard$DefaultKeyboardButton$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard$DefaultKeyboardButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard$LockKeyButton.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OpenVrOverlay$TextureData.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\annotation\Action$ActionCategory.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\annotation\Action.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\annotation\ActionProperty.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToAxisAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToCursorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToMouseButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToRelativeAxisAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToScrollAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\AxisToVrResetZeroPoseAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToAxisResetAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToAxisResetAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToCursorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToLockKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToModeAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToMouseButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToPressOnScreenKeyboardKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToReleaseAllOnScreenKeyboardKeysAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToScrollAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToSelectOnScreenKeyboardKeyAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToSelectOnScreenKeyboardKeyAction$Direction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToSelectOnScreenKeyboardKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ButtonToVrResetZeroPoseAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\DescribableAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ActionsEditorBuilder$EditActionsAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ActionsEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ActivationEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ArrayEditorBuilder$JComboBoxSetPropertyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ArrayEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\AxisValueEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\BooleanEditorBuilder$JCheckBoxSetPropertyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\BooleanEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ButtonEditorBuilder$ZeroBasedFormatter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ButtonEditorBuilder$ZeroBasedFormatterFactory.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ButtonEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ClicksEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\DeadZoneEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\DetentValueEditorBuilder$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\DetentValueEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\DirectionEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\DistanceEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\EditorBuilder$PropertySetter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\EditorBuilder$PropertySetterAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\EditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ExponentEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\InitialValueEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\KeystrokeEditorBuilder$CheckboxJList$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\KeystrokeEditorBuilder$CheckboxJList$CheckboxListCellRenderer.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\KeystrokeEditorBuilder$CheckboxJList.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\KeystrokeEditorBuilder$JListSetPropertyListSelectionListener.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\KeystrokeEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\LockKeyEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\LongPressEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\MaxCursorSpeedEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\MaxRelativeSpeedEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\ModeEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\MouseAxisEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\MouseButtonEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\NumberEditorBuilder$JSpinnerSetPropertyChangeListener.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\NumberEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\StringEditorBuilder$MyDocumentListener.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\StringEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\VirtualAxisEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\gui\VrCoordinateSystemEditorBuilder.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IActivatableAction$Activatable.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IActivatableAction$Activation.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IActivatableAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IAxisToAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IButtonToAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IInitializationAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ILongPressAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\InvertableAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\IResetableAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\NullAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToAxisAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToCursorAction$MouseAxis.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToCursorAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToKeyAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToKeyAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToMouseButtonAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToMouseButtonAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToScrollAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToVrResetZeroPoseAction$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToVrResetZeroPoseAction$VrCoordinateSystem.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\action\ToVrResetZeroPoseAction.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Input$VirtualAxis.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Input.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\KeyStroke.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\LockKey.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Mode$Component$ComponentType.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Mode$Component.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Mode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\OverlayAxis.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\Profile.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\ScanCode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\SonyExtension$Connection.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\SonyExtension$SonyInputReportListener.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\input\sony\SonyExtension.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\ActionTypeAdapter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\ColorTypeAdapter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\LockKeyAdapter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\ModeAwareTypeAdapterFactory$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\ModeAwareTypeAdapterFactory.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\json\ScanCodeAdapter.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ClientRunMode$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ClientRunMode$ClientState.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ClientRunMode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\IVjoyInterface.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\LocalRunMode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\OutputRunMode$AxisValue.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\OutputRunMode$ButtonValue.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\OutputRunMode$DeviceValue.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\OutputRunMode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\RunMode$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\RunMode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ServerRunMode$1.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ServerRunMode$ServerState.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\ServerRunMode.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\User32WithGetKeyState.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\runmode\X11WithLockKeyFunctions.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\version\Version.class
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\build\classes\java\main\de\bwravencl\controllerbuddy\version\VersionUtils.class
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\commons-cli\commons-cli\1.5.0\dc98be5d5390230684a092589d70ea76a147925c\commons-cli-1.5.0.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\com.formdev\flatlaf\2.2\ed87941b335d36f14eed6d68a779cde6ccab79c5\flatlaf-2.2.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\com.github.nyholku\purejavahidapi\ef5679619d\9170f7e18f897be429e1f2c5edd44807a7d7044a\purejavahidapi-ef5679619d.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\com.github.prat-man\unique4j\6701cef900\1952ed05262057672c6ece5cc5084d1e7da0c70e\unique4j-6701cef900.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.9.0\8a1167e089096758b49f9b34066ef98b2f4b37aa\gson-2.9.0.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\io.github.classgraph\classgraph\4.8.146\360448a09bfa5689d89cfa97fea53b3fdefa9c23\classgraph-4.8.146.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\uk.co.bithatch\linuxio4j\2.1\f7d312bfd93646a3e9a9ad66319d94a5ae9ef10e\linuxio4j-2.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.11.0\3982895a856ba88cd7acf75a1b3a11046eef419d\jna-platform-5.11.0.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\5.11.0\27770efb6329f092f895c7329662d1aa8ee8c0ac\jna-5.11.0.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.3.1\cbac1b8d30cb4795149c1ef540f912671a8616d0\lwjgl-glfw-3.3.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-opengl\3.3.1\831a5533a21a5f4f81bbc51bb13e9899319b5411\lwjgl-opengl-3.3.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openvr\3.3.1\228e175484b0ee41bef656f6b5665dd0da3adbb9\lwjgl-openvr-3.3.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl\3.3.1\ae58664f88e18a9bb2c77b063833ca7aaec484cb\lwjgl-3.3.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl\3.3.1\36c37f16ab611b3aa11f3bcf80b1d509b4ce6b\lwjgl-3.3.1-natives-windows.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-swing\1.14\e73ec76aa7d5b0f01aa47a9970d9fc246c0821e7\batik-swing-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-bridge\1.14\5833c8b8dc292081e0db6bbaee935e7e1391daaf\batik-bridge-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-script\1.14\f39a410e0cb936d0538c4a7411e1ae45c0d0a10a\batik-script-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-anim\1.14\135d69b4deb4569237e9ee9c508a13ba407a77bb\batik-anim-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-gvt\1.14\93aacfbe75655c2900c9fb069ffa059370366c78\batik-gvt-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-svg-dom\1.14\916c216454503413ed4fc76dbfac55b30bbcae2b\batik-svg-dom-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-parser\1.14\4ac928fd781673c0b6a181fabaa89f0ee3b32f28\batik-parser-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-awt-util\1.14\8f30e4cfc76626e7786ce0991df351cd91cddec6\batik-awt-util-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-dom\1.14\66943d7b34766d0d270cce9c61fba4d769362af\batik-dom-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-css\1.14\3118d46f4879ec08c6c6471c7c0825652ed659ee\batik-css-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-ext\1.14\79fe8cc37676e7af4c85f2f7fd51e17f46bc75ed\batik-ext-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-gui-util\1.14\4657a260ef8b6819d135b2d7c15fc0b97fc802c0\batik-gui-util-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-xml\1.14\b78b3e2f87579f02dcc342a147017cce8fc0ffc6\batik-xml-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-util\1.14\7ca55c864e5ddd690ba07f44e3ba8e68e9048a02\batik-util-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-constants\1.14\371acf696982f1c8e2689f5899b4e8453ccd74ff\batik-constants-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-i18n\1.14\a4e7b0cda9132904f21b25ab29a0b73e1867e7fd\batik-i18n-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\batik-shared-resources\1.14\42e9d6345952575e8b2f4ee26108b2811c334305\batik-shared-resources-1.14.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\xml-apis\xml-apis-ext\1.3.04\41a8b86b358e87f3f13cf46069721719105aff66\xml-apis-ext-1.3.04.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\org.apache.xmlgraphics\xmlgraphics-commons\2.6\8779b8d8f426f24fdb4a512f8bc4248cb3775bd2\xmlgraphics-commons-2.6.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\xalan\xalan\2.7.2\d55d3f02a56ec4c25695fe67e1334ff8c2ecea23\xalan-2.7.2.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\commons-io\commons-io\1.3.1\b90b6ac57cf27a2858eaa490d02ba7945d18ca7b\commons-io-1.3.1.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.0.4\f029a2aefe2b3e1517573c580f948caac31b1056\commons-logging-1.0.4.jar
+ C:\Users\matteo\.gradle\caches\modules-2\files-2.1\xalan\serializer\2.7.2\24247f3bb052ee068971393bdb83e04512bb1c3c\serializer-2.7.2.jar
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\src\main\resources
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\src\main\java
- At AssignmentsComponent.java:[lines 452-530]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[lines 451-529]
In class
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$1
@@ -264,10 +272,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java" />
In method
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$1.paintComponent(Graphics)
@@ -293,11 +301,11 @@
- At AssignmentsComponent.java:[line 487]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[line 486]
- At AssignmentsComponent.java:[lines 116-159]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[lines 115-158]
In class
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$CompoundButton$1
@@ -329,10 +337,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java" />
In method
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$CompoundButton$1.paintIcon(Component,
Graphics, int, int)
@@ -359,11 +367,11 @@
- At AssignmentsComponent.java:[line 133]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[line 132]
- At AssignmentsComponent.java:[lines 352-366]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[lines 351-365]
In class
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction
@@ -397,7 +405,7 @@
classname="de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction"
sourcefile="AssignmentsComponent.java"
sourcepath="de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java"
synthetic="true">
In AssignmentsComponent.java
@@ -409,10 +417,10 @@
role="TYPE_FOUND">
- At Mode.java:[lines 46-65]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 45-64]
Actual type
de.bwravencl.controllerbuddy.input.Mode$Component
@@ -421,7 +429,7 @@
classname="de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction"
sourcefile="AssignmentsComponent.java"
sourcepath="de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java"
synthetic="true">
In AssignmentsComponent.java
@@ -440,10 +448,10 @@
primary="true">
- At AssignmentsComponent.java:[lines 352-366]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java">
+ At AssignmentsComponent.java:[lines 351-365]
In class
de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction
@@ -456,7 +464,7 @@
classname="de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction"
sourcefile="AssignmentsComponent.java"
sourcepath="de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java"
synthetic="true">
In AssignmentsComponent.java
@@ -466,11 +474,11 @@
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
Actual type de.bwravencl.controllerbuddy.gui.Main
@@ -478,7 +486,7 @@
classname="de.bwravencl.controllerbuddy.gui.AssignmentsComponent$EditComponentAction"
sourcefile="AssignmentsComponent.java"
sourcepath="de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\AssignmentsComponent.java"
synthetic="true">
In AssignmentsComponent.java
@@ -497,10 +505,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -511,10 +519,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java" />
In method
de.bwravencl.controllerbuddy.gui.EditActionsDialog.getInput()
@@ -526,7 +534,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
In EditActionsDialog.java
Field
@@ -534,11 +542,11 @@
- At EditActionsDialog.java:[line 395]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[line 394]
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -570,10 +578,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java" />
In method new
de.bwravencl.controllerbuddy.gui.EditActionsDialog(Component,
ButtonToCycleAction)
@@ -587,7 +595,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
In EditActionsDialog.java
Field
@@ -599,11 +607,11 @@
- At EditActionsDialog.java:[line 304]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[line 303]
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -635,7 +643,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -647,10 +655,10 @@
role="TYPE_FOUND">
- At Mode.java:[lines 46-65]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 45-64]
Actual type
de.bwravencl.controllerbuddy.input.Mode$Component
@@ -659,7 +667,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -677,10 +685,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -693,7 +701,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -705,10 +713,10 @@
role="TYPE_FOUND">
- At ButtonToCycleAction.java:[lines 34-167]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
+ At ButtonToCycleAction.java:[lines 33-166]
Actual type
de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction
@@ -717,7 +725,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -735,10 +743,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -750,7 +758,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -760,11 +768,11 @@
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
Actual type de.bwravencl.controllerbuddy.input.Input
@@ -772,7 +780,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -790,10 +798,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -805,7 +813,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -815,11 +823,11 @@
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
Actual type de.bwravencl.controllerbuddy.gui.Main
@@ -827,7 +835,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -846,10 +854,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -862,7 +870,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -874,10 +882,10 @@
role="TYPE_FOUND">
- At EditActionsDialog.java:[lines 118-124]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 117-123]
Actual type
de.bwravencl.controllerbuddy.gui.EditActionsDialog$AssignedAction
@@ -886,7 +894,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -905,10 +913,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -921,7 +929,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -933,10 +941,10 @@
role="TYPE_FOUND">
- At EditActionsDialog.java:[lines 132-138]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 131-137]
Actual type
de.bwravencl.controllerbuddy.gui.EditActionsDialog$AvailableAction
@@ -945,7 +953,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -963,10 +971,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -979,7 +987,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -989,11 +997,11 @@
- At Mode.java:[lines 72-166]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 71-165]
Actual type de.bwravencl.controllerbuddy.input.Mode
@@ -1001,7 +1009,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -1019,10 +1027,10 @@
primary="true">
- At EditActionsDialog.java:[lines 230-588]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java">
+ At EditActionsDialog.java:[lines 229-587]
In class de.bwravencl.controllerbuddy.gui.EditActionsDialog
@@ -1035,7 +1043,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -1045,11 +1053,11 @@
- At Profile.java:[lines 36-191]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[lines 35-190]
Actual type de.bwravencl.controllerbuddy.input.Profile
@@ -1057,7 +1065,7 @@
classname="de.bwravencl.controllerbuddy.gui.EditActionsDialog"
sourcefile="EditActionsDialog.java"
sourcepath="de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\EditActionsDialog.java"
synthetic="true">
In EditActionsDialog.java
@@ -1072,32 +1080,32 @@
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main.terminate(int)
- At Main.java:[line 1356]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 1370]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main.stopAll(boolean, boolean,
boolean)
- At Main.java:[line 2904]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 2930]
+
+
+
+ Method invoked that should be only be invoked inside a
+ doPrivileged block
+ Invocation of reflect.Field.setAccessible(boolean), which
+ should be invoked from within a doPrivileged block, in
+ de.bwravencl.controllerbuddy.gui.Main.updateTitleAndTooltip()
+
+
+ At Main.java:[lines 1039-3462]
+
+ In class de.bwravencl.controllerbuddy.gui.Main
+
+
+
+ In method
+ de.bwravencl.controllerbuddy.gui.Main.updateTitleAndTooltip()
+
+
+
+ Called method reflect.Field.setAccessible(boolean)
+
+
+ At Main.java:[line 3431]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
@@ -1164,10 +1221,10 @@
name="getFrame" signature="()Ljavax/swing/JFrame;" isStatic="false"
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method de.bwravencl.controllerbuddy.gui.Main.getFrame()
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
In Main.java
Field de.bwravencl.controllerbuddy.gui.Main.frame
- At Main.java:[line 2043]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 2068]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
@@ -1215,10 +1272,10 @@
signature="()Lde/bwravencl/controllerbuddy/gui/OnScreenKeyboard;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main.getOnScreenKeyboard()
@@ -1230,18 +1287,18 @@
classname="de.bwravencl.controllerbuddy.gui.Main"
sourcefile="Main.java"
sourcepath="de/bwravencl/controllerbuddy/gui/Main.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/Main.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
In Main.java
Field de.bwravencl.controllerbuddy.gui.Main.onScreenKeyboard
- At Main.java:[line 2051]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 2076]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
@@ -1267,10 +1324,10 @@
name="getPreferences" signature="()Ljava/util/prefs/Preferences;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main.getPreferences()
@@ -1281,98 +1338,98 @@
classname="de.bwravencl.controllerbuddy.gui.Main"
sourcefile="Main.java"
sourcepath="de/bwravencl/controllerbuddy/gui/Main.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/Main.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
In Main.java
Field de.bwravencl.controllerbuddy.gui.Main.preferences
- At Main.java:[line 2059]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 2084]
Method lists Exception in its throws clause.
Method lists Exception in its throws clause.
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
In method
- de.bwravencl.controllerbuddy.gui.Main.lambda$new$15()
+ de.bwravencl.controllerbuddy.gui.Main.lambda$new$16()
- At Main.java:[line 1813]
+ At Main.java:[line 1838]
Method lists Exception in its throws clause.
Method lists Exception in its throws clause.
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
In method
- de.bwravencl.controllerbuddy.gui.Main.lambda$updateGameControllerMappings$28(ByteBuffer)
+ de.bwravencl.controllerbuddy.gui.Main.lambda$updateGameControllerMappings$29(ByteBuffer)
- At Main.java:[line 3001]
+ At Main.java:[line 3027]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
In method de.bwravencl.controllerbuddy.gui.Main.<static
initializer for Main>()
- At Main.java:[lines 1030-1171]
+ At Main.java:[lines 1039-1185]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
@@ -1434,24 +1491,24 @@
name="onControllersChanged" signature="(Ljava/util/List;Z)V"
isStatic="false" primary="true">
In method
de.bwravencl.controllerbuddy.gui.Main.onControllersChanged(List,
boolean)
- At Main.java:[lines 2360-2582]
+ At Main.java:[lines 2386-2608]
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
In class de.bwravencl.controllerbuddy.gui.Main
In method
de.bwravencl.controllerbuddy.gui.Main.updateTheme()
- At Main.java:[lines 3377-3388]
+ At Main.java:[lines 3400-3411]
- At Main.java:[lines 322-352]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 326-356]
In class
de.bwravencl.controllerbuddy.gui.Main$HtmlFileChooser
@@ -1520,20 +1577,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main$HtmlFileChooser.approveSelection()
- At Main.java:[lines 344-346]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 348-350]
- At Main.java:[lines 364-409]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 368-413]
In class
de.bwravencl.controllerbuddy.gui.Main$IndicatorProgressBar
@@ -1567,7 +1624,7 @@
classname="de.bwravencl.controllerbuddy.gui.Main$IndicatorProgressBar"
sourcefile="Main.java"
sourcepath="de/bwravencl/controllerbuddy/gui/Main.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/Main.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java"
synthetic="true">
In Main.java
@@ -1579,10 +1636,10 @@
role="TYPE_FOUND">
- At OverlayAxis.java:[lines 29-39]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\OverlayAxis.java">
+ At OverlayAxis.java:[lines 28-38]
Actual type de.bwravencl.controllerbuddy.input.OverlayAxis
@@ -1590,7 +1647,7 @@
classname="de.bwravencl.controllerbuddy.gui.Main$IndicatorProgressBar"
sourcefile="Main.java"
sourcepath="de/bwravencl/controllerbuddy/gui/Main.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/Main.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java"
synthetic="true">
In Main.java
@@ -1609,10 +1666,10 @@
primary="true">
- At Main.java:[lines 508-531]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 510-533]
In class
de.bwravencl.controllerbuddy.gui.Main$ProfileFileChooser
@@ -1623,20 +1680,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main$ProfileFileChooser.approveSelection()
- At Main.java:[lines 523-525]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 525-527]
- At Main.java:[lines 880-994]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 886-1003]
In class de.bwravencl.controllerbuddy.gui.Main$TaskRunner
@@ -1663,20 +1720,61 @@
name="enterLoop" signature="()V" isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main$TaskRunner.enterLoop()
- At Main.java:[line 909]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 918]
+
+
+
+ Method intentionally throws RuntimeException.
+ Method intentionally throws RuntimeException.
+
+
+ At Main.java:[lines 886-1003]
+
+ In class de.bwravencl.controllerbuddy.gui.Main$TaskRunner
+
+
+
+ In method
+ de.bwravencl.controllerbuddy.gui.Main$TaskRunner.enterLoop()
+
+
+ At Main.java:[lines 897-932]
- At Main.java:[lines 880-994]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 886-1003]
In class de.bwravencl.controllerbuddy.gui.Main$TaskRunner
@@ -1704,22 +1802,22 @@
isStatic="false" primary="true">
In method
de.bwravencl.controllerbuddy.gui.Main$TaskRunner.run(Callable)
- At Main.java:[lines 937-954]
+ At Main.java:[lines 946-963]
- At Main.java:[lines 880-994]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 886-1003]
In class de.bwravencl.controllerbuddy.gui.Main$TaskRunner
@@ -1748,20 +1846,20 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main$TaskRunner.run(Callable)
- At Main.java:[line 943]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 952]
- At Main.java:[lines 880-994]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 886-1003]
In class de.bwravencl.controllerbuddy.gui.Main$TaskRunner
@@ -1790,20 +1888,20 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java" />
In method
de.bwravencl.controllerbuddy.gui.Main$TaskRunner.run(Callable)
- At Main.java:[line 943]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[line 952]
- At OnScreenKeyboard.java:[lines 343-643]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java">
+ At OnScreenKeyboard.java:[lines 344-644]
In class de.bwravencl.controllerbuddy.gui.OnScreenKeyboard
@@ -1836,7 +1934,7 @@
classname="de.bwravencl.controllerbuddy.gui.OnScreenKeyboard"
sourcefile="OnScreenKeyboard.java"
sourcepath="de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java"
synthetic="true">
In OnScreenKeyboard.java
@@ -1848,10 +1946,10 @@
role="TYPE_FOUND">
- At GuiUtils.java:[lines 60-97]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\GuiUtils.java">
+ At GuiUtils.java:[lines 59-96]
Actual type
de.bwravencl.controllerbuddy.gui.GuiUtils$FrameDragListener
@@ -1860,7 +1958,7 @@
classname="de.bwravencl.controllerbuddy.gui.OnScreenKeyboard"
sourcefile="OnScreenKeyboard.java"
sourcepath="de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java"
synthetic="true">
In OnScreenKeyboard.java
@@ -1878,10 +1976,10 @@
primary="true">
- At OnScreenKeyboard.java:[lines 343-643]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java">
+ At OnScreenKeyboard.java:[lines 344-644]
In class de.bwravencl.controllerbuddy.gui.OnScreenKeyboard
@@ -1893,7 +1991,7 @@
classname="de.bwravencl.controllerbuddy.gui.OnScreenKeyboard"
sourcefile="OnScreenKeyboard.java"
sourcepath="de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java"
synthetic="true">
In OnScreenKeyboard.java
@@ -1902,11 +2000,11 @@
- At Main.java:[lines 1030-3426]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\Main.java">
+ At Main.java:[lines 1039-3462]
Actual type de.bwravencl.controllerbuddy.gui.Main
@@ -1914,7 +2012,7 @@
classname="de.bwravencl.controllerbuddy.gui.OnScreenKeyboard"
sourcefile="OnScreenKeyboard.java"
sourcepath="de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java"
synthetic="true">
In OnScreenKeyboard.java
@@ -1933,10 +2031,10 @@
primary="true">
- At OnScreenKeyboard.java:[lines 72-111]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java">
+ At OnScreenKeyboard.java:[lines 71-110]
In class
de.bwravencl.controllerbuddy.gui.OnScreenKeyboard$AbstractKeyboardButton
@@ -1948,10 +2046,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java" />
In method new
de.bwravencl.controllerbuddy.gui.OnScreenKeyboard$AbstractKeyboardButton(OnScreenKeyboard,
String)
@@ -1961,11 +2059,11 @@
- At OnScreenKeyboard.java:[line 77]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OnScreenKeyboard.java">
+ At OnScreenKeyboard.java:[line 76]
- At OpenVrOverlay.java:[lines 63-395]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java">
+ At OpenVrOverlay.java:[lines 62-394]
In class de.bwravencl.controllerbuddy.gui.OpenVrOverlay
@@ -1995,10 +2093,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java" />
In method new
de.bwravencl.controllerbuddy.gui.OpenVrOverlay(Main)
@@ -2007,11 +2105,11 @@
- At OpenVrOverlay.java:[line 285]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java">
+ At OpenVrOverlay.java:[line 284]
- At OpenVrOverlay.java:[lines 63-395]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java">
+ At OpenVrOverlay.java:[lines 62-394]
In class de.bwravencl.controllerbuddy.gui.OpenVrOverlay
@@ -2040,22 +2138,22 @@
isStatic="false" primary="true">
In method new
de.bwravencl.controllerbuddy.gui.OpenVrOverlay(Main)
- At OpenVrOverlay.java:[lines 194-292]
+ At OpenVrOverlay.java:[lines 193-291]
- At OpenVrOverlay.java:[lines 63-395]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java">
+ At OpenVrOverlay.java:[lines 62-394]
In class de.bwravencl.controllerbuddy.gui.OpenVrOverlay
@@ -2083,22 +2181,22 @@
primary="true">
In method
de.bwravencl.controllerbuddy.gui.OpenVrOverlay.checkOverlayError(int)
- At OpenVrOverlay.java:[lines 295-298]
+ At OpenVrOverlay.java:[lines 294-297]
- At OpenVrOverlay.java:[lines 63-395]
+ relSourcepath="java\de\bwravencl\controllerbuddy\gui\OpenVrOverlay.java">
+ At OpenVrOverlay.java:[lines 62-394]
In class de.bwravencl.controllerbuddy.gui.OpenVrOverlay
@@ -2126,10 +2224,10 @@
isStatic="false" primary="true">
In method
de.bwravencl.controllerbuddy.gui.OpenVrOverlay.updateOverlay(long,
@@ -2137,12 +2235,12 @@
- At OpenVrOverlay.java:[lines 344-395]
+ At OpenVrOverlay.java:[lines 343-394]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2168,10 +2266,10 @@
name="getAxes" signature="()Ljava/util/EnumMap;" isStatic="false"
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method de.bwravencl.controllerbuddy.input.Input.getAxes()
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.axes
- At Input.java:[line 190]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 189]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getButtons()
@@ -2230,18 +2328,18 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.buttons
- At Input.java:[line 194]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 193]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2267,10 +2365,10 @@
name="getDownKeyStrokes" signature="()Ljava/util/Set;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getDownKeyStrokes()
@@ -2281,7 +2379,7 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field
@@ -2289,11 +2387,11 @@
- At Input.java:[line 210]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 209]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2320,10 +2418,10 @@
name="getDownMouseButtons" signature="()Ljava/util/Set;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getDownMouseButtons()
@@ -2334,7 +2432,7 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field
@@ -2342,11 +2440,11 @@
- At Input.java:[line 214]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 213]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2373,10 +2471,10 @@
name="getDownUpKeyStrokes" signature="()Ljava/util/Set;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getDownUpKeyStrokes()
@@ -2387,7 +2485,7 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field
@@ -2395,11 +2493,11 @@
- At Input.java:[line 218]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 217]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2426,10 +2524,10 @@
name="getDownUpMouseButtons" signature="()Ljava/util/Set;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getDownUpMouseButtons()
@@ -2440,7 +2538,7 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field
@@ -2448,11 +2546,11 @@
- At Input.java:[line 222]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 221]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2478,10 +2576,10 @@
name="getMain" signature="()Lde/bwravencl/controllerbuddy/gui/Main;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method de.bwravencl.controllerbuddy.input.Input.getMain()
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.main
- At Input.java:[line 226]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 225]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2528,10 +2626,10 @@
name="getOffLockKeys" signature="()Ljava/util/Set;" isStatic="false"
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getOffLockKeys()
@@ -2542,18 +2640,18 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.offLockKeys
- At Input.java:[line 230]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 229]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2579,10 +2677,10 @@
name="getOnLockKeys" signature="()Ljava/util/Set;" isStatic="false"
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getOnLockKeys()
@@ -2593,124 +2691,124 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.onLockKeys
- At Input.java:[line 234]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 233]
May expose internal representation by returning
reference to mutable object
- de.bwravencl.controllerbuddy.input.Input.getOutput() may
- expose internal representation by returning Input.output
+ de.bwravencl.controllerbuddy.input.Input.getProfile() may
+ expose internal representation by returning Input.profile
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
- de.bwravencl.controllerbuddy.input.Input.getOutput()
+ de.bwravencl.controllerbuddy.input.Input.getProfile()
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
- Field de.bwravencl.controllerbuddy.input.Input.output
+ Field de.bwravencl.controllerbuddy.input.Input.profile
- At Input.java:[line 238]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 241]
May expose internal representation by returning
reference to mutable object
- de.bwravencl.controllerbuddy.input.Input.getProfile() may
- expose internal representation by returning Input.profile
+ de.bwravencl.controllerbuddy.input.Input.getRunMode() may
+ expose internal representation by returning Input.runMode
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
- de.bwravencl.controllerbuddy.input.Input.getProfile()
+ de.bwravencl.controllerbuddy.input.Input.getRunMode()
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
- Field de.bwravencl.controllerbuddy.input.Input.profile
+ Field de.bwravencl.controllerbuddy.input.Input.runMode
- At Input.java:[line 246]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 249]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2737,10 +2835,10 @@
signature="()Lde/bwravencl/controllerbuddy/input/sony/SonyExtension;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
de.bwravencl.controllerbuddy.input.Input.getSonyExtension()
@@ -2752,18 +2850,18 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.sonyExtension
- At Input.java:[line 258]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 257]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2791,11 +2889,11 @@
signature="(Lde/bwravencl/controllerbuddy/gui/Main;Lde/bwravencl/controllerbuddy/gui/Main$ControllerInfo;Ljava/util/EnumMap;)V"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method new de.bwravencl.controllerbuddy.input.Input(Main,
Main$ControllerInfo, EnumMap)
@@ -2806,22 +2904,22 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.axes
-
Local variable named axes
- At Input.java:[line 163]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 162]
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
@@ -2849,11 +2947,11 @@
signature="(Lde/bwravencl/controllerbuddy/gui/Main;Lde/bwravencl/controllerbuddy/gui/Main$ControllerInfo;Ljava/util/EnumMap;)V"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method new de.bwravencl.controllerbuddy.input.Input(Main,
Main$ControllerInfo, EnumMap)
@@ -2864,139 +2962,139 @@
classname="de.bwravencl.controllerbuddy.input.Input"
sourcefile="Input.java"
sourcepath="de/bwravencl/controllerbuddy/input/Input.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Input.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
Field de.bwravencl.controllerbuddy.input.Input.main
-
Local variable named main
- At Input.java:[line 157]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 156]
May expose internal representation by incorporating
reference to mutable object
- de.bwravencl.controllerbuddy.input.Input.setOutput(Output)
+ de.bwravencl.controllerbuddy.input.Input.setProfile(Profile)
may expose internal representation by storing an externally mutable
- object into Input.output
+ object into Input.profile
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
- de.bwravencl.controllerbuddy.input.Input.setOutput(Output)
+ de.bwravencl.controllerbuddy.input.Input.setProfile(Profile)
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
- Field de.bwravencl.controllerbuddy.input.Input.output
+ Field de.bwravencl.controllerbuddy.input.Input.profile
-
- Local variable named output
+ Local variable named profile
- At Input.java:[line 585]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 647]
May expose internal representation by incorporating
reference to mutable object
- de.bwravencl.controllerbuddy.input.Input.setProfile(Profile)
+ de.bwravencl.controllerbuddy.input.Input.setRunMode(RunMode)
may expose internal representation by storing an externally mutable
- object into Input.profile
+ object into Input.runMode
- At Input.java:[lines 55-661]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[lines 54-661]
In class de.bwravencl.controllerbuddy.input.Input
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java" />
In method
- de.bwravencl.controllerbuddy.input.Input.setProfile(Profile)
+ de.bwravencl.controllerbuddy.input.Input.setRunMode(RunMode)
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
In Input.java
- Field de.bwravencl.controllerbuddy.input.Input.profile
+ Field de.bwravencl.controllerbuddy.input.Input.runMode
-
- Local variable named profile
+ Local variable named runMode
- At Input.java:[line 651]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Input.java">
+ At Input.java:[line 652]
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method
de.bwravencl.controllerbuddy.input.KeyStroke.getKeyCodes()
+ name="keyCodes"
+ signature="[Lde/bwravencl/controllerbuddy/input/ScanCode;"
+ isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field de.bwravencl.controllerbuddy.input.KeyStroke.keyCodes
- At KeyStroke.java:[line 58]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[line 68]
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method
de.bwravencl.controllerbuddy.input.KeyStroke.getModifierCodes()
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field
@@ -3100,56 +3202,57 @@
- At KeyStroke.java:[line 62]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[line 72]
May expose internal representation by incorporating
reference to mutable object
new
- de.bwravencl.controllerbuddy.input.KeyStroke(Integer[], Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke(ScanCode[], ScanCode[])
may expose internal representation by storing an externally mutable
object into KeyStroke.keyCodes
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method new
- de.bwravencl.controllerbuddy.input.KeyStroke(Integer[], Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke(ScanCode[], ScanCode[])
+ name="keyCodes"
+ signature="[Lde/bwravencl/controllerbuddy/input/ScanCode;"
+ isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field de.bwravencl.controllerbuddy.input.KeyStroke.keyCodes
@@ -3163,53 +3266,54 @@
primary="true" start="36" end="36" startBytecode="6" endBytecode="6"
sourcefile="KeyStroke.java"
sourcepath="de/bwravencl/controllerbuddy/input/KeyStroke.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/KeyStroke.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
At KeyStroke.java:[line 36]
May expose internal representation by incorporating
reference to mutable object
new
- de.bwravencl.controllerbuddy.input.KeyStroke(Integer[], Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke(ScanCode[], ScanCode[])
may expose internal representation by storing an externally mutable
object into KeyStroke.modifierCodes
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method new
- de.bwravencl.controllerbuddy.input.KeyStroke(Integer[], Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke(ScanCode[], ScanCode[])
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field
@@ -3224,51 +3328,53 @@
primary="true" start="37" end="37" startBytecode="11"
endBytecode="11" sourcefile="KeyStroke.java"
sourcepath="de/bwravencl/controllerbuddy/input/KeyStroke.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/KeyStroke.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
At KeyStroke.java:[line 37]
May expose internal representation by incorporating
reference to mutable object
- de.bwravencl.controllerbuddy.input.KeyStroke.setKeyCodes(Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke.setKeyCodes(ScanCode[])
may expose internal representation by storing an externally mutable
object into KeyStroke.keyCodes
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method
- de.bwravencl.controllerbuddy.input.KeyStroke.setKeyCodes(Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke.setKeyCodes(ScanCode[])
+ name="keyCodes"
+ signature="[Lde/bwravencl/controllerbuddy/input/ScanCode;"
+ isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field de.bwravencl.controllerbuddy.input.KeyStroke.keyCodes
@@ -3279,54 +3385,56 @@
- At KeyStroke.java:[line 66]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[line 81]
May expose internal representation by incorporating
reference to mutable object
- de.bwravencl.controllerbuddy.input.KeyStroke.setModifierCodes(Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke.setModifierCodes(ScanCode[])
may expose internal representation by storing an externally mutable
object into KeyStroke.modifierCodes
- At KeyStroke.java:[lines 32-81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[lines 32-95]
In class de.bwravencl.controllerbuddy.input.KeyStroke
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java" />
In method
- de.bwravencl.controllerbuddy.input.KeyStroke.setModifierCodes(Integer[])
+ de.bwravencl.controllerbuddy.input.KeyStroke.setModifierCodes(ScanCode[])
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
In KeyStroke.java
Field
@@ -3338,11 +3446,122 @@
- At KeyStroke.java:[line 70]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\KeyStroke.java">
+ At KeyStroke.java:[line 85]
+
+
+
+ May expose internal representation by returning
+ reference to mutable object
+ de.bwravencl.controllerbuddy.input.LockKey.keySym() may
+ expose internal representation by returning LockKey.keySym
+
+
+ At LockKey.java:[lines 29-63]
+
+ In class de.bwravencl.controllerbuddy.input.LockKey
+
+
+
+ In method
+ de.bwravencl.controllerbuddy.input.LockKey.keySym()
+
+
+
+ In LockKey.java
+
+ Field de.bwravencl.controllerbuddy.input.LockKey.keySym
+
+
+ At LockKey.java:[line 29]
+
+
+
+ May expose internal representation by incorporating
+ reference to mutable object
+ new de.bwravencl.controllerbuddy.input.LockKey(String,
+ int, int, X11$KeySym) may expose internal representation by storing
+ an externally mutable object into LockKey.keySym
+
+
+ At LockKey.java:[lines 29-63]
+
+ In class de.bwravencl.controllerbuddy.input.LockKey
+
+
+
+ In method new
+ de.bwravencl.controllerbuddy.input.LockKey(String, int, int,
+ X11$KeySym)
+
+
+
+ In LockKey.java
+
+ Field de.bwravencl.controllerbuddy.input.LockKey.keySym
+
+
+ Local variable named keySym
+
+
+ At LockKey.java:[line 29]
- At LockKey.java:[lines 25-55]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\LockKey.java">
+ At LockKey.java:[lines 29-63]
In class de.bwravencl.controllerbuddy.input.LockKey
@@ -3371,18 +3590,18 @@
classname="de.bwravencl.controllerbuddy.input.LockKey"
sourcefile="LockKey.java"
sourcepath="de/bwravencl/controllerbuddy/input/LockKey.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/LockKey.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\LockKey.java">
In LockKey.java
Field de.bwravencl.controllerbuddy.input.LockKey.LOCK_KEYS
- At LockKey.java:[line 33]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\LockKey.java">
+ At LockKey.java:[line 43]
- At Mode.java:[lines 72-166]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 71-165]
In class de.bwravencl.controllerbuddy.input.Mode
@@ -3408,10 +3627,10 @@
name="getAxisToActionsMap" signature="()Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java" />
In method
de.bwravencl.controllerbuddy.input.Mode.getAxisToActionsMap()
@@ -3422,7 +3641,7 @@
classname="de.bwravencl.controllerbuddy.input.Mode"
sourcefile="Mode.java"
sourcepath="de/bwravencl/controllerbuddy/input/Mode.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Mode.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
In Mode.java
Field
@@ -3430,11 +3649,11 @@
- At Mode.java:[line 134]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[line 133]
- At Mode.java:[lines 72-166]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 71-165]
In class de.bwravencl.controllerbuddy.input.Mode
@@ -3461,10 +3680,10 @@
name="getButtonToActionsMap" signature="()Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java" />
In method
de.bwravencl.controllerbuddy.input.Mode.getButtonToActionsMap()
@@ -3475,7 +3694,7 @@
classname="de.bwravencl.controllerbuddy.input.Mode"
sourcefile="Mode.java"
sourcepath="de/bwravencl/controllerbuddy/input/Mode.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Mode.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
In Mode.java
Field
@@ -3483,11 +3702,11 @@
- At Mode.java:[line 138]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[line 137]
- At Mode.java:[lines 72-166]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 71-165]
In class de.bwravencl.controllerbuddy.input.Mode
@@ -3514,10 +3733,10 @@
signature="(Lde/bwravencl/controllerbuddy/input/Mode$Component$ComponentType;)Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java" />
In method
de.bwravencl.controllerbuddy.input.Mode.getComponentToActionsMap(Mode$Component$ComponentType)
@@ -3528,7 +3747,7 @@
classname="de.bwravencl.controllerbuddy.input.Mode"
sourcefile="Mode.java"
sourcepath="de/bwravencl/controllerbuddy/input/Mode.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Mode.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
In Mode.java
Field
@@ -3536,11 +3755,11 @@
- At Mode.java:[line 143]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[line 142]
- At Mode.java:[lines 72-166]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[lines 71-165]
In class de.bwravencl.controllerbuddy.input.Mode
@@ -3568,10 +3787,10 @@
signature="(Lde/bwravencl/controllerbuddy/input/Mode$Component$ComponentType;)Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java" />
In method
de.bwravencl.controllerbuddy.input.Mode.getComponentToActionsMap(Mode$Component$ComponentType)
@@ -3582,7 +3801,7 @@
classname="de.bwravencl.controllerbuddy.input.Mode"
sourcefile="Mode.java"
sourcepath="de/bwravencl/controllerbuddy/input/Mode.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Mode.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
In Mode.java
Field
@@ -3590,11 +3809,11 @@
- At Mode.java:[line 144]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Mode.java">
+ At Mode.java:[line 143]
- At Profile.java:[lines 36-191]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[lines 35-190]
In class de.bwravencl.controllerbuddy.input.Profile
@@ -3621,11 +3840,11 @@
name="getButtonToModeActionsMap" signature="()Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java" />
In method
de.bwravencl.controllerbuddy.input.Profile.getButtonToModeActionsMap()
@@ -3636,7 +3855,7 @@
classname="de.bwravencl.controllerbuddy.input.Profile"
sourcefile="Profile.java"
sourcepath="de/bwravencl/controllerbuddy/input/Profile.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Profile.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
In Profile.java
Field
@@ -3644,11 +3863,11 @@
- At Profile.java:[line 100]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[line 99]
- At Profile.java:[lines 36-191]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[lines 35-190]
In class de.bwravencl.controllerbuddy.input.Profile
@@ -3674,11 +3893,11 @@
name="getModes" signature="()Ljava/util/List;" isStatic="false"
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java" />
In method
de.bwravencl.controllerbuddy.input.Profile.getModes()
@@ -3689,18 +3908,18 @@
classname="de.bwravencl.controllerbuddy.input.Profile"
sourcefile="Profile.java"
sourcepath="de/bwravencl/controllerbuddy/input/Profile.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Profile.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
In Profile.java
Field de.bwravencl.controllerbuddy.input.Profile.modes
- At Profile.java:[line 108]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[line 107]
- At Profile.java:[lines 36-191]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[lines 35-190]
In class de.bwravencl.controllerbuddy.input.Profile
@@ -3727,11 +3946,11 @@
name="getVirtualAxisToOverlayAxisMap" signature="()Ljava/util/Map;"
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java" />
In method
de.bwravencl.controllerbuddy.input.Profile.getVirtualAxisToOverlayAxisMap()
@@ -3742,7 +3961,7 @@
classname="de.bwravencl.controllerbuddy.input.Profile"
sourcefile="Profile.java"
sourcepath="de/bwravencl/controllerbuddy/input/Profile.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/Profile.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
In Profile.java
Field
@@ -3750,11 +3969,11 @@
- At Profile.java:[line 116]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\Profile.java">
+ At Profile.java:[line 115]
- At ButtonToCycleAction.java:[lines 34-167]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
+ At ButtonToCycleAction.java:[lines 33-166]
In class
de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction
@@ -3785,10 +4004,10 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java" />
In method
de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction.getActions()
@@ -3800,7 +4019,7 @@
classname="de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction"
sourcefile="ButtonToCycleAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
In ButtonToCycleAction.java
Field
@@ -3808,11 +4027,11 @@
- At ButtonToCycleAction.java:[line 105]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
+ At ButtonToCycleAction.java:[line 104]
- At ButtonToCycleAction.java:[lines 34-167]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
+ At ButtonToCycleAction.java:[lines 33-166]
In class
de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction
@@ -3843,10 +4062,10 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java" />
In method
de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction.setActions(List)
@@ -3858,7 +4077,7 @@
classname="de.bwravencl.controllerbuddy.input.action.ButtonToCycleAction"
sourcefile="ButtonToCycleAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
In ButtonToCycleAction.java
Field
@@ -3870,11 +4089,11 @@
- At ButtonToCycleAction.java:[line 151]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToCycleAction.java">
+ At ButtonToCycleAction.java:[line 150]
- At ButtonToModeAction.java:[lines 38-210]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToModeAction.java">
+ At ButtonToModeAction.java:[lines 37-209]
In class
de.bwravencl.controllerbuddy.input.action.ButtonToModeAction
@@ -3906,10 +4125,10 @@
signature="()Ljava/util/LinkedList;" isStatic="true" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToModeAction.java" />
In method
de.bwravencl.controllerbuddy.input.action.ButtonToModeAction.getButtonToModeActionStack()
@@ -3921,7 +4140,7 @@
classname="de.bwravencl.controllerbuddy.input.action.ButtonToModeAction"
sourcefile="ButtonToModeAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToModeAction.java">
In ButtonToModeAction.java
Field
@@ -3929,11 +4148,11 @@
- At ButtonToModeAction.java:[line 44]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ButtonToModeAction.java">
+ At ButtonToModeAction.java:[line 43]
- At IAction.java:[lines 27-36]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAction.java">
+ At IAction.java:[lines 26-35]
In class de.bwravencl.controllerbuddy.input.action.IAction
@@ -3960,22 +4179,22 @@
isStatic="true" primary="true">
In method
de.bwravencl.controllerbuddy.input.action.IAction.getLabel(Class)
- At IAction.java:[lines 31-36]
+ At IAction.java:[lines 30-35]
- At IAxisToLongPressAction.java:[lines 29-91]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
+ At IAxisToLongPressAction.java:[lines 28-90]
In class
de.bwravencl.controllerbuddy.input.action.IAxisToLongPressAction
@@ -4007,7 +4226,7 @@
classname="de.bwravencl.controllerbuddy.input.action.IAxisToLongPressAction"
sourcefile="IAxisToLongPressAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
In IAxisToLongPressAction.java
Field
@@ -4015,11 +4234,11 @@
- At IAxisToLongPressAction.java:[line 29]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
+ At IAxisToLongPressAction.java:[line 28]
- At IAxisToLongPressAction.java:[lines 29-91]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
+ At IAxisToLongPressAction.java:[lines 28-90]
In class
de.bwravencl.controllerbuddy.input.action.IAxisToLongPressAction
@@ -4051,7 +4270,7 @@
classname="de.bwravencl.controllerbuddy.input.action.IAxisToLongPressAction"
sourcefile="IAxisToLongPressAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
In IAxisToLongPressAction.java
Field
@@ -4059,11 +4278,11 @@
- At IAxisToLongPressAction.java:[line 30]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IAxisToLongPressAction.java">
+ At IAxisToLongPressAction.java:[line 29]
- At IButtonToAction.java:[lines 29-90]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
+ At IButtonToAction.java:[lines 28-89]
In class
de.bwravencl.controllerbuddy.input.action.IButtonToAction
@@ -4095,7 +4314,7 @@
classname="de.bwravencl.controllerbuddy.input.action.IButtonToAction"
sourcefile="IButtonToAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/IButtonToAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
In IButtonToAction.java
Field
@@ -4103,11 +4322,11 @@
- At IButtonToAction.java:[line 29]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
+ At IButtonToAction.java:[line 28]
- At IButtonToAction.java:[lines 29-90]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
+ At IButtonToAction.java:[lines 28-89]
In class
de.bwravencl.controllerbuddy.input.action.IButtonToAction
@@ -4139,7 +4358,7 @@
classname="de.bwravencl.controllerbuddy.input.action.IButtonToAction"
sourcefile="IButtonToAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/IButtonToAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
In IButtonToAction.java
Field
@@ -4147,11 +4366,11 @@
- At IButtonToAction.java:[line 30]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\IButtonToAction.java">
+ At IButtonToAction.java:[line 29]
- At ToKeyAction.java:[lines 30-132]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
+ At ToKeyAction.java:[lines 29-131]
In class
de.bwravencl.controllerbuddy.input.action.ToKeyAction
@@ -4182,10 +4401,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java" />
In method
de.bwravencl.controllerbuddy.input.action.ToKeyAction.getKeystroke()
@@ -4198,7 +4417,7 @@
classname="de.bwravencl.controllerbuddy.input.action.ToKeyAction"
sourcefile="ToKeyAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/ToKeyAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
In ToKeyAction.java
Field
@@ -4206,11 +4425,11 @@
- At ToKeyAction.java:[line 71]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
+ At ToKeyAction.java:[line 70]
- At ToKeyAction.java:[lines 30-132]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
+ At ToKeyAction.java:[lines 29-131]
In class
de.bwravencl.controllerbuddy.input.action.ToKeyAction
@@ -4242,10 +4461,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java" />
In method
de.bwravencl.controllerbuddy.input.action.ToKeyAction.setKeystroke(KeyStroke)
@@ -4258,7 +4477,7 @@
classname="de.bwravencl.controllerbuddy.input.action.ToKeyAction"
sourcefile="ToKeyAction.java"
sourcepath="de/bwravencl/controllerbuddy/input/action/ToKeyAction.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
In ToKeyAction.java
Field
@@ -4270,11 +4489,11 @@
- At ToKeyAction.java:[line 126]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\action\ToKeyAction.java">
+ At ToKeyAction.java:[line 125]
- At DualSenseExtension.java:[lines 34-196]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.java">
+ At DualSenseExtension.java:[lines 33-195]
In class
de.bwravencl.controllerbuddy.input.sony.DualSenseExtension
@@ -4304,20 +4523,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.DualSenseExtension.getDefaultHidReport()
- At DualSenseExtension.java:[line 113]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.java">
+ At DualSenseExtension.java:[line 112]
- At DualShock4Extension.java:[lines 36-200]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.java">
+ At DualShock4Extension.java:[lines 35-199]
In class
de.bwravencl.controllerbuddy.input.sony.DualShock4Extension
@@ -4347,20 +4566,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.DualShock4Extension.getDefaultHidReport()
- At DualShock4Extension.java:[line 135]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.java">
+ At DualShock4Extension.java:[line 134]
- At SonyExtension.java:[lines 216-543]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[lines 215-542]
In class
de.bwravencl.controllerbuddy.input.sony.SonyExtension
@@ -4389,21 +4608,21 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.SonyExtension.lambda$rumble$1(int,
byte, long)
- At SonyExtension.java:[line 449]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[line 448]
- At SonyExtension.java:[lines 216-543]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[lines 215-542]
In class
de.bwravencl.controllerbuddy.input.sony.SonyExtension
@@ -4438,7 +4657,7 @@
classname="de.bwravencl.controllerbuddy.input.sony.SonyExtension"
sourcefile="SonyExtension.java"
sourcepath="de/bwravencl/controllerbuddy/input/sony/SonyExtension.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
In SonyExtension.java
Field
@@ -4450,20 +4669,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.DualSenseExtension$1.handleBattery(byte[])
- At DualSenseExtension.java:[line 68]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualSenseExtension.java">
+ At DualSenseExtension.java:[line 67]
- At SonyExtension.java:[lines 216-543]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[lines 215-542]
In class
de.bwravencl.controllerbuddy.input.sony.SonyExtension
@@ -4498,7 +4717,7 @@
classname="de.bwravencl.controllerbuddy.input.sony.SonyExtension"
sourcefile="SonyExtension.java"
sourcepath="de/bwravencl/controllerbuddy/input/sony/SonyExtension.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
In SonyExtension.java
Field
@@ -4510,20 +4729,20 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.DualShock4Extension$1.handleBattery(byte[])
- At DualShock4Extension.java:[line 81]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\DualShock4Extension.java">
+ At DualShock4Extension.java:[line 80]
- At SonyExtension.java:[lines 216-543]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[lines 215-542]
In class
de.bwravencl.controllerbuddy.input.sony.SonyExtension
@@ -4557,7 +4776,7 @@
classname="de.bwravencl.controllerbuddy.input.sony.SonyExtension"
sourcefile="SonyExtension.java"
sourcepath="de/bwravencl/controllerbuddy/input/sony/SonyExtension.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
In SonyExtension.java
Field
@@ -4569,21 +4788,21 @@
primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.SonyExtension.lambda$rumble$1(int,
byte, long)
- At SonyExtension.java:[line 453]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[line 452]
- At SonyExtension.java:[lines 216-543]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[lines 215-542]
In class
de.bwravencl.controllerbuddy.input.sony.SonyExtension
@@ -4616,7 +4835,7 @@
classname="de.bwravencl.controllerbuddy.input.sony.SonyExtension"
sourcefile="SonyExtension.java"
sourcepath="de/bwravencl/controllerbuddy/input/sony/SonyExtension.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
In SonyExtension.java
Field
@@ -4627,29 +4846,29 @@
name="sendHidReport" signature="()V" isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java" />
In method
de.bwravencl.controllerbuddy.input.sony.SonyExtension.sendHidReport()
- At SonyExtension.java:[line 474]
+ relSourcepath="java\de\bwravencl\controllerbuddy\input\sony\SonyExtension.java">
+ At SonyExtension.java:[line 473]
- Another occurrence at SonyExtension.java:[line 483]
+ Another occurrence at SonyExtension.java:[line 482]
- At ActionTypeAdapter.java:[lines 37-89]
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ActionTypeAdapter.java">
+ At ActionTypeAdapter.java:[lines 36-88]
In class de.bwravencl.controllerbuddy.json.ActionTypeAdapter
@@ -4679,10 +4898,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ActionTypeAdapter.java" />
In method
de.bwravencl.controllerbuddy.json.ActionTypeAdapter.getUnknownActionClasses()
@@ -4694,7 +4913,7 @@
classname="de.bwravencl.controllerbuddy.json.ActionTypeAdapter"
sourcefile="ActionTypeAdapter.java"
sourcepath="de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java"
- relSourcepath="java/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java">
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ActionTypeAdapter.java">
In ActionTypeAdapter.java
Field
@@ -4702,11 +4921,11 @@
- At ActionTypeAdapter.java:[line 80]
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ActionTypeAdapter.java">
+ At ActionTypeAdapter.java:[line 79]
- At ColorTypeAdapter.java:[lines 31-61]
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ColorTypeAdapter.java">
+ At ColorTypeAdapter.java:[lines 30-61]
In class de.bwravencl.controllerbuddy.json.ColorTypeAdapter
@@ -4737,10 +4956,10 @@
isStatic="false" primary="true">
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ColorTypeAdapter.java" />
In method
de.bwravencl.controllerbuddy.json.ColorTypeAdapter.deserialize(JsonElement,
Type, JsonDeserializationContext)
@@ -4769,243 +4988,381 @@
- At ColorTypeAdapter.java:[line 38]
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\ColorTypeAdapter.java">
+ At ColorTypeAdapter.java:[line 37]
-
- An overridable method is called from a constructor
- Overridable method setOutput is called from constructor
- new de.bwravencl.controllerbuddy.output.Output(Main, Input).
- Unchecked/unconfirmed cast
+ Unchecked/unconfirmed cast from
+ com.google.gson.JsonElement to com.google.gson.JsonPrimitive in
+ de.bwravencl.controllerbuddy.json.LockKeyAdapter.deserialize(JsonElement,
+ Type, JsonDeserializationContext)
+
- At Output.java:[lines 32-98]
+ classname="de.bwravencl.controllerbuddy.json.LockKeyAdapter"
+ start="31" end="61" sourcefile="LockKeyAdapter.java"
+ sourcepath="de/bwravencl/controllerbuddy/json/LockKeyAdapter.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\LockKeyAdapter.java">
+ At LockKeyAdapter.java:[lines 31-61]
- In class de.bwravencl.controllerbuddy.output.Output
+ In class de.bwravencl.controllerbuddy.json.LockKeyAdapter
-
- In method new
- de.bwravencl.controllerbuddy.output.Output(Main, Input)
+ classname="de.bwravencl.controllerbuddy.json.LockKeyAdapter"
+ start="37" end="55" startBytecode="0" endBytecode="49"
+ sourcefile="LockKeyAdapter.java"
+ sourcepath="de/bwravencl/controllerbuddy/json/LockKeyAdapter.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\LockKeyAdapter.java" />
+ In method
+ de.bwravencl.controllerbuddy.json.LockKeyAdapter.deserialize(JsonElement,
+ Type, JsonDeserializationContext)
-
- Value setOutput
-
+
+
+ At JsonElement.java:[lines 33-319]
+
+ Actual type com.google.gson.JsonElement
+
+
+
+ At JsonPrimitive.java:[lines 33-293]
+
+ Expected com.google.gson.JsonPrimitive
+
+
+ Value loaded from json
+
- At Output.java:[line 46]
+ classname="de.bwravencl.controllerbuddy.json.LockKeyAdapter"
+ primary="true" start="39" end="39" startBytecode="11"
+ endBytecode="11" sourcefile="LockKeyAdapter.java"
+ sourcepath="de/bwravencl/controllerbuddy/json/LockKeyAdapter.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\json\LockKeyAdapter.java">
+ At LockKeyAdapter.java:[line 39]
+
+
+
+ Unchecked/unconfirmed cast
+ Unchecked/unconfirmed cast from
+ com.google.gson.JsonElement to com.google.gson.JsonPrimitive in
+ de.bwravencl.controllerbuddy.json.ScanCodeAdapter.deserialize(JsonElement,
+ Type, JsonDeserializationContext)
+
+
+ At ScanCodeAdapter.java:[lines 31-61]
+
+ In class de.bwravencl.controllerbuddy.json.ScanCodeAdapter
+
+
+
+ In method
+ de.bwravencl.controllerbuddy.json.ScanCodeAdapter.deserialize(JsonElement,
+ Type, JsonDeserializationContext)
+
+
+
+ At JsonElement.java:[lines 33-319]
+
+ Actual type com.google.gson.JsonElement
+
+
+
+ At JsonPrimitive.java:[lines 33-293]
+
+ Expected com.google.gson.JsonPrimitive
+
+
+ Value loaded from json
+
+
+ At ScanCodeAdapter.java:[line 39]
May expose internal representation by incorporating
reference to mutable object
- de.bwravencl.controllerbuddy.output.VJoyOutput.setvJoyDevice(WinDef$UINT)
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.setvJoyDevice(WinDef$UINT)
may expose internal representation by storing an externally mutable
- object into VJoyOutput.vJoyDevice
+ object into OutputRunMode.vJoyDevice
- At VJoyOutput.java:[lines 65-595]
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ start="140" end="922" sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ At OutputRunMode.java:[lines 140-922]
- In class de.bwravencl.controllerbuddy.output.VJoyOutput
+ In class de.bwravencl.controllerbuddy.runmode.OutputRunMode
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ start="693" end="694" startBytecode="0" endBytecode="61"
+ sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java" />
In method
- de.bwravencl.controllerbuddy.output.VJoyOutput.setvJoyDevice(WinDef$UINT)
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.setvJoyDevice(WinDef$UINT)
- In VJoyOutput.java
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ In OutputRunMode.java
Field
- de.bwravencl.controllerbuddy.output.VJoyOutput.vJoyDevice
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.vJoyDevice
Local variable named vJoyDevice
- At VJoyOutput.java:[line 468]
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ primary="true" start="693" end="693" startBytecode="2"
+ endBytecode="2" sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ At OutputRunMode.java:[line 693]
-
- Method names should start with a lower case letter
- The method name
- de.bwravencl.controllerbuddy.output.VJoyOutput.GetKeyState(int)
- doesn't start with a lower case letter
+ Method lists Exception in its throws clause.
+ Method lists Exception in its throws clause.
- At VJoyOutput.java:[lines 65-595]
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ start="140" end="922" sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ At OutputRunMode.java:[lines 140-922]
- In class de.bwravencl.controllerbuddy.output.VJoyOutput
+ In class de.bwravencl.controllerbuddy.runmode.OutputRunMode
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ name="lambda$writeOutput$15" signature="()Ljava/lang/Integer;"
+ isStatic="false" primary="true">
In method
- de.bwravencl.controllerbuddy.output.VJoyOutput.GetKeyState(int)
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.lambda$writeOutput$15()
- In VJoyOutput.java
+ At OutputRunMode.java:[lines 898-906]
-
- Method lists Exception in its throws clause.
- Method lists Exception in its throws clause.
+ Method intentionally throws RuntimeException.
+ Method intentionally throws RuntimeException.
- At VJoyOutput.java:[lines 65-595]
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ start="140" end="922" sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ At OutputRunMode.java:[lines 140-922]
- In class de.bwravencl.controllerbuddy.output.VJoyOutput
+ In class de.bwravencl.controllerbuddy.runmode.OutputRunMode
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ name="setLockKeyState"
+ signature="(Lde/bwravencl/controllerbuddy/input/LockKey;Z)V"
+ isStatic="true" primary="true">
In method
- de.bwravencl.controllerbuddy.output.VJoyOutput.lambda$writeOutput$13()
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.setLockKeyState(LockKey,
+ boolean)
- At VJoyOutput.java:[line 521]
+ At OutputRunMode.java:[lines 206-243]
Method intentionally throws RuntimeException.
Method intentionally throws RuntimeException.
- At VJoyOutput.java:[lines 65-595]
+ classname="de.bwravencl.controllerbuddy.runmode.OutputRunMode"
+ start="140" end="922" sourcefile="OutputRunMode.java"
+ sourcepath="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ relSourcepath="java\de\bwravencl\controllerbuddy\runmode\OutputRunMode.java">
+ At OutputRunMode.java:[lines 140-922]
- In class de.bwravencl.controllerbuddy.output.VJoyOutput
+ In class de.bwravencl.controllerbuddy.runmode.OutputRunMode
In method
- de.bwravencl.controllerbuddy.output.VJoyOutput.writeOutput()
+ de.bwravencl.controllerbuddy.runmode.OutputRunMode.writeOutput()
- At VJoyOutput.java:[lines 472-595]
+ At OutputRunMode.java:[lines 697-922]
+
+
+
+ An overridable method is called from a constructor
+ Overridable method setRunMode is called from constructor
+ new de.bwravencl.controllerbuddy.runmode.RunMode(Main, Input).
+
+
+ At RunMode.java:[lines 31-97]
+
+ In class de.bwravencl.controllerbuddy.runmode.RunMode
+
+
+
+ In method new
+ de.bwravencl.controllerbuddy.runmode.RunMode(Main, Input)
+
+
+ Value setRunMode
+
+
+ At RunMode.java:[line 45]
@@ -5052,6 +5409,18 @@ before being initialized.
important properties, you will need to do something different.
Storing a copy of the object is better approach in many situations.
+ ]]>
+
+
+ Method invoked that should be only be invoked inside
+ a doPrivileged block
+ This code invokes a method that requires a security permission check.
+ If this code will be granted security permissions, but might be invoked by code that does not
+ have security permissions, then the invocation needs to occur inside a doPrivileged block.
+
]]>
This method contains a switch statement where one case branch will fall through to the next case.
Usually you need to end this case with a break or return.
- ]]>
-
-
- Method names should start with a lower case letter
-
-Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized.
-
-
]]>
Wait not in loop
+
+ Use doPrivileged
+
Storing reference to mutable object
@@ -5364,17 +5725,14 @@ object is stored in this field.
Prefer zero length arrays to null to indicate no results
-
- Confusing method name
-
Unable to read filter:
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/spotbugs-baseline.xml
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\spotbugs-baseline.xml
: Failing reading
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/spotbugs-baseline.xml
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\spotbugs-baseline.xml
org.dom4j.DocumentException: Failing reading
- /home/matteo/Projekte/ControllerBuddy/workspace-ControllerBuddy/ControllerBuddy/spotbugs-baseline.xml
+ C:\Users\matteo\Projekte\ControllerBuddy\workspace-ControllerBuddy\ControllerBuddy\spotbugs-baseline.xml
edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:279)
edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:260)
edu.umd.cs.findbugs.ExcludingHashesBugReporter.addToExcludedInstanceHashes(ExcludingHashesBugReporter.java:57)
@@ -5389,79 +5747,86 @@ object is stored in this field.
+ timestamp="Tue, 24 May 2022 20:16:48 +0200" total_classes="0"
+ referenced_classes="0" total_bugs="101" total_size="0"
+ num_packages="6" java_version="18.0.1" vm_version="18.0.1+10"
+ cpu_seconds="32.78" clock_seconds="8.24" peak_mbytes="580.06"
+ alloc_mbytes="8180.00" gc_seconds="0.12" priority_3="29"
+ priority_2="70" priority_1="2">
+ bugCount="4" size="0" bugHash="5b52e0a78bc354fa36750aa483331e0d" />
+ bugCount="10" size="0" bugHash="8b8ba933a0f5ffbcef3cc4a4b3e73648" />
+ bugCount="19" size="0" bugHash="0584e14afed215a73bb0dc443af045c3" />
+ bugCount="3" size="0" bugHash="a5fee855e444bf8859b85b51db3accc1" />
+ bugCount="4" size="0" bugHash="834aaf75f86feb77cb649e000adca337" />
+ size="0" bugHash="28aa69ffde5df29d634fa0341720fd59" />
+ size="0" bugHash="341727b8e8e9b9c0d106866463a37224" />
+ path="de/bwravencl/controllerbuddy/input/LockKey.java" bugCount="3"
+ size="0" bugHash="faf0de7d3751d73b5284d5ed5ae1d90c" />
+ size="0" bugHash="33f734b2dce4a6748587d2cd2b8924e4" />
+ size="0" bugHash="a1833fe05a09e80a5a6bc0f162397e9e" />
+ bugCount="2" size="0" bugHash="2ed419740779aee3ede7675419d9d371" />
+ bugCount="1" size="0" bugHash="44c6a633a0eac32e23420c1c0df9ba17" />
+ bugCount="1" size="0" bugHash="b8a2cf416bc0ac69ff974461e3ac8590" />
+ bugCount="2" size="0" bugHash="71108bcc540ee87e3483e03ffd0ebb58" />
+ bugCount="2" size="0" bugHash="b3570de33fbd5f196d465e07d210bfdb" />
+ bugCount="2" size="0" bugHash="11532cf120bd9579fd69c6cd070826b0" />
+ bugCount="2" size="0" bugHash="11f2df32a269dc4a6b9a88fade5ed07d" />
+ bugCount="2" size="0" bugHash="48801a37fed1e956d6db69e146d61113" />
+ bugCount="3" size="0" bugHash="6d22c5a88248aa9651d97ef2116152ec" />
+ bugCount="1" size="0" bugHash="dae4fdbd0e992e8a9a9161b68ab12e79" />
+ bugCount="1" size="0" bugHash="10214a0a6205b4ce27e6cc4d588c2169" />
+
+
+ path="de/bwravencl/controllerbuddy/runmode/OutputRunMode.java"
+ bugCount="4" size="0" bugHash="0806fe79f58e1c5a28d97a4cb3b3f1fe" />
+ path="de/bwravencl/controllerbuddy/runmode/RunMode.java" bugCount="1"
+ size="0" bugHash="b6818e28ebc457a424d8938b93e90e82" />
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java b/src/main/java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java
index 66e1c45b..09928cc4 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/AssignmentsComponent.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java b/src/main/java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java
index c36d93b2..a110982b 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/EditActionsDialog.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/GuiUtils.java b/src/main/java/de/bwravencl/controllerbuddy/gui/GuiUtils.java
index e4c142fb..38f72a70 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/GuiUtils.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/GuiUtils.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
index ca6e4d85..2d057b87 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
@@ -165,24 +164,29 @@
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParseException;
import com.sun.jna.Platform;
+import com.sun.jna.platform.unix.X11;
import com.sun.jna.platform.win32.WinDef.UINT;
import de.bwravencl.controllerbuddy.gui.GuiUtils.FrameDragListener;
import de.bwravencl.controllerbuddy.input.Input;
import de.bwravencl.controllerbuddy.input.Input.VirtualAxis;
+import de.bwravencl.controllerbuddy.input.LockKey;
import de.bwravencl.controllerbuddy.input.Mode;
import de.bwravencl.controllerbuddy.input.OverlayAxis;
import de.bwravencl.controllerbuddy.input.Profile;
+import de.bwravencl.controllerbuddy.input.ScanCode;
import de.bwravencl.controllerbuddy.input.action.AxisToRelativeAxisAction;
import de.bwravencl.controllerbuddy.input.action.IAction;
import de.bwravencl.controllerbuddy.json.ActionTypeAdapter;
import de.bwravencl.controllerbuddy.json.ColorTypeAdapter;
+import de.bwravencl.controllerbuddy.json.LockKeyAdapter;
import de.bwravencl.controllerbuddy.json.ModeAwareTypeAdapterFactory;
-import de.bwravencl.controllerbuddy.output.ClientOutput;
-import de.bwravencl.controllerbuddy.output.LocalOutput;
-import de.bwravencl.controllerbuddy.output.Output;
-import de.bwravencl.controllerbuddy.output.ServerOutput;
-import de.bwravencl.controllerbuddy.output.VJoyOutput;
+import de.bwravencl.controllerbuddy.json.ScanCodeAdapter;
+import de.bwravencl.controllerbuddy.runmode.ClientRunMode;
+import de.bwravencl.controllerbuddy.runmode.LocalRunMode;
+import de.bwravencl.controllerbuddy.runmode.OutputRunMode;
+import de.bwravencl.controllerbuddy.runmode.RunMode;
+import de.bwravencl.controllerbuddy.runmode.ServerRunMode;
import de.bwravencl.controllerbuddy.version.Version;
import de.bwravencl.controllerbuddy.version.VersionUtils;
import in.pratanumandal.unique4j.Unique4j;
@@ -203,7 +207,7 @@ private ChangeVJoyDirectoryAction() {
@Override
public void actionPerformed(final ActionEvent e) {
final var vJoyDirectoryFileChooser = new JFileChooser(
- preferences.get(PREFERENCES_VJOY_DIRECTORY, VJoyOutput.getDefaultInstallationPath()));
+ preferences.get(PREFERENCES_VJOY_DIRECTORY, OutputRunMode.getDefaultInstallationPath()));
vJoyDirectoryFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
if (vJoyDirectoryFileChooser.showOpenDialog(frame) != JFileChooser.APPROVE_OPTION)
@@ -211,7 +215,7 @@ public void actionPerformed(final ActionEvent e) {
final var vjoyDirectory = vJoyDirectoryFileChooser.getSelectedFile();
final var dllFile = new File(vjoyDirectory,
- VJoyOutput.getArchFolderName() + File.separator + VJoyOutput.LIBRARY_FILENAME);
+ OutputRunMode.getVJoyArchFolderName() + File.separator + OutputRunMode.VJOY_LIBRARY_FILENAME);
if (dllFile.exists()) {
final var vjoyPath = vjoyDirectory.getAbsolutePath();
preferences.put(PREFERENCES_VJOY_DIRECTORY, vjoyPath);
@@ -219,7 +223,7 @@ public void actionPerformed(final ActionEvent e) {
} else
GuiUtils.showMessageDialog(frame,
MessageFormat.format(strings.getString("INVALID_VJOY_DIRECTORY_DIALOG_TEXT"),
- VJoyOutput.getDefaultInstallationPath()),
+ OutputRunMode.getDefaultInstallationPath()),
strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
}
}
@@ -437,8 +441,10 @@ private static record JsonContext(Gson gson, ActionTypeAdapter actionTypeAdapter
private static JsonContext create() {
final var actionAdapter = new ActionTypeAdapter();
final var gson = new GsonBuilder().registerTypeAdapterFactory(new ModeAwareTypeAdapterFactory())
+ .registerTypeAdapter(Color.class, new ColorTypeAdapter())
.registerTypeAdapter(IAction.class, actionAdapter)
- .registerTypeAdapter(Color.class, new ColorTypeAdapter()).setPrettyPrinting().create();
+ .registerTypeAdapter(LockKey.class, new LockKeyAdapter())
+ .registerTypeAdapter(ScanCode.class, new ScanCodeAdapter()).setPrettyPrinting().create();
return new JsonContext(gson, actionAdapter);
}
@@ -497,10 +503,6 @@ protected void doAction(final ActionEvent e) {
}
}
- private enum OutputType {
- NONE, LOCAL, CLIENT, SERVER
- }
-
private static final class ProfileFileChooser extends JFileChooser {
private static final long serialVersionUID = -4669170626378955605L;
@@ -569,6 +571,10 @@ public void actionPerformed(final ActionEvent e) {
}
}
+ private enum RunModeType {
+ NONE, LOCAL, CLIENT, SERVER
+ }
+
private final class SaveAction extends AbstractAction {
private static final long serialVersionUID = -8469921697479550983L;
@@ -679,7 +685,7 @@ private void setHost() {
if (host != null && host.length() > 0)
preferences.put(PREFERENCES_HOST, host);
else
- hostTextField.setText(preferences.get(PREFERENCES_HOST, ClientOutput.DEFAULT_HOST));
+ hostTextField.setText(preferences.get(PREFERENCES_HOST, ClientRunMode.DEFAULT_HOST));
}
}
@@ -902,7 +908,10 @@ private void enterLoop() {
} else if (task instanceof final Runnable runnable)
runnable.run();
} catch (final Throwable t) {
- result = t;
+ if (task instanceof Callable)
+ result = t;
+ else if (task instanceof Runnable)
+ throw new RuntimeException(t);
} finally {
if (notify)
synchronized (this) {
@@ -1035,8 +1044,12 @@ public void actionPerformed(final ActionEvent e) {
public static final boolean isWindows = Platform.getOSType() == Platform.WINDOWS;
+ public static final boolean isLinux = Platform.getOSType() == Platform.LINUX;
+
public static final boolean isMac = Platform.getOSType() == Platform.MAC;
+ public static final boolean isOpenVrSupported = (isWindows || isLinux) && !Platform.isARM();
+
static boolean skipMessageDialogs;
public static final ResourceBundle strings = ResourceBundle.getBundle("strings");
@@ -1143,9 +1156,10 @@ public void actionPerformed(final ActionEvent e) {
private static final String WEBSITE_URL = "https://controllerbuddy.org";
static {
- options.addOption(OPTION_AUTOSTART, true, MessageFormat.format(
- strings.getString("AUTOSTART_OPTION_DESCRIPTION"),
- isWindows ? strings.getString("LOCAL_FEEDER_OR_CLIENT_OR_SERVER") : strings.getString("SERVER")));
+ options.addOption(OPTION_AUTOSTART, true,
+ MessageFormat.format(strings.getString("AUTOSTART_OPTION_DESCRIPTION"),
+ isWindows || isLinux ? strings.getString("LOCAL_FEEDER_OR_CLIENT_OR_SERVER")
+ : strings.getString("SERVER")));
options.addOption(OPTION_PROFILE, true, strings.getString("PROFILE_OPTION_DESCRIPTION"));
options.addOption(OPTION_GAME_CONTROLLER_DB, true, strings.getString("GAME_CONTROLLER_DB_OPTION_DESCRIPTION"));
options.addOption(OPTION_TRAY, false, strings.getString("TRAY_OPTION_DESCRIPTION"));
@@ -1366,13 +1380,13 @@ private static void terminate(final int status) {
private final Map virtualAxisToProgressBarMap = new HashMap<>();
- private volatile Output output;
+ private volatile RunMode runMode;
private ControllerInfo selectedController;
private Input input;
- private OutputType lastOutputType = OutputType.NONE;
+ private RunModeType lastRunModeType = RunModeType.NONE;
private final JFrame frame;
@@ -1574,7 +1588,7 @@ public void windowOpened(final WindowEvent e) {
fileJMenu.add(quitAction);
menuBar.add(deviceJMenu);
- if (isWindows) {
+ if (isWindows || isLinux) {
startLocalJMenuItem = runJMenu.add(startLocalAction);
startClientJMenuItem = runJMenu.add(startClientAction);
}
@@ -1608,7 +1622,7 @@ public void windowOpened(final WindowEvent e) {
pollIntervalPanel.add(pollIntervalLabel);
final var pollIntervalSpinner = new JSpinner(new SpinnerNumberModel(
- preferences.getInt(PREFERENCES_POLL_INTERVAL, Output.DEFAULT_POLL_INTERVAL), 1, 100, 1));
+ preferences.getInt(PREFERENCES_POLL_INTERVAL, RunMode.DEFAULT_POLL_INTERVAL), 1, 100, 1));
final var pollIntervalSpinnerEditor = new JSpinner.NumberEditor(pollIntervalSpinner,
"# " + strings.getString("MILLISECOND_SYMBOL"));
((DefaultFormatter) pollIntervalSpinnerEditor.getTextField().getFormatter()).setCommitsOnValidEdit(true);
@@ -1626,7 +1640,7 @@ public void windowOpened(final WindowEvent e) {
vJoyDirectoryPanel.add(vJoyDirectoryLabel);
this.vJoyDirectoryLabel = new JLabel(
- preferences.get(PREFERENCES_VJOY_DIRECTORY, VJoyOutput.getDefaultInstallationPath()));
+ preferences.get(PREFERENCES_VJOY_DIRECTORY, OutputRunMode.getDefaultInstallationPath()));
vJoyDirectoryPanel.add(this.vJoyDirectoryLabel);
final var vJoyDirectoryButton = new JButton(new ChangeVJoyDirectoryAction());
@@ -1640,14 +1654,16 @@ public void windowOpened(final WindowEvent e) {
vJoyDevicePanel.add(vJoyDeviceLabel);
final var vJoyDeviceSpinner = new JSpinner(new SpinnerNumberModel(
- preferences.getInt(PREFERENCES_VJOY_DEVICE, VJoyOutput.DEFAULT_VJOY_DEVICE), 1, 16, 1));
+ preferences.getInt(PREFERENCES_VJOY_DEVICE, OutputRunMode.VJOY_DEFAULT_DEVICE), 1, 16, 1));
final var vJoyDeviceSpinnerEditor = new JSpinner.NumberEditor(vJoyDeviceSpinner, "#");
((DefaultFormatter) vJoyDeviceSpinnerEditor.getTextField().getFormatter()).setCommitsOnValidEdit(true);
vJoyDeviceSpinner.setEditor(vJoyDeviceSpinnerEditor);
vJoyDeviceSpinner.addChangeListener(event -> preferences.putInt(PREFERENCES_VJOY_DEVICE,
(int) ((JSpinner) event.getSource()).getValue()));
vJoyDevicePanel.add(vJoyDeviceSpinner);
+ }
+ if (isWindows || isLinux) {
final var hostPanel = new JPanel(DEFAULT_FLOW_LAYOUT);
globalSettingsPanel.add(hostPanel, settingsPanelGridBagConstraints);
@@ -1655,7 +1671,7 @@ public void windowOpened(final WindowEvent e) {
hostLabel.setPreferredSize(SETTINGS_LABEL_DIMENSION);
hostPanel.add(hostLabel);
- hostTextField = new JTextField(preferences.get(PREFERENCES_HOST, ClientOutput.DEFAULT_HOST), 15);
+ hostTextField = new JTextField(preferences.get(PREFERENCES_HOST, ClientRunMode.DEFAULT_HOST), 15);
hostTextField.setCaretPosition(0);
final var setHostAction = new SetHostAction(hostTextField);
hostTextField.addActionListener(setHostAction);
@@ -1671,7 +1687,7 @@ public void windowOpened(final WindowEvent e) {
portPanel.add(portLabel);
final var portSpinner = new JSpinner(new SpinnerNumberModel(
- preferences.getInt(PREFERENCES_PORT, ServerOutput.DEFAULT_PORT), 1024, 65535, 1));
+ preferences.getInt(PREFERENCES_PORT, ServerRunMode.DEFAULT_PORT), 1024, 65535, 1));
final var portSpinnerEditor = new JSpinner.NumberEditor(portSpinner, "#");
((DefaultFormatter) portSpinnerEditor.getTextField().getFormatter()).setCommitsOnValidEdit(true);
portSpinner.setEditor(portSpinnerEditor);
@@ -1687,7 +1703,7 @@ public void windowOpened(final WindowEvent e) {
timeoutPanel.add(timeoutLabel);
final var timeoutSpinner = new JSpinner(new SpinnerNumberModel(
- preferences.getInt(PREFERENCES_TIMEOUT, ServerOutput.DEFAULT_TIMEOUT), 10, 60000, 1));
+ preferences.getInt(PREFERENCES_TIMEOUT, ServerRunMode.DEFAULT_TIMEOUT), 10, 60000, 1));
final var timeoutSpinnerEditor = new JSpinner.NumberEditor(timeoutSpinner,
"# " + strings.getString("MILLISECOND_SYMBOL"));
((DefaultFormatter) timeoutSpinnerEditor.getTextField().getFormatter()).setCommitsOnValidEdit(true);
@@ -1765,17 +1781,26 @@ public void windowOpened(final WindowEvent e) {
if (!glfwInitialized) {
log.log(Level.SEVERE, "Could not initialize GLFW");
- if (isWindows)
- GuiUtils.showMessageDialog(frame,
- strings.getString("COULD_NOT_INITIALIZE_GLFW.GLFW_DIALOG_TEXT_WINDOWS"),
+ if (isWindows || isLinux)
+ GuiUtils.showMessageDialog(frame, strings.getString("COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT"),
strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
else {
- GuiUtils.showMessageDialog(frame, strings.getString("COULD_NOT_INITIALIZE_GLFW.GLFW_DIALOG_TEXT"),
+ GuiUtils.showMessageDialog(frame, strings.getString("COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT_MAC"),
strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
quit();
}
}
+ if (isLinux)
+ X11.INSTANCE.XSetErrorHandler((display, errorEvent) -> {
+ final var buffer = new byte[1024];
+ X11.INSTANCE.XGetErrorText(display, errorEvent.error_code, buffer, buffer.length);
+
+ log.log(Level.WARNING, "X error: " + new String(buffer, StandardCharsets.UTF_8).trim());
+
+ return 0;
+ });
+
var mappingsUpdated = updateGameControllerMappings(
ClassLoader.getSystemResourceAsStream(Main.GAME_CONTROLLER_DATABASE_FILENAME));
log.log(mappingsUpdated ? Level.INFO : Level.WARNING,
@@ -1832,11 +1857,11 @@ public void windowOpened(final WindowEvent e) {
final var noControllerConnected = glfwInitialized && presentControllers.isEmpty();
if (noControllerConnected)
- if (isWindows)
- GuiUtils.showMessageDialog(frame, strings.getString("NO_CONTROLLER_CONNECTED_DIALOG_TEXT_WINDOWS"),
+ if (isWindows || isLinux)
+ GuiUtils.showMessageDialog(frame, strings.getString("NO_CONTROLLER_CONNECTED_DIALOG_TEXT"),
strings.getString("INFORMATION_DIALOG_TITLE"), JOptionPane.INFORMATION_MESSAGE);
else
- GuiUtils.showMessageDialog(frame, strings.getString("NO_CONTROLLER_CONNECTED_DIALOG_TEXT"),
+ GuiUtils.showMessageDialog(frame, strings.getString("NO_CONTROLLER_CONNECTED_DIALOG_TEXT_MAC"),
strings.getString("INFORMATION_DIALOG_TITLE"), JOptionPane.INFORMATION_MESSAGE);
final var profilePath = cmdProfilePath != null ? cmdProfilePath
@@ -2083,9 +2108,9 @@ private void handleRemainingCommandLine(final CommandLine commandLine) {
final var autostartOptionValue = commandLine.getOptionValue(OPTION_AUTOSTART);
if (autostartOptionValue != null)
- if (isWindows && OPTION_AUTOSTART_VALUE_LOCAL.equals(autostartOptionValue))
+ if ((isWindows || isLinux) && OPTION_AUTOSTART_VALUE_LOCAL.equals(autostartOptionValue))
startLocal();
- else if (isWindows && OPTION_AUTOSTART_VALUE_CLIENT.equals(autostartOptionValue))
+ else if ((isWindows || isLinux) && OPTION_AUTOSTART_VALUE_CLIENT.equals(autostartOptionValue))
startClient();
else if (OPTION_AUTOSTART_VALUE_SERVER.equals(autostartOptionValue))
startServer();
@@ -2095,7 +2120,7 @@ else if (OPTION_AUTOSTART_VALUE_SERVER.equals(autostartOptionValue))
strings.getString("INVALID_VALUE_FOR_COMMAND_LINE_OPTION_AUTOSTART_DIALOG_TEXT"),
OPTION_AUTOSTART, autostartOptionValue,
MessageFormat.format(
- isWindows ? strings.getString("LOCAL_FEEDER_OR_CLIENT_OR_SERVER")
+ isWindows || isLinux ? strings.getString("LOCAL_FEEDER_OR_CLIENT_OR_SERVER")
: strings.getString("SERVER"),
strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE)));
@@ -2134,7 +2159,8 @@ private void initOverlay() {
overlayFrame.setType(JFrame.Type.UTILITY);
overlayFrame.setLayout(new BorderLayout());
overlayFrame.setFocusableWindowState(false);
- overlayFrame.setBackground(TRANSPARENT);
+ if (isWindows)
+ overlayFrame.setBackground(TRANSPARENT);
overlayFrame.setAlwaysOnTop(true);
overlayFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
@@ -2151,7 +2177,8 @@ private void initOverlay() {
indicatorPanelFlowLayout = new FlowLayout();
indicatorPanel = new JPanel(indicatorPanelFlowLayout);
- indicatorPanel.setBackground(TRANSPARENT);
+ if (isWindows)
+ indicatorPanel.setBackground(TRANSPARENT);
EnumSet.allOf(Input.VirtualAxis.class).forEach(virtualAxis -> {
final var overlayAxis = virtualAxisToOverlayAxisMap.get(virtualAxis);
@@ -2173,7 +2200,6 @@ private void initOverlay() {
overlayAxis);
indicatorProgressBar.setPreferredSize(new Dimension(20, 150));
indicatorProgressBar.setForeground(overlayAxis.color);
- indicatorProgressBar.setValue(1);
indicatorPanel.add(indicatorProgressBar);
virtualAxisToProgressBarMap.put(virtualAxis, indicatorProgressBar);
@@ -2211,7 +2237,7 @@ public void mouseDragged(final MouseEvent e) {
private void initVrOverlay() {
final var profile = input.getProfile();
- if (!isWindows || !Toolkit.getDefaultToolkit().isAlwaysOnTopSupported() || !profile.isShowOverlay()
+ if (!isOpenVrSupported || !Toolkit.getDefaultToolkit().isAlwaysOnTopSupported() || !profile.isShowOverlay()
|| !profile.isShowVrOverlay())
return;
@@ -2223,11 +2249,11 @@ private void initVrOverlay() {
}
private boolean isClientRunning() {
- return taskRunner.isTaskOfTypeRunning(ClientOutput.class);
+ return taskRunner.isTaskOfTypeRunning(ClientRunMode.class);
}
public boolean isLocalRunning() {
- return taskRunner.isTaskOfTypeRunning(LocalOutput.class);
+ return taskRunner.isTaskOfTypeRunning(LocalRunMode.class);
}
public boolean isOpenVrOverlayActive() {
@@ -2239,7 +2265,7 @@ private boolean isRunning() {
}
public boolean isServerRunning() {
- return taskRunner.isTaskOfTypeRunning(ServerOutput.class);
+ return taskRunner.isTaskOfTypeRunning(ServerRunMode.class);
}
boolean isShutdownHookTriggered() {
@@ -2411,7 +2437,7 @@ private void onControllersChanged(final List presentControllers,
if (runMenuVisible) {
runPopupMenu = new PopupMenu(strings.getString("RUN_MENU"));
- if (isWindows) {
+ if (isWindows || isLinux) {
if (controllerConnected) {
startLocalMenuItem = new MenuItem((String) startLocalAction.getValue(Action.NAME));
startLocalMenuItem.addActionListener(startLocalAction);
@@ -2488,7 +2514,7 @@ else if (selectedController == null) {
if (startLocalMenuItem != null)
runPopupMenu.insert(startLocalMenuItem, 0);
if (startServerMenuItem != null)
- runPopupMenu.insert(startServerMenuItem, isWindows ? 2 : 0);
+ runPopupMenu.insert(startServerMenuItem, isWindows || isLinux ? 2 : 0);
}
modesPanel = new JPanel(new BorderLayout());
@@ -2581,7 +2607,7 @@ else if (previousSelectedTabIndex < tabbedPane.getTabCount())
frame.getContentPane().repaint();
}
- private void onOutputChanged() {
+ private void onRunModeChanged() {
final var running = isRunning();
if (startLocalJMenuItem != null)
@@ -2662,7 +2688,7 @@ private void repaintOverlay() {
}
public void restartLast() {
- switch (lastOutputType) {
+ switch (lastRunModeType) {
case LOCAL -> startLocal();
case CLIENT -> startClient();
case SERVER -> startServer();
@@ -2801,34 +2827,34 @@ private void startClient() {
if (isRunning())
return;
- lastOutputType = OutputType.CLIENT;
- final var clientThread = new ClientOutput(Main.this, input);
- clientThread
- .setvJoyDevice(new UINT(preferences.getInt(PREFERENCES_VJOY_DEVICE, VJoyOutput.DEFAULT_VJOY_DEVICE)));
+ lastRunModeType = RunModeType.CLIENT;
+ final var clientThread = new ClientRunMode(Main.this, input);
+ clientThread.setvJoyDevice(
+ new UINT(preferences.getInt(PREFERENCES_VJOY_DEVICE, OutputRunMode.VJOY_DEFAULT_DEVICE)));
clientThread.setHost(hostTextField.getText());
- clientThread.setPort(preferences.getInt(PREFERENCES_PORT, ServerOutput.DEFAULT_PORT));
- clientThread.setTimeout(preferences.getInt(PREFERENCES_TIMEOUT, ServerOutput.DEFAULT_TIMEOUT));
+ clientThread.setPort(preferences.getInt(PREFERENCES_PORT, ServerRunMode.DEFAULT_PORT));
+ clientThread.setTimeout(preferences.getInt(PREFERENCES_TIMEOUT, ServerRunMode.DEFAULT_TIMEOUT));
- output = clientThread;
+ runMode = clientThread;
taskRunner.run(clientThread);
- onOutputChanged();
+ onRunModeChanged();
}
private void startLocal() {
if (selectedController == null || isRunning())
return;
- lastOutputType = OutputType.LOCAL;
- final var localThread = new LocalOutput(Main.this, input);
- localThread
- .setvJoyDevice(new UINT(preferences.getInt(PREFERENCES_VJOY_DEVICE, VJoyOutput.DEFAULT_VJOY_DEVICE)));
- localThread.setPollInterval(preferences.getInt(PREFERENCES_POLL_INTERVAL, Output.DEFAULT_POLL_INTERVAL));
+ lastRunModeType = RunModeType.LOCAL;
+ final var localThread = new LocalRunMode(Main.this, input);
+ localThread.setvJoyDevice(
+ new UINT(preferences.getInt(PREFERENCES_VJOY_DEVICE, OutputRunMode.VJOY_DEFAULT_DEVICE)));
+ localThread.setPollInterval(preferences.getInt(PREFERENCES_POLL_INTERVAL, RunMode.DEFAULT_POLL_INTERVAL));
- output = localThread;
+ runMode = localThread;
taskRunner.run(localThread);
- onOutputChanged();
+ onRunModeChanged();
initOverlay();
initVrOverlay();
@@ -2877,34 +2903,34 @@ private void startServer() {
if (selectedController == null || isRunning())
return;
- lastOutputType = OutputType.SERVER;
- final var serverThread = new ServerOutput(Main.this, input);
- serverThread.setPort(preferences.getInt(PREFERENCES_PORT, ServerOutput.DEFAULT_PORT));
- serverThread.setTimeout(preferences.getInt(PREFERENCES_TIMEOUT, ServerOutput.DEFAULT_TIMEOUT));
- serverThread.setPollInterval(preferences.getInt(PREFERENCES_POLL_INTERVAL, Output.DEFAULT_POLL_INTERVAL));
+ lastRunModeType = RunModeType.SERVER;
+ final var serverThread = new ServerRunMode(Main.this, input);
+ serverThread.setPort(preferences.getInt(PREFERENCES_PORT, ServerRunMode.DEFAULT_PORT));
+ serverThread.setTimeout(preferences.getInt(PREFERENCES_TIMEOUT, ServerRunMode.DEFAULT_TIMEOUT));
+ serverThread.setPollInterval(preferences.getInt(PREFERENCES_POLL_INTERVAL, RunMode.DEFAULT_POLL_INTERVAL));
- output = serverThread;
+ runMode = serverThread;
taskRunner.run(serverThread);
- onOutputChanged();
+ onRunModeChanged();
initOverlay();
startOverlayTimerTask();
}
- public void stopAll(final boolean initiateStop, final boolean resetLastOutputType,
+ public void stopAll(final boolean initiateStop, final boolean resetLastRunModeType,
final boolean performGarbageCollection) {
- if (isWindows) {
- stopLocal(initiateStop, resetLastOutputType);
- stopClient(initiateStop, resetLastOutputType);
+ if (isWindows || isLinux) {
+ stopLocal(initiateStop, resetLastRunModeType);
+ stopClient(initiateStop, resetLastRunModeType);
}
- stopServer(initiateStop, resetLastOutputType);
+ stopServer(initiateStop, resetLastRunModeType);
if (performGarbageCollection)
System.gc();
}
- private void stopClient(final boolean initiateStop, final boolean resetLastOutputType) {
+ private void stopClient(final boolean initiateStop, final boolean resetLastRunModeType) {
final var running = isClientRunning();
if (initiateStop && running)
@@ -2913,15 +2939,15 @@ private void stopClient(final boolean initiateStop, final boolean resetLastOutpu
if (running)
taskRunner.waitForTask();
- if (resetLastOutputType)
- lastOutputType = OutputType.NONE;
+ if (resetLastRunModeType)
+ lastRunModeType = RunModeType.NONE;
GuiUtils.invokeOnEventDispatchThreadIfRequired(() -> {
- onOutputChanged();
+ onRunModeChanged();
});
}
- private void stopLocal(final boolean initiateStop, final boolean resetLastOutputType) {
+ private void stopLocal(final boolean initiateStop, final boolean resetLastRunModeType) {
final var running = isLocalRunning();
if (initiateStop && running)
@@ -2930,13 +2956,13 @@ private void stopLocal(final boolean initiateStop, final boolean resetLastOutput
if (running)
taskRunner.waitForTask();
- if (resetLastOutputType)
- lastOutputType = OutputType.NONE;
+ if (resetLastRunModeType)
+ lastRunModeType = RunModeType.NONE;
GuiUtils.invokeOnEventDispatchThreadIfRequired(() -> {
stopOverlayTimerTask();
deInitOverlayAndHideOnScreenKeyboard();
- onOutputChanged();
+ onRunModeChanged();
});
}
@@ -2945,22 +2971,22 @@ private void stopOverlayTimerTask() {
overlayTimerTask.cancel();
}
- private void stopServer(final boolean initiateStop, final boolean resetLastOutputType) {
- final var running = output instanceof ServerOutput;
+ private void stopServer(final boolean initiateStop, final boolean resetLastRunModeType) {
+ final var running = runMode instanceof ServerRunMode;
if (initiateStop && running)
- ((ServerOutput) output).close();
+ ((ServerRunMode) runMode).close();
if (running)
taskRunner.waitForTask();
- if (resetLastOutputType)
- lastOutputType = OutputType.NONE;
+ if (resetLastRunModeType)
+ lastRunModeType = RunModeType.NONE;
GuiUtils.invokeOnEventDispatchThreadIfRequired(() -> {
stopOverlayTimerTask();
deInitOverlayAndHideOnScreenKeyboard();
- onOutputChanged();
+ onRunModeChanged();
});
}
@@ -3143,32 +3169,29 @@ private void updateOverlayAlignment(final Rectangle totalDisplayBounds) {
indicatorPanelFlowLayout.setAlignment(flowLayoutAlignment);
indicatorPanel.invalidate();
- overlayFrame.setBackground(TRANSPARENT);
+ if (isWindows)
+ overlayFrame.setBackground(TRANSPARENT);
overlayFrame.pack();
}
public void updateOverlayAxisIndicators() {
- if (output == null || !isLocalRunning() && !isServerRunning())
+ if (runMode == null || !isLocalRunning() && !isServerRunning())
return;
EnumSet.allOf(Input.VirtualAxis.class).stream()
.filter(virtualAxis -> virtualAxisToProgressBarMap.containsKey(virtualAxis)).forEach(virtualAxis -> {
final var progressBar = virtualAxisToProgressBarMap.get(virtualAxis);
var changed = false;
+ final var minimum = isLinux ? runMode.getMinAxisValue() : -runMode.getMaxAxisValue();
+ final var maximum = isLinux ? runMode.getMaxAxisValue() : runMode.getMinAxisValue();
- final var newMinimum = -output.getMaxAxisValue();
- if (progressBar.getMinimum() != newMinimum) {
- progressBar.setMinimum(newMinimum);
- changed = true;
- }
-
- final var newMaximum = output.getMinAxisValue();
+ final var newMaximum = maximum - minimum;
if (progressBar.getMaximum() != newMaximum) {
progressBar.setMaximum(newMaximum);
changed = true;
}
- final var newValue = -input.getAxes().get(virtualAxis);
+ final var newValue = -input.getAxes().get(virtualAxis) - minimum - 1;
if (progressBar.getValue() != newValue) {
progressBar.setValue(newValue);
changed = true;
@@ -3312,7 +3335,7 @@ private void updateProfileSettingsPanel() {
});
overlaySettingsPanel.add(showOverlayCheckBox);
- if (isWindows) {
+ if (isOpenVrSupported) {
final var vrOverlaySettingsPanel = new JPanel(DEFAULT_FLOW_LAYOUT);
profileSettingsPanel.add(vrOverlaySettingsPanel, settingsPanelGridBagConstraints);
@@ -3399,6 +3422,19 @@ public void updateTitleAndTooltip() {
}
frame.setTitle(title);
+ if (Main.isLinux) {
+ final var toolkit = Toolkit.getDefaultToolkit();
+ final var xtoolkit = toolkit.getClass();
+ if ("sun.awt.X11.XToolkit".equals(xtoolkit.getName()))
+ try {
+ final var awtAppClassName = xtoolkit.getDeclaredField("awtAppClassName");
+ awtAppClassName.setAccessible(true);
+ awtAppClassName.set(null, title);
+ } catch (final NoSuchFieldException | SecurityException | IllegalArgumentException
+ | IllegalAccessException e) {
+ log.log(Level.SEVERE, e.getMessage(), e);
+ }
+ }
if (trayIcon != null && input != null) {
final String toolTip;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java b/src/main/java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java
index bb642b81..5b51921f 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/OnScreenKeyboard.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
@@ -132,8 +131,10 @@ private DefaultKeyboardButton(final String directInputKeyCodeName) {
this.directInputKeyCodeName = directInputKeyCodeName;
- final Integer[] keyCodes;
- final Integer[] modifierCodes;
+ final ScanCode[] keyScanCodes;
+ final ScanCode[] modifierScanCodes;
+
+ final var scanCode = ScanCode.nameToScanCodeMap.get(directInputKeyCodeName);
if (ScanCode.DIK_LMENU.equals(directInputKeyCodeName) || ScanCode.DIK_RMENU.equals(directInputKeyCodeName)
|| ScanCode.DIK_LSHIFT.equals(directInputKeyCodeName)
@@ -142,14 +143,14 @@ private DefaultKeyboardButton(final String directInputKeyCodeName) {
|| ScanCode.DIK_RCONTROL.equals(directInputKeyCodeName)
|| ScanCode.DIK_LWIN.equals(directInputKeyCodeName)
|| ScanCode.DIK_RWIN.equals(directInputKeyCodeName)) {
- keyCodes = new Integer[0];
- modifierCodes = new Integer[] { ScanCode.nameToKeyCodeMap.get(directInputKeyCodeName) };
+ keyScanCodes = new ScanCode[0];
+ modifierScanCodes = new ScanCode[] { scanCode };
} else {
- keyCodes = new Integer[] { ScanCode.nameToKeyCodeMap.get(directInputKeyCodeName) };
- modifierCodes = new Integer[0];
+ keyScanCodes = new ScanCode[] { scanCode };
+ modifierScanCodes = new ScanCode[0];
}
- keyStroke = new KeyStroke(keyCodes, modifierCodes);
+ keyStroke = new KeyStroke(keyScanCodes, modifierScanCodes);
addMouseListener(new MouseListener() {
@@ -276,13 +277,13 @@ private final class LockKeyButton extends AbstractKeyboardButton {
private volatile boolean locked;
- private final int virtualKeyCode;
+ private final LockKey lockKey;
private boolean wasUp = true;
- private LockKeyButton(final int virtualKeyCode) {
- super(getShortLockKeyName(LockKey.virtualKeyCodeToLockKeyMap.get(virtualKeyCode).name()));
- this.virtualKeyCode = virtualKeyCode;
+ private LockKeyButton(final LockKey lockKey) {
+ super(getShortLockKeyName(lockKey.name()));
+ this.lockKey = lockKey;
addActionListener(arg0 -> {
toggleLock();
@@ -293,7 +294,7 @@ private LockKeyButton(final int virtualKeyCode) {
public Dimension getPreferredSize() {
final var preferredSize = super.getPreferredSize();
- if (virtualKeyCode == KeyEvent.VK_CAPS_LOCK)
+ if (lockKey.virtualKeyCode() == KeyEvent.VK_CAPS_LOCK)
preferredSize.width *= 2;
return preferredSize;
@@ -303,9 +304,9 @@ public Dimension getPreferredSize() {
boolean poll(final Input input) {
if (changed) {
if (locked)
- input.getOnLockKeys().add(virtualKeyCode);
+ input.getOnLockKeys().add(lockKey);
else
- input.getOffLockKeys().add(virtualKeyCode);
+ input.getOffLockKeys().add(lockKey);
changed = false;
}
@@ -394,7 +395,7 @@ private static String getShortLockKeyName(final String lockKeyName) {
new DefaultKeyboardButton(ScanCode.DIK_F8), new DefaultKeyboardButton(ScanCode.DIK_F9),
new DefaultKeyboardButton(ScanCode.DIK_F10), new DefaultKeyboardButton(ScanCode.DIK_F11),
new DefaultKeyboardButton(ScanCode.DIK_F12), new DefaultKeyboardButton(ScanCode.DIK_SYSRQ),
- new LockKeyButton(KeyEvent.VK_SCROLL_LOCK), new DefaultKeyboardButton(ScanCode.DIK_PAUSE),
+ new LockKeyButton(LockKey.ScrollLockLockKey), new DefaultKeyboardButton(ScanCode.DIK_PAUSE),
new DefaultKeyboardButton(ScanCode.DIK_INSERT), new DefaultKeyboardButton(ScanCode.DIK_DELETE),
new DefaultKeyboardButton(ScanCode.DIK_HOME), new DefaultKeyboardButton(ScanCode.DIK_END) },
{ new DefaultKeyboardButton(ScanCode.DIK_GRAVE), new DefaultKeyboardButton(ScanCode.DIK_1),
@@ -404,7 +405,7 @@ private static String getShortLockKeyName(final String lockKeyName) {
new DefaultKeyboardButton(ScanCode.DIK_8), new DefaultKeyboardButton(ScanCode.DIK_9),
new DefaultKeyboardButton(ScanCode.DIK_0), new DefaultKeyboardButton(ScanCode.DIK_MINUS),
new DefaultKeyboardButton(ScanCode.DIK_EQUALS), new DefaultKeyboardButton(ScanCode.DIK_BACK),
- new LockKeyButton(KeyEvent.VK_NUM_LOCK), new DefaultKeyboardButton(ScanCode.DIK_DIVIDE),
+ new LockKeyButton(LockKey.NumLockLockKey), new DefaultKeyboardButton(ScanCode.DIK_DIVIDE),
new DefaultKeyboardButton(ScanCode.DIK_MULTIPLY),
new DefaultKeyboardButton(ScanCode.DIK_SUBTRACT) },
{ new DefaultKeyboardButton(ScanCode.DIK_TAB), new DefaultKeyboardButton(ScanCode.DIK_Q),
@@ -416,7 +417,7 @@ private static String getShortLockKeyName(final String lockKeyName) {
new DefaultKeyboardButton(ScanCode.DIK_RBRACKET), new DefaultKeyboardButton(ScanCode.DIK_BACKSLASH),
new DefaultKeyboardButton(ScanCode.DIK_NUMPAD7), new DefaultKeyboardButton(ScanCode.DIK_NUMPAD8),
new DefaultKeyboardButton(ScanCode.DIK_NUMPAD9), new DefaultKeyboardButton(ScanCode.DIK_ADD) },
- { new LockKeyButton(KeyEvent.VK_CAPS_LOCK), new DefaultKeyboardButton(ScanCode.DIK_A),
+ { new LockKeyButton(LockKey.CapsLockLockKey), new DefaultKeyboardButton(ScanCode.DIK_A),
new DefaultKeyboardButton(ScanCode.DIK_S), new DefaultKeyboardButton(ScanCode.DIK_D),
new DefaultKeyboardButton(ScanCode.DIK_F), new DefaultKeyboardButton(ScanCode.DIK_G),
new DefaultKeyboardButton(ScanCode.DIK_H), new DefaultKeyboardButton(ScanCode.DIK_J),
@@ -436,10 +437,9 @@ private static String getShortLockKeyName(final String lockKeyName) {
{ new DefaultKeyboardButton(ScanCode.DIK_LCONTROL), new DefaultKeyboardButton(ScanCode.DIK_LWIN),
new DefaultKeyboardButton(ScanCode.DIK_LMENU), new DefaultKeyboardButton(ScanCode.DIK_SPACE),
new DefaultKeyboardButton(ScanCode.DIK_RMENU), new DefaultKeyboardButton(ScanCode.DIK_RWIN),
- new DefaultKeyboardButton(ScanCode.DIK_APPS), new DefaultKeyboardButton(ScanCode.DIK_RCONTROL),
- new DefaultKeyboardButton(ScanCode.DIK_UP), new DefaultKeyboardButton(ScanCode.DIK_DOWN),
- new DefaultKeyboardButton(ScanCode.DIK_LEFT), new DefaultKeyboardButton(ScanCode.DIK_RIGHT),
- new DefaultKeyboardButton(ScanCode.DIK_NUMPAD0),
+ new DefaultKeyboardButton(ScanCode.DIK_RCONTROL), new DefaultKeyboardButton(ScanCode.DIK_UP),
+ new DefaultKeyboardButton(ScanCode.DIK_DOWN), new DefaultKeyboardButton(ScanCode.DIK_LEFT),
+ new DefaultKeyboardButton(ScanCode.DIK_RIGHT), new DefaultKeyboardButton(ScanCode.DIK_NUMPAD0),
new DefaultKeyboardButton(ScanCode.DIK_NUMPADCOMMA),
new DefaultKeyboardButton(ScanCode.DIK_NUMPADENTER) } };
@@ -458,7 +458,8 @@ private static String getShortLockKeyName(final String lockKeyName) {
setTitle(OnScreenKeyboard.class.getSimpleName());
setType(JFrame.Type.UTILITY);
setFocusableWindowState(false);
- setBackground(Main.TRANSPARENT);
+ if (Main.isWindows)
+ setBackground(Main.TRANSPARENT);
setAlwaysOnTop(true);
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/OpenVrOverlay.java b/src/main/java/de/bwravencl/controllerbuddy/gui/OpenVrOverlay.java
index 0e194556..9f4a5125 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/gui/OpenVrOverlay.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/gui/OpenVrOverlay.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/Input.java b/src/main/java/de/bwravencl/controllerbuddy/input/Input.java
index 099b7686..eb0f3ec7 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/Input.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/Input.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
@@ -44,7 +43,7 @@
import de.bwravencl.controllerbuddy.input.action.IInitializationAction;
import de.bwravencl.controllerbuddy.input.action.IResetableAction;
import de.bwravencl.controllerbuddy.input.sony.SonyExtension;
-import de.bwravencl.controllerbuddy.output.Output;
+import de.bwravencl.controllerbuddy.runmode.RunMode;
public final class Input {
@@ -127,17 +126,17 @@ public static float normalize(final float value, final float inMin, final float
private final ControllerInfo controller;
private final EnumMap axes;
private Profile profile;
- private Output output;
+ private RunMode runMode;
private boolean[] buttons;
- private volatile int cursorDeltaX = 5;
- private volatile int cursorDeltaY = 5;
+ private volatile int cursorDeltaX;
+ private volatile int cursorDeltaY;
private volatile int scrollClicks;
private final Set downMouseButtons = ConcurrentHashMap.newKeySet();
private final Set downUpMouseButtons = new HashSet<>();
private final Set downKeyStrokes = new HashSet<>();
private final Set downUpKeyStrokes = new HashSet<>();
- private final Set onLockKeys = new HashSet<>();
- private final Set offLockKeys = new HashSet<>();
+ private final Set onLockKeys = new HashSet<>();
+ private final Set offLockKeys = new HashSet<>();
private boolean clearOnNextPoll;
private boolean repeatModeActionWalk;
private final Map virtualAxisToTargetValueMap = new HashMap<>();
@@ -180,8 +179,8 @@ public int floatToIntAxisValue(float value) {
value = Math.max(value, -1f);
value = Math.min(value, 1f);
- final var minAxisValue = output.getMinAxisValue();
- final var maxAxisValue = output.getMaxAxisValue();
+ final var minAxisValue = runMode.getMinAxisValue();
+ final var maxAxisValue = runMode.getMaxAxisValue();
return (int) normalize(value, -1f, 1f, minAxisValue, maxAxisValue);
}
@@ -226,18 +225,14 @@ public Main getMain() {
return main;
}
- public Set getOffLockKeys() {
+ public Set getOffLockKeys() {
return offLockKeys;
}
- public Set getOnLockKeys() {
+ public Set getOnLockKeys() {
return onLockKeys;
}
- public Output getOutput() {
- return output;
- }
-
public float getPlanckLength() {
return planckLength;
}
@@ -250,6 +245,10 @@ public float getRateMultiplier() {
return rateMultiplier;
}
+ public RunMode getRunMode() {
+ return runMode;
+ }
+
public int getScrollClicks() {
return scrollClicks;
}
@@ -259,7 +258,8 @@ public SonyExtension getSonyExtension() {
}
public void init() {
- sonyExtension = SonyExtension.getIfAvailable(this, controller);
+ if (controller != null)
+ sonyExtension = SonyExtension.getIfAvailable(this, controller);
final var presentControllers = Main.getPresentControllers();
@@ -281,7 +281,7 @@ public void init() {
}
}
- planckLength = 2f / (output.getMaxAxisValue() - output.getMinAxisValue());
+ planckLength = 2f / (runMode.getMaxAxisValue() - runMode.getMinAxisValue());
profile.getModes().forEach(mode -> mode.getAllActions().forEach(action -> {
if (action instanceof final IInitializationAction> initializationAction)
@@ -321,7 +321,7 @@ public boolean poll() {
axisToEndSuspensionTimestampMapIterator.remove();
}
- var elapsedTime = output.getPollInterval();
+ var elapsedTime = runMode.getPollInterval();
if (lastPollTime > 0L)
elapsedTime = currentTime - lastPollTime;
lastPollTime = currentTime;
@@ -399,7 +399,7 @@ else if (hotSwappingButtonDownJids.contains(controller.jid())) {
final var currentValue = axes.get(virtualAxis);
final var delta = targetValue - currentValue;
if (delta != 0) {
- final var axisRange = output.getMaxAxisValue() - output.getMinAxisValue();
+ final var axisRange = runMode.getMaxAxisValue() - runMode.getMinAxisValue();
final var deltaFactor = normalize(Math.abs(delta), 0, axisRange, AXIS_MOVEMENT_MIN_DELTA_FACTOR,
AXIS_MOVEMENT_MAX_DELTA_FACTOR);
@@ -546,8 +546,8 @@ public void setAxis(final VirtualAxis virtualAxis, final float value, final bool
private void setAxis(final VirtualAxis virtualAxis, int value, final boolean hapticFeedback,
final Integer dententValue) {
- final var minAxisValue = output.getMinAxisValue();
- final var maxAxisValue = output.getMaxAxisValue();
+ final var minAxisValue = runMode.getMinAxisValue();
+ final var maxAxisValue = runMode.getMaxAxisValue();
value = Math.max(value, minAxisValue);
value = Math.min(value, maxAxisValue);
@@ -578,11 +578,7 @@ public void setCursorDeltaY(final int cursorDeltaY) {
}
public void setnButtons(final int nButtons) {
- buttons = new boolean[Math.min(output.getnButtons(), MAX_N_BUTTONS)];
- }
-
- public void setOutput(final Output output) {
- this.output = output;
+ buttons = new boolean[Math.min(runMode.getnButtons(), MAX_N_BUTTONS)];
}
public boolean setProfile(final Profile profile) {
@@ -652,6 +648,10 @@ public boolean setProfile(final Profile profile) {
return true;
}
+ public void setRunMode(final RunMode runMode) {
+ this.runMode = runMode;
+ }
+
public void setScrollClicks(final int scrollClicks) {
this.scrollClicks = scrollClicks;
}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/KeyStroke.java b/src/main/java/de/bwravencl/controllerbuddy/input/KeyStroke.java
index da00401d..7a35133f 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/KeyStroke.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/KeyStroke.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,29 +10,29 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Objects;
import java.util.stream.Collectors;
import de.bwravencl.controllerbuddy.gui.Main;
public final class KeyStroke implements Cloneable {
- private Integer[] keyCodes;
- private Integer[] modifierCodes;
+ private ScanCode[] keyCodes;
+ private ScanCode[] modifierCodes;
public KeyStroke() {
- this(new Integer[0], new Integer[0]);
+ this(new ScanCode[0], new ScanCode[0]);
}
- public KeyStroke(final Integer[] keyCodes, final Integer[] modifierCodes) {
+ public KeyStroke(final ScanCode[] keyCodes, final ScanCode[] modifierCodes) {
this.keyCodes = keyCodes;
this.modifierCodes = modifierCodes;
}
@@ -41,32 +41,47 @@ public KeyStroke(final Integer[] keyCodes, final Integer[] modifierCodes) {
public Object clone() throws CloneNotSupportedException {
final var keyStroke = (KeyStroke) super.clone();
- final var clonedKeyCodes = new Integer[keyCodes.length];
+ final var clonedKeyCodes = new ScanCode[keyCodes.length];
for (var i = 0; i < keyCodes.length; i++)
clonedKeyCodes[i] = keyCodes[i];
- keyStroke.setKeyCodes(clonedKeyCodes);
+ keyStroke.keyCodes = clonedKeyCodes;
- final var clonedModifierCodes = new Integer[modifierCodes.length];
+ final var clonedModifierCodes = new ScanCode[modifierCodes.length];
for (var i = 0; i < modifierCodes.length; i++)
clonedModifierCodes[i] = modifierCodes[i];
- keyStroke.setModifierCodes(clonedModifierCodes);
+ keyStroke.modifierCodes = clonedModifierCodes;
return keyStroke;
}
- public Integer[] getKeyCodes() {
+ @Override
+ public boolean equals(final Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null || getClass() != obj.getClass())
+ return false;
+ final var other = (KeyStroke) obj;
+ return Arrays.equals(keyCodes, other.keyCodes) && Arrays.equals(modifierCodes, other.modifierCodes);
+ }
+
+ public ScanCode[] getKeyCodes() {
return keyCodes;
}
- public Integer[] getModifierCodes() {
+ public ScanCode[] getModifierCodes() {
return modifierCodes;
}
- public void setKeyCodes(final Integer[] keyCodes) {
+ @Override
+ public int hashCode() {
+ return Objects.hash(Arrays.hashCode(keyCodes), Arrays.hashCode(modifierCodes));
+ }
+
+ public void setKeyCodes(final ScanCode[] keyCodes) {
this.keyCodes = keyCodes;
}
- public void setModifierCodes(final Integer[] modifierCodes) {
+ public void setModifierCodes(final ScanCode[] modifierCodes) {
this.modifierCodes = modifierCodes;
}
@@ -77,7 +92,6 @@ public String toString() {
if (collectedKeyCodes.isEmpty())
return Main.strings.getString("NOTHING");
- return collectedKeyCodes.stream().map(keyCode -> ScanCode.keyCodeToNameMap.get(keyCode))
- .collect(Collectors.joining(" + "));
+ return collectedKeyCodes.stream().map(ScanCode::name).collect(Collectors.joining(" + "));
}
}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/LockKey.java b/src/main/java/de/bwravencl/controllerbuddy/input/LockKey.java
index 2d7db656..07bc3d9e 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/LockKey.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/LockKey.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
@@ -22,31 +21,40 @@
import java.util.HashMap;
import java.util.Map;
-public record LockKey(String name, int virtualKeyCode) {
+import com.sun.jna.platform.unix.X11;
+import com.sun.jna.platform.unix.X11.KeySym;
+
+import de.bwravencl.controllerbuddy.runmode.X11WithLockKeyFunctions;
+
+public record LockKey(String name, int virtualKeyCode, int mask, KeySym keySym) {
public static final String LOCK_SUFFIX = " Lock";
public static final String CAPS_LOCK = "Caps" + LOCK_SUFFIX;
private static final String NUM_LOCK = "Num" + LOCK_SUFFIX;
private static final String SCROLL_LOCK = "Scroll" + LOCK_SUFFIX;
- private static final String KANA_LOCK = "Kana" + LOCK_SUFFIX;
- public static final LockKey[] LOCK_KEYS = { new LockKey(CAPS_LOCK, KeyEvent.VK_CAPS_LOCK),
- new LockKey(NUM_LOCK, KeyEvent.VK_NUM_LOCK), new LockKey(SCROLL_LOCK, KeyEvent.VK_SCROLL_LOCK),
- new LockKey(KANA_LOCK, KeyEvent.VK_KANA_LOCK) };
+ public static final LockKey CapsLockLockKey = new LockKey(CAPS_LOCK, KeyEvent.VK_CAPS_LOCK,
+ X11WithLockKeyFunctions.STATE_CAPS_LOCK_MASK, new KeySym(X11.XK_CapsLock));
+ public static final LockKey NumLockLockKey = new LockKey(NUM_LOCK, KeyEvent.VK_NUM_LOCK,
+ X11WithLockKeyFunctions.STATE_NUM_LOCK_MASK, new KeySym(X11WithLockKeyFunctions.XK_NumLock));
+ public static final LockKey ScrollLockLockKey = new LockKey(SCROLL_LOCK, KeyEvent.VK_SCROLL_LOCK,
+ X11WithLockKeyFunctions.STATE_SCROLL_LOCK_MASK, new KeySym(X11WithLockKeyFunctions.XK_ScrollLock));
+
+ public static final LockKey[] LOCK_KEYS = { CapsLockLockKey, NumLockLockKey, ScrollLockLockKey };
- public static final Map lockKeyToVirtualKeyCodeMap;
+ public static final Map nameToLockKeyMap;
public static final Map virtualKeyCodeToLockKeyMap;
static {
- final var modifiableLockKeyToVirtualKeyCodeMap = new HashMap();
+ final var modifiableNameToLockKeyMap = new HashMap();
final var modifiableVirtualKeyCodeToLockKeyMap = new HashMap();
for (final var lockKey : LOCK_KEYS) {
- modifiableLockKeyToVirtualKeyCodeMap.put(lockKey, lockKey.virtualKeyCode);
+ modifiableNameToLockKeyMap.put(lockKey.name, lockKey);
modifiableVirtualKeyCodeToLockKeyMap.put(lockKey.virtualKeyCode, lockKey);
}
- lockKeyToVirtualKeyCodeMap = Collections.unmodifiableMap(modifiableLockKeyToVirtualKeyCodeMap);
+ nameToLockKeyMap = Collections.unmodifiableMap(modifiableNameToLockKeyMap);
virtualKeyCodeToLockKeyMap = Collections.unmodifiableMap(modifiableVirtualKeyCodeToLockKeyMap);
}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/Mode.java b/src/main/java/de/bwravencl/controllerbuddy/input/Mode.java
index 0cc8107b..21933d41 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/Mode.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/Mode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/OverlayAxis.java b/src/main/java/de/bwravencl/controllerbuddy/input/OverlayAxis.java
index 7d989288..48ba36a5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/OverlayAxis.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/OverlayAxis.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/Profile.java b/src/main/java/de/bwravencl/controllerbuddy/input/Profile.java
index ee7b9e39..b22ae71d 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/Profile.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/Profile.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
@@ -142,7 +141,7 @@ void setActiveMode(final Input input, final int index) {
final var newMode = modes.get(index);
- if (input.getOutput() != null)
+ if (input.getRunMode() != null)
newMode.getAxisToActionsMap().keySet().forEach(axis -> {
final var currentAxisToActionsMap = getActiveMode().getAxisToActionsMap();
if (currentAxisToActionsMap.containsKey(axis))
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/ScanCode.java b/src/main/java/de/bwravencl/controllerbuddy/input/ScanCode.java
index 7f821e5a..09f094bb 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/ScanCode.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/ScanCode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input;
@@ -25,7 +24,9 @@
import java.util.TreeMap;
import java.util.stream.Collectors;
-public record ScanCode(String name, int scanCode) {
+import uk.co.bithatch.linuxio.EventCode;
+
+public record ScanCode(String name, int keyCode, EventCode eventCode) {
public static final String DIK_0 = "0";
public static final String DIK_1 = "1";
@@ -38,22 +39,14 @@ public record ScanCode(String name, int scanCode) {
public static final String DIK_8 = "8";
public static final String DIK_9 = "9";
public static final String DIK_A = "A";
- private static final String DIK_ABNT_C1 = "bzAbnt_C1";
- private static final String DIK_ABNT_C2 = "bzAbnt_C2";
public static final String DIK_ADD = "Num+";
public static final String DIK_APOSTROPHE = "'";
- public static final String DIK_APPS = "App Menu";
- private static final String DIK_AT = "pc-98 @";
- private static final String DIK_AX = "jAX";
public static final String DIK_B = "B";
public static final String DIK_BACK = "Back";
public static final String DIK_BACKSLASH = "\\";
public static final String DIK_C = "C";
- private static final String DIK_CALCULATOR = "Calc";
private static final String DIK_CAPITAL = "CapsLock";
- private static final String DIK_COLON = "pc-98 :";
public static final String DIK_COMMA = ",";
- private static final String DIK_CONVERT = "jConvert";
public static final String DIK_D = "D";
private static final String DIK_DECIMAL = "Num.";
public static final String DIK_DELETE = "Del";
@@ -68,9 +61,6 @@ public record ScanCode(String name, int scanCode) {
public static final String DIK_F10 = "F10";
public static final String DIK_F11 = "F11";
public static final String DIK_F12 = "F12";
- private static final String DIK_F13 = "pc-98 F13";
- private static final String DIK_F14 = "pc-98 F14";
- private static final String DIK_F15 = "pc-98 F15";
public static final String DIK_F2 = "F2";
public static final String DIK_F3 = "F3";
public static final String DIK_F4 = "F4";
@@ -87,8 +77,6 @@ public record ScanCode(String name, int scanCode) {
public static final String DIK_INSERT = "Ins";
public static final String DIK_J = "J";
public static final String DIK_K = "K";
- private static final String DIK_KANA = "jKana";
- private static final String DIK_KANJI = "jKanji";
public static final String DIK_L = "L";
public static final String DIK_LBRACKET = "[";
public static final String DIK_LCONTROL = "L Ctrl";
@@ -97,17 +85,11 @@ public record ScanCode(String name, int scanCode) {
public static final String DIK_LSHIFT = "L Shift";
public static final String DIK_LWIN = "L Win";
public static final String DIK_M = "M";
- private static final String DIK_MAIL = "Mail";
- private static final String DIK_MEDIASELECT = "Media Select";
- private static final String DIK_MEDIASTOP = "Stop";
public static final String DIK_MINUS = "-";
public static final String DIK_MULTIPLY = "Num*";
- private static final String DIK_MUTE = "Mute";
- private static final String DIK_MYCOMPUTER = "My Computer";
public static final String DIK_N = "N";
public static final String DIK_NEXT = "PgDn";
private static final String DIK_NEXTTRACK = "Next";
- private static final String DIK_NOCONVERT = "jNoConvert";
private static final String DIK_NUMLOCK = "NumLock";
public static final String DIK_NUMPAD0 = "Num0";
public static final String DIK_NUMPAD1 = "Num1";
@@ -127,9 +109,6 @@ public record ScanCode(String name, int scanCode) {
public static final String DIK_P = "P";
public static final String DIK_PAUSE = "Pause";
public static final String DIK_PERIOD = ".";
- private static final String DIK_PLAYPAUSE = "Play/Pause";
- private static final String DIK_POWER = "Power";
- private static final String DIK_PREVTRACK = "Prev";
public static final String DIK_PRIOR = "PgUp";
public static final String DIK_Q = "Q";
public static final String DIK_R = "R";
@@ -144,99 +123,98 @@ public record ScanCode(String name, int scanCode) {
private static final String DIK_SCROLL = "ScrollLock";
public static final String DIK_SEMICOLON = ";";
public static final String DIK_SLASH = "/";
- private static final String DIK_SLEEP = "Sleep";
public static final String DIK_SPACE = "Space";
- private static final String DIK_STOP = "pc-98 Stop";
public static final String DIK_SUBTRACT = "Num-";
public static final String DIK_SYSRQ = "SysRq";
public static final String DIK_T = "T";
public static final String DIK_TAB = "Tab";
public static final String DIK_U = "U";
- private static final String DIK_UNDERLINE = "pc-98 _";
- private static final String DIK_UNLABELED = "J3100";
public static final String DIK_UP = "Up Arrow";
public static final String DIK_V = "V";
- private static final String DIK_VOLUMEDOWN = "Vol-";
- private static final String DIK_VOLUMEUP = "Vol+";
public static final String DIK_W = "W";
- private static final String DIK_WAKE = "Wake";
- private static final String DIK_WEBBACK = "webBack";
- private static final String DIK_WEBFAVORITES = "webFavs";
- private static final String DIK_WEBFORWARD = "webForward";
- private static final String DIK_WEBHOME = "webHome";
- private static final String DIK_WEBREFRESH = "webRefresh";
- private static final String DIK_WEBSEARCH = "webSearch";
- private static final String DIK_WEBSTOP = "webStop";
public static final String DIK_X = "X";
public static final String DIK_Y = "Y";
- private static final String DIK_YEN = "jYen";
public static final String DIK_Z = "Z";
- private static final ScanCode[] KEY_CODES = { new ScanCode(DIK_ESCAPE, 0x1), new ScanCode(DIK_1, 0x2),
- new ScanCode(DIK_2, 0x3), new ScanCode(DIK_3, 0x4), new ScanCode(DIK_4, 0x5), new ScanCode(DIK_5, 0x6),
- new ScanCode(DIK_6, 0x7), new ScanCode(DIK_7, 0x8), new ScanCode(DIK_8, 0x9), new ScanCode(DIK_9, 0xA),
- new ScanCode(DIK_0, 0xB), new ScanCode(DIK_MINUS, 0xC), new ScanCode(DIK_EQUALS, 0xD),
- new ScanCode(DIK_BACK, 0xE), new ScanCode(DIK_TAB, 0xF), new ScanCode(DIK_Q, 0x10),
- new ScanCode(DIK_W, 0x11), new ScanCode(DIK_E, 0x12), new ScanCode(DIK_R, 0x13), new ScanCode(DIK_T, 0x14),
- new ScanCode(DIK_Y, 0x15), new ScanCode(DIK_U, 0x16), new ScanCode(DIK_I, 0x17), new ScanCode(DIK_O, 0x18),
- new ScanCode(DIK_P, 0x19), new ScanCode(DIK_LBRACKET, 0x1A), new ScanCode(DIK_RBRACKET, 0x1B),
- new ScanCode(DIK_RETURN, 0x1C), new ScanCode(DIK_LCONTROL, 0x1D), new ScanCode(DIK_A, 0x1E),
- new ScanCode(DIK_S, 0x1F), new ScanCode(DIK_D, 0x20), new ScanCode(DIK_F, 0x21), new ScanCode(DIK_G, 0x22),
- new ScanCode(DIK_H, 0x23), new ScanCode(DIK_J, 0x24), new ScanCode(DIK_K, 0x25), new ScanCode(DIK_L, 0x26),
- new ScanCode(DIK_SEMICOLON, 0x27), new ScanCode(DIK_APOSTROPHE, 0x28), new ScanCode(DIK_GRAVE, 0x29),
- new ScanCode(DIK_LSHIFT, 0x2A), new ScanCode(DIK_BACKSLASH, 0x2B), new ScanCode(DIK_Z, 0x2C),
- new ScanCode(DIK_X, 0x2D), new ScanCode(DIK_C, 0x2E), new ScanCode(DIK_V, 0x2F), new ScanCode(DIK_B, 0x30),
- new ScanCode(DIK_N, 0x31), new ScanCode(DIK_M, 0x32), new ScanCode(DIK_COMMA, 0x33),
- new ScanCode(DIK_PERIOD, 0x34), new ScanCode(DIK_SLASH, 0x35), new ScanCode(DIK_RSHIFT, 0x36),
- new ScanCode(DIK_MULTIPLY, 0x37), new ScanCode(DIK_LMENU, 0x38), new ScanCode(DIK_SPACE, 0x39),
- new ScanCode(DIK_CAPITAL, 0x3A), new ScanCode(DIK_F1, 0x3B), new ScanCode(DIK_F2, 0x3C),
- new ScanCode(DIK_F3, 0x3D), new ScanCode(DIK_F4, 0x3E), new ScanCode(DIK_F5, 0x3F),
- new ScanCode(DIK_F6, 0x40), new ScanCode(DIK_F7, 0x41), new ScanCode(DIK_F8, 0x42),
- new ScanCode(DIK_F9, 0x43), new ScanCode(DIK_F10, 0x44), new ScanCode(DIK_NUMLOCK, 0x45),
- new ScanCode(DIK_SCROLL, 0x46), new ScanCode(DIK_NUMPAD7, 0x47), new ScanCode(DIK_NUMPAD8, 0x48),
- new ScanCode(DIK_NUMPAD9, 0x49), new ScanCode(DIK_SUBTRACT, 0x4A), new ScanCode(DIK_NUMPAD4, 0x4B),
- new ScanCode(DIK_NUMPAD5, 0x4C), new ScanCode(DIK_NUMPAD6, 0x4D), new ScanCode(DIK_ADD, 0x4E),
- new ScanCode(DIK_NUMPAD1, 0x4F), new ScanCode(DIK_NUMPAD2, 0x50), new ScanCode(DIK_NUMPAD3, 0x51),
- new ScanCode(DIK_NUMPAD0, 0x52), new ScanCode(DIK_DECIMAL, 0x53), new ScanCode(DIK_OEM_102, 0x56),
- new ScanCode(DIK_F11, 0x57), new ScanCode(DIK_F12, 0x58), new ScanCode(DIK_F13, 0x64),
- new ScanCode(DIK_F14, 0x65), new ScanCode(DIK_F15, 0x66), new ScanCode(DIK_KANA, 0x70),
- new ScanCode(DIK_ABNT_C1, 0x73), new ScanCode(DIK_CONVERT, 0x79), new ScanCode(DIK_NOCONVERT, 0x7B),
- new ScanCode(DIK_YEN, 0x7D), new ScanCode(DIK_ABNT_C2, 0x7E), new ScanCode(DIK_NUMPADEQUALS, 0x8D),
- new ScanCode(DIK_PREVTRACK, 0x90), new ScanCode(DIK_AT, 0x91), new ScanCode(DIK_COLON, 0x92),
- new ScanCode(DIK_UNDERLINE, 0x93), new ScanCode(DIK_KANJI, 0x94), new ScanCode(DIK_STOP, 0x95),
- new ScanCode(DIK_AX, 0x96), new ScanCode(DIK_UNLABELED, 0x97), new ScanCode(DIK_NEXTTRACK, 0x99),
- new ScanCode(DIK_NUMPADENTER, 0x9C), new ScanCode(DIK_RCONTROL, 0x9D), new ScanCode(DIK_MUTE, 0xA0),
- new ScanCode(DIK_CALCULATOR, 0xA1), new ScanCode(DIK_PLAYPAUSE, 0xA2), new ScanCode(DIK_MEDIASTOP, 0xA4),
- new ScanCode(DIK_VOLUMEDOWN, 0xAE), new ScanCode(DIK_VOLUMEUP, 0xB0), new ScanCode(DIK_WEBHOME, 0xB2),
- new ScanCode(DIK_NUMPADCOMMA, 0xB3), new ScanCode(DIK_DIVIDE, 0xB5), new ScanCode(DIK_SYSRQ, 0xB7),
- new ScanCode(DIK_RMENU, 0xB8), new ScanCode(DIK_PAUSE, 0xC5), new ScanCode(DIK_HOME, 0xC7),
- new ScanCode(DIK_UP, 0xC8), new ScanCode(DIK_PRIOR, 0xC9), new ScanCode(DIK_LEFT, 0xCB),
- new ScanCode(DIK_RIGHT, 0xCD), new ScanCode(DIK_END, 0xCF), new ScanCode(DIK_DOWN, 0xD0),
- new ScanCode(DIK_NEXT, 0xD1), new ScanCode(DIK_INSERT, 0xD2), new ScanCode(DIK_DELETE, 0xD3),
- new ScanCode(DIK_LWIN, 0xDB), new ScanCode(DIK_RWIN, 0xDC), new ScanCode(DIK_APPS, 0xDD),
- new ScanCode(DIK_POWER, 0xDE), new ScanCode(DIK_SLEEP, 0xDF), new ScanCode(DIK_WAKE, 0xE3),
- new ScanCode(DIK_WEBSEARCH, 0xE5), new ScanCode(DIK_WEBFAVORITES, 0xE6), new ScanCode(DIK_WEBREFRESH, 0xE7),
- new ScanCode(DIK_WEBSTOP, 0xE8), new ScanCode(DIK_WEBFORWARD, 0xE9), new ScanCode(DIK_WEBBACK, 0xEA),
- new ScanCode(DIK_MYCOMPUTER, 0xEB), new ScanCode(DIK_MAIL, 0xEC), new ScanCode(DIK_MEDIASELECT, 0xED) };
+ private static final ScanCode[] KEY_CODES = { new ScanCode(DIK_ESCAPE, 0x1, EventCode.KEY_ESC),
+ new ScanCode(DIK_1, 0x2, EventCode.KEY_1), new ScanCode(DIK_2, 0x3, EventCode.KEY_2),
+ new ScanCode(DIK_3, 0x4, EventCode.KEY_3), new ScanCode(DIK_4, 0x5, EventCode.KEY_4),
+ new ScanCode(DIK_5, 0x6, EventCode.KEY_5), new ScanCode(DIK_6, 0x7, EventCode.KEY_6),
+ new ScanCode(DIK_7, 0x8, EventCode.KEY_7), new ScanCode(DIK_8, 0x9, EventCode.KEY_8),
+ new ScanCode(DIK_9, 0xA, EventCode.KEY_9), new ScanCode(DIK_0, 0xB, EventCode.KEY_0),
+ new ScanCode(DIK_MINUS, 0xC, EventCode.KEY_MINUS), new ScanCode(DIK_EQUALS, 0xD, EventCode.KEY_EQUAL),
+ new ScanCode(DIK_BACK, 0xE, EventCode.KEY_BACKSPACE), new ScanCode(DIK_TAB, 0xF, EventCode.KEY_TAB),
+ new ScanCode(DIK_Q, 0x10, EventCode.KEY_Q), new ScanCode(DIK_W, 0x11, EventCode.KEY_W),
+ new ScanCode(DIK_E, 0x12, EventCode.KEY_E), new ScanCode(DIK_R, 0x13, EventCode.KEY_R),
+ new ScanCode(DIK_T, 0x14, EventCode.KEY_T), new ScanCode(DIK_Y, 0x15, EventCode.KEY_Y),
+ new ScanCode(DIK_U, 0x16, EventCode.KEY_U), new ScanCode(DIK_I, 0x17, EventCode.KEY_I),
+ new ScanCode(DIK_O, 0x18, EventCode.KEY_O), new ScanCode(DIK_P, 0x19, EventCode.KEY_P),
+ new ScanCode(DIK_LBRACKET, 0x1A, EventCode.KEY_LEFTBRACE),
+ new ScanCode(DIK_RBRACKET, 0x1B, EventCode.KEY_RIGHTBRACE),
+ new ScanCode(DIK_RETURN, 0x1C, EventCode.KEY_ENTER),
+ new ScanCode(DIK_LCONTROL, 0x1D, EventCode.KEY_LEFTCTRL), new ScanCode(DIK_A, 0x1E, EventCode.KEY_A),
+ new ScanCode(DIK_S, 0x1F, EventCode.KEY_S), new ScanCode(DIK_D, 0x20, EventCode.KEY_D),
+ new ScanCode(DIK_F, 0x21, EventCode.KEY_F), new ScanCode(DIK_G, 0x22, EventCode.KEY_G),
+ new ScanCode(DIK_H, 0x23, EventCode.KEY_H), new ScanCode(DIK_J, 0x24, EventCode.KEY_J),
+ new ScanCode(DIK_K, 0x25, EventCode.KEY_K), new ScanCode(DIK_L, 0x26, EventCode.KEY_L),
+ new ScanCode(DIK_SEMICOLON, 0x27, EventCode.KEY_SEMICOLON),
+ new ScanCode(DIK_APOSTROPHE, 0x28, EventCode.KEY_APOSTROPHE),
+ new ScanCode(DIK_GRAVE, 0x29, EventCode.KEY_GRAVE), new ScanCode(DIK_LSHIFT, 0x2A, EventCode.KEY_LEFTSHIFT),
+ new ScanCode(DIK_BACKSLASH, 0x2B, EventCode.KEY_BACKSLASH), new ScanCode(DIK_Z, 0x2C, EventCode.KEY_Z),
+ new ScanCode(DIK_X, 0x2D, EventCode.KEY_X), new ScanCode(DIK_C, 0x2E, EventCode.KEY_C),
+ new ScanCode(DIK_V, 0x2F, EventCode.KEY_V), new ScanCode(DIK_B, 0x30, EventCode.KEY_B),
+ new ScanCode(DIK_N, 0x31, EventCode.KEY_N), new ScanCode(DIK_M, 0x32, EventCode.KEY_M),
+ new ScanCode(DIK_COMMA, 0x33, EventCode.KEY_COMMA), new ScanCode(DIK_PERIOD, 0x34, EventCode.KEY_DOT),
+ new ScanCode(DIK_SLASH, 0x35, EventCode.KEY_SLASH),
+ new ScanCode(DIK_RSHIFT, 0x36, EventCode.KEY_RIGHTSHIFT),
+ new ScanCode(DIK_MULTIPLY, 0x37, EventCode.KEY_KPASTERISK),
+ new ScanCode(DIK_LMENU, 0x38, EventCode.KEY_LEFTALT), new ScanCode(DIK_SPACE, 0x39, EventCode.KEY_SPACE),
+ new ScanCode(DIK_CAPITAL, 0x3A, EventCode.KEY_CAPSLOCK), new ScanCode(DIK_F1, 0x3B, EventCode.KEY_F1),
+ new ScanCode(DIK_F2, 0x3C, EventCode.KEY_F2), new ScanCode(DIK_F3, 0x3D, EventCode.KEY_F3),
+ new ScanCode(DIK_F4, 0x3E, EventCode.KEY_F4), new ScanCode(DIK_F5, 0x3F, EventCode.KEY_F5),
+ new ScanCode(DIK_F6, 0x40, EventCode.KEY_F6), new ScanCode(DIK_F7, 0x41, EventCode.KEY_F7),
+ new ScanCode(DIK_F8, 0x42, EventCode.KEY_F8), new ScanCode(DIK_F9, 0x43, EventCode.KEY_F9),
+ new ScanCode(DIK_F10, 0x44, EventCode.KEY_F10), new ScanCode(DIK_NUMLOCK, 0x45, EventCode.KEY_NUMLOCK),
+ new ScanCode(DIK_SCROLL, 0x46, EventCode.KEY_SCROLLLOCK),
+ new ScanCode(DIK_NUMPAD7, 0x47, EventCode.KEY_KP7), new ScanCode(DIK_NUMPAD8, 0x48, EventCode.KEY_KP8),
+ new ScanCode(DIK_NUMPAD9, 0x49, EventCode.KEY_KP9), new ScanCode(DIK_SUBTRACT, 0x4A, EventCode.KEY_KPMINUS),
+ new ScanCode(DIK_NUMPAD4, 0x4B, EventCode.KEY_KP4), new ScanCode(DIK_NUMPAD5, 0x4C, EventCode.KEY_KP5),
+ new ScanCode(DIK_NUMPAD6, 0x4D, EventCode.KEY_KP6), new ScanCode(DIK_ADD, 0x4E, EventCode.KEY_KPPLUS),
+ new ScanCode(DIK_NUMPAD1, 0x4F, EventCode.KEY_KP1), new ScanCode(DIK_NUMPAD2, 0x50, EventCode.KEY_KP2),
+ new ScanCode(DIK_NUMPAD3, 0x51, EventCode.KEY_KP3), new ScanCode(DIK_NUMPAD0, 0x52, EventCode.KEY_KP0),
+ new ScanCode(DIK_DECIMAL, 0x53, EventCode.KEY_KPDOT), new ScanCode(DIK_OEM_102, 0x56, EventCode.KEY_102ND),
+ new ScanCode(DIK_F11, 0x57, EventCode.KEY_F11), new ScanCode(DIK_F12, 0x58, EventCode.KEY_F12),
+ new ScanCode(DIK_NUMPADEQUALS, 0x8D, null), new ScanCode(DIK_NEXTTRACK, 0x99, EventCode.KEY_NEXTSONG),
+ new ScanCode(DIK_NUMPADENTER, 0x9C, EventCode.KEY_KPENTER),
+ new ScanCode(DIK_RCONTROL, 0x9D, EventCode.KEY_RIGHTCTRL), new ScanCode(DIK_NUMPADCOMMA, 0xB3, null),
+ new ScanCode(DIK_DIVIDE, 0xB5, null), new ScanCode(DIK_SYSRQ, 0xB7, EventCode.KEY_SYSRQ),
+ new ScanCode(DIK_RMENU, 0xB8, EventCode.KEY_RIGHTALT), new ScanCode(DIK_PAUSE, 0xC5, EventCode.KEY_PAUSE),
+ new ScanCode(DIK_HOME, 0xC7, EventCode.KEY_HOME), new ScanCode(DIK_UP, 0xC8, EventCode.KEY_UP),
+ new ScanCode(DIK_PRIOR, 0xC9, null), new ScanCode(DIK_LEFT, 0xCB, EventCode.KEY_LEFT),
+ new ScanCode(DIK_RIGHT, 0xCD, EventCode.KEY_RIGHT), new ScanCode(DIK_END, 0xCF, EventCode.KEY_END),
+ new ScanCode(DIK_DOWN, 0xD0, EventCode.KEY_DOWN), new ScanCode(DIK_NEXT, 0xD1, EventCode.KEY_NEXT),
+ new ScanCode(DIK_INSERT, 0xD2, EventCode.KEY_INSERT), new ScanCode(DIK_DELETE, 0xD3, EventCode.KEY_DELETE),
+ new ScanCode(DIK_LWIN, 0xDB, EventCode.KEY_LEFTMETA),
+ new ScanCode(DIK_RWIN, 0xDC, EventCode.KEY_RIGHTMETA) };
- public static final Map nameToKeyCodeMap;
- public static final Map keyCodeToNameMap;
+ public static final Map nameToScanCodeMap;
+ public static final Map keyCodeToScanCodeMap;
public static final Set extendedKeyScanCodesSet;
static {
- final var modifiableNameToKeyCodeMap = new TreeMap();
- final var modifiableKeyCodeToNameMap = new HashMap();
+ final var modifiableNameToScanCodeMap = new TreeMap();
+ final var modifiableKeyCodeToScanCodeMap = new HashMap();
for (final ScanCode sc : KEY_CODES) {
- modifiableNameToKeyCodeMap.put(sc.name, sc.scanCode);
- modifiableKeyCodeToNameMap.put(sc.scanCode, sc.name);
+ modifiableNameToScanCodeMap.put(sc.name, sc);
+ modifiableKeyCodeToScanCodeMap.put(sc.keyCode, sc);
}
- nameToKeyCodeMap = Collections.unmodifiableMap(modifiableNameToKeyCodeMap);
- keyCodeToNameMap = Collections.unmodifiableMap(modifiableKeyCodeToNameMap);
+ nameToScanCodeMap = Collections.unmodifiableMap(modifiableNameToScanCodeMap);
+ keyCodeToScanCodeMap = Collections.unmodifiableMap(modifiableKeyCodeToScanCodeMap);
- extendedKeyScanCodesSet = keyCodeToNameMap.entrySet().stream().filter(entry -> {
- final var name = entry.getValue();
+ extendedKeyScanCodesSet = keyCodeToScanCodeMap.entrySet().stream().filter(entry -> {
+ final var name = entry.getValue().name;
return DIK_RCONTROL.equals(name) || DIK_RMENU.equals(name) || DIK_INSERT.equals(name)
|| DIK_DELETE.equals(name) || DIK_HOME.equals(name) || DIK_END.equals(name)
|| DIK_PRIOR.equals(name) || DIK_NEXT.equals(name) || DIK_UP.equals(name) || DIK_DOWN.equals(name)
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToAxisAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToAxisAction.java
index a1adc887..b06cb463 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToAxisAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToAxisAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToButtonAction.java
index ff0abcdf..51f10796 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToCursorAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToCursorAction.java
index f8156838..4c9015e5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToCursorAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToCursorAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToKeyAction.java
index 6edaf20b..1b00d0a2 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToMouseButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToMouseButtonAction.java
index 9b273ed0..84b24233 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToMouseButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToMouseButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToRelativeAxisAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToRelativeAxisAction.java
index da962f3e..ed1da613 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToRelativeAxisAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToRelativeAxisAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
@@ -64,9 +63,9 @@ public void doAction(final Input input, final int component, final Float value)
else {
remainingD = 0f;
- final var output = input.getOutput();
- final var oldValue = Input.normalize(input.getAxes().get(virtualAxis), output.getMinAxisValue(),
- output.getMaxAxisValue(), -1f, 1f);
+ final var runMode = input.getRunMode();
+ final var oldValue = Input.normalize(input.getAxes().get(virtualAxis), runMode.getMinAxisValue(),
+ runMode.getMaxAxisValue(), -1f, 1f);
input.setAxis(virtualAxis, oldValue + (invert ? -d : d), hapticFeedback, detentValue);
}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToScrollAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToScrollAction.java
index ea8a9940..1e136e38 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToScrollAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToScrollAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToVrResetZeroPoseAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToVrResetZeroPoseAction.java
index d399ed5d..0fb47dfd 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToVrResetZeroPoseAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/AxisToVrResetZeroPoseAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2022 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction.java
index 7824ef60..f8abf4c0 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToAxisResetAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToButtonAction.java
index cc8b9b4d..754d3b03 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCursorAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCursorAction.java
index bfbcff26..80dc681d 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCursorAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCursorAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java
index bd69da6d..eb5bf4a2 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToCycleAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToKeyAction.java
index 169cdf19..c074d0b5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToLockKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToLockKeyAction.java
index cc0a1f25..5b1111ab 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToLockKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToLockKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
@@ -33,8 +32,8 @@ public final class ButtonToLockKeyAction extends DescribableAction impleme
private boolean longPress = DEFAULT_LONG_PRESS;
- @ActionProperty(label = "VIRTUAL_KEY_CODE", editorBuilder = LockKeyEditorBuilder.class, overrideFieldName = "lockKey", overrideFieldType = LockKey.class, order = 10)
- private int virtualKeyCode = LockKey.LOCK_KEYS[0].virtualKeyCode();
+ @ActionProperty(label = "LOCK_KEY", editorBuilder = LockKeyEditorBuilder.class, overrideFieldName = "lockKey", overrideFieldType = LockKey.class, order = 10)
+ private LockKey virtualKeyCode = LockKey.CapsLockLockKey;
@ActionProperty(label = "ON", editorBuilder = BooleanEditorBuilder.class, order = 11)
private boolean on = true;
@@ -71,7 +70,7 @@ public String getDescription(final Input input) {
}
public LockKey getLockKey() {
- return LockKey.virtualKeyCodeToLockKeyMap.get(virtualKeyCode);
+ return virtualKeyCode;
}
@Override
@@ -84,7 +83,7 @@ public boolean isOn() {
}
public void setLockKey(final LockKey lockKey) {
- virtualKeyCode = LockKey.lockKeyToVirtualKeyCodeMap.get(lockKey);
+ virtualKeyCode = lockKey;
}
@Override
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java
index ec15e34f..a7fbfd7c 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToModeAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToMouseButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToMouseButtonAction.java
index f97eae8d..41ec34d6 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToMouseButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToMouseButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToPressOnScreenKeyboardKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToPressOnScreenKeyboardKeyAction.java
index cc037e3e..f1f24085 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToPressOnScreenKeyboardKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToPressOnScreenKeyboardKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToReleaseAllOnScreenKeyboardKeysAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToReleaseAllOnScreenKeyboardKeysAction.java
index 5aed8521..1ca9ed36 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToReleaseAllOnScreenKeyboardKeysAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToReleaseAllOnScreenKeyboardKeysAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2021 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToScrollAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToScrollAction.java
index 39a73ce4..e823cc9a 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToScrollAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToScrollAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction.java
index 3af23d20..a7234b60 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToSelectOnScreenKeyboardKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToVrResetZeroPoseAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToVrResetZeroPoseAction.java
index a362c644..13523414 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToVrResetZeroPoseAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ButtonToVrResetZeroPoseAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2022 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/DescribableAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/DescribableAction.java
index 03186a84..b69c6a44 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/DescribableAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/DescribableAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAction.java
index 7acd48be..f6c50745 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IActivatableAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IActivatableAction.java
index 4f8b0368..1136918f 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IActivatableAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IActivatableAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToAction.java
index 031997e2..b0d83041 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java
index 5e255a11..5d98acc5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IAxisToLongPressAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2021 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java
index a78ab434..f6911d7d 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IButtonToAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IInitializationAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IInitializationAction.java
index 379f76cf..36122000 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IInitializationAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IInitializationAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ILongPressAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ILongPressAction.java
index 139e5516..d9d9749a 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ILongPressAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ILongPressAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2021 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/IResetableAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/IResetableAction.java
index 598d49a3..edad12c3 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/IResetableAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/IResetableAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/InvertableAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/InvertableAction.java
index 767fec39..3cff70a7 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/InvertableAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/InvertableAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/NullAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/NullAction.java
index 9e29512c..44221f95 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/NullAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/NullAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToAxisAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToAxisAction.java
index bdf0b9a0..5fd59dc9 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToAxisAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToAxisAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToButtonAction.java
index 763343b9..a6b963ea 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
@@ -47,7 +46,8 @@ public String getDescription(final Input input) {
}
final boolean isAlreadyPressed(final Input input) {
- return input.getButtons()[buttonId];
+ final var buttons = input.getButtons();
+ return buttonId < buttons.length && buttons[buttonId];
}
public void setButtonId(final int buttonId) {
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToCursorAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToCursorAction.java
index fc71d803..6ce07496 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToCursorAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToCursorAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java
index 7c8416a2..afd8981e 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java
index 6984ef9d..6d036956 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToScrollAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToScrollAction.java
index a13a791c..8c270aa9 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToScrollAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToScrollAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction.java
index 35cb9ae7..94f45c77 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToVrResetZeroPoseAction.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2022 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/Action.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/Action.java
index cd80e19a..b427cf8f 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/Action.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/Action.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.annotation;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/ActionProperty.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/ActionProperty.java
index 0ca8b159..c5234b4e 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/ActionProperty.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/annotation/ActionProperty.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.annotation;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder.java
index 66fd6cfa..72d2fd14 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActionsEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActivationEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActivationEditorBuilder.java
index cb3ae153..f3c2e616 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActivationEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ActivationEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder.java
index cb25610d..1558bdcc 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ArrayEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/AxisValueEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/AxisValueEditorBuilder.java
index b0a918e1..0aeac8a9 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/AxisValueEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/AxisValueEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder.java
index b965dcfd..2d909e87 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/BooleanEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder.java
index dd8ff81b..4d3d5f7c 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ButtonEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ClicksEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ClicksEditorBuilder.java
index 959ee9ac..78bab465 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ClicksEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ClicksEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DeadZoneEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DeadZoneEditorBuilder.java
index 4bf108b7..28115f2c 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DeadZoneEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DeadZoneEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder.java
index 874e488c..3ed89876 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DetentValueEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DirectionEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DirectionEditorBuilder.java
index fca5fd32..450fbb9e 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DirectionEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DirectionEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DistanceEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DistanceEditorBuilder.java
index be7cdd49..3dfb8b63 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DistanceEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/DistanceEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder.java
index e858ea0b..a6249ad3 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/EditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ExponentEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ExponentEditorBuilder.java
index d72008e3..3ab3d8be 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ExponentEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ExponentEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/InitialValueEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/InitialValueEditorBuilder.java
index 2b29c4fb..f5570054 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/InitialValueEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/InitialValueEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder.java
index 5c59ea6f..2d871fce 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/KeystrokeEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
@@ -119,12 +118,12 @@ private JListSetPropertyListSelectionListener(final Method setterMethod, final K
@Override
public void valueChanged(final ListSelectionEvent e) {
try {
- final Set scanCodes = new HashSet<>();
+ final Set scanCodes = new HashSet<>();
((JList>) e.getSource()).getSelectedValuesList()
- .forEach(object -> scanCodes.add(ScanCode.nameToKeyCodeMap.get(object)));
+ .forEach(object -> scanCodes.add(ScanCode.nameToScanCodeMap.get(object)));
- final var scanCodesArray = scanCodes.toArray(new Integer[scanCodes.size()]);
+ final var scanCodesArray = scanCodes.toArray(new ScanCode[scanCodes.size()]);
if (modifiers)
keyStroke.setModifierCodes(scanCodesArray);
@@ -180,7 +179,7 @@ public void buildEditor(final JPanel parentPanel) {
final var keyStroke = (KeyStroke) initialValue;
- final var availableScanCodes = ScanCode.nameToKeyCodeMap.keySet();
+ final var availableScanCodes = ScanCode.nameToScanCodeMap.keySet();
final var modifiersPanel = new JPanel();
modifiersPanel.setLayout(new BoxLayout(modifiersPanel, BoxLayout.PAGE_AXIS));
@@ -192,8 +191,8 @@ public void buildEditor(final JPanel parentPanel) {
modifierList.addListSelectionListener(new JListSetPropertyListSelectionListener(setterMethod, keyStroke, true));
final var addedModifiers = new ArrayList();
- for (final int c1 : keyStroke.getModifierCodes())
- addedModifiers.add(ScanCode.keyCodeToNameMap.get(c1));
+ for (final var modifierCode : keyStroke.getModifierCodes())
+ addedModifiers.add(modifierCode.name());
addedModifiers.forEach(s1 -> {
final var index1 = getListModelIndex(modifierList.getModel(), s1);
if (index1 >= 0)
@@ -215,8 +214,8 @@ public void buildEditor(final JPanel parentPanel) {
keyList.addListSelectionListener(new JListSetPropertyListSelectionListener(setterMethod, keyStroke, false));
final var addedKeys = new ArrayList();
- for (final int c2 : keyStroke.getKeyCodes())
- addedKeys.add(ScanCode.keyCodeToNameMap.get(c2));
+ for (final var keyCode : keyStroke.getKeyCodes())
+ addedKeys.add(keyCode.name());
addedKeys.forEach(s2 -> {
final var index2 = getListModelIndex(keyList.getModel(), s2);
if (index2 >= 0)
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LockKeyEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LockKeyEditorBuilder.java
index 18761133..c824d634 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LockKeyEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LockKeyEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LongPressEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LongPressEditorBuilder.java
index d0454dd8..99bbe529 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LongPressEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/LongPressEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxCursorSpeedEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxCursorSpeedEditorBuilder.java
index e59af8c7..fcd08de5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxCursorSpeedEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxCursorSpeedEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxRelativeSpeedEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxRelativeSpeedEditorBuilder.java
index a9c6579b..bf63f48c 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxRelativeSpeedEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MaxRelativeSpeedEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ModeEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ModeEditorBuilder.java
index 0251615a..70e600a0 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ModeEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/ModeEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseAxisEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseAxisEditorBuilder.java
index c9e77a63..8e3f9164 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseAxisEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseAxisEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseButtonEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseButtonEditorBuilder.java
index 540d8e6c..93a104b5 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseButtonEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/MouseButtonEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder.java
index 10f808dc..889b5cfb 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/NumberEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder.java
index 81f74e9e..2987cdb6 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/StringEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VirtualAxisEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VirtualAxisEditorBuilder.java
index 3ed8ab13..4d0cc9ab 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VirtualAxisEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VirtualAxisEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VrCoordinateSystemEditorBuilder.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VrCoordinateSystemEditorBuilder.java
index dac94ee8..6a2fabca 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VrCoordinateSystemEditorBuilder.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/gui/VrCoordinateSystemEditorBuilder.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2022 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.action.gui;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension.java b/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension.java
index 353aac1c..71fb1676 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualSenseExtension.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.sony;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension.java b/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension.java
index 50c8cc07..efc4f60a 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/sony/DualShock4Extension.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.sony;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java b/src/main/java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java
index 5804b1a1..305c2509 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/input/sony/SonyExtension.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.input.sony;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java b/src/main/java/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java
index 064d3086..2d1f2e08 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/json/ActionTypeAdapter.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.json;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/json/ColorTypeAdapter.java b/src/main/java/de/bwravencl/controllerbuddy/json/ColorTypeAdapter.java
index d1aa6ec3..301b508c 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/json/ColorTypeAdapter.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/json/ColorTypeAdapter.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2021 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.json;
@@ -46,7 +45,8 @@ else if (json.isJsonObject()) {
}
if (rgba == null)
- throw new JsonParseException("Could not deserialize as color: " + json.toString());
+ throw new JsonParseException(
+ "Could not deserialize as " + Color.class.getSimpleName() + ": " + json.toString());
return new Color(rgba, true);
} catch (final JsonParseException e) {
diff --git a/src/main/java/de/bwravencl/controllerbuddy/json/LockKeyAdapter.java b/src/main/java/de/bwravencl/controllerbuddy/json/LockKeyAdapter.java
new file mode 100644
index 00000000..8a87de90
--- /dev/null
+++ b/src/main/java/de/bwravencl/controllerbuddy/json/LockKeyAdapter.java
@@ -0,0 +1,63 @@
+/* Copyright (C) 2022 Matteo Hausner
+ *
+ * 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 .
+ */
+
+package de.bwravencl.controllerbuddy.json;
+
+import java.lang.reflect.Type;
+
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonParseException;
+import com.google.gson.JsonPrimitive;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+
+import de.bwravencl.controllerbuddy.input.LockKey;
+
+public final class LockKeyAdapter implements JsonSerializer, JsonDeserializer {
+
+ @Override
+ public LockKey deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context)
+ throws JsonParseException {
+ try {
+ LockKey lockKey = null;
+ if (json.isJsonPrimitive()) {
+ final var jsonPrimitive = (JsonPrimitive) json;
+
+ if (jsonPrimitive.isNumber())
+ lockKey = LockKey.virtualKeyCodeToLockKeyMap.get(jsonPrimitive.getAsInt());
+ else if (jsonPrimitive.isString())
+ lockKey = LockKey.nameToLockKeyMap.get(jsonPrimitive.getAsString());
+ }
+
+ if (lockKey == null)
+ throw new JsonParseException(
+ "Could not deserialize as " + LockKey.class.getSimpleName() + ": " + json.toString());
+
+ return lockKey;
+ } catch (final JsonParseException e) {
+ throw e;
+ } catch (final Throwable t) {
+ throw new JsonParseException(t);
+ }
+ }
+
+ @Override
+ public JsonElement serialize(final LockKey src, final Type typeOfSrc, final JsonSerializationContext context) {
+ return new JsonPrimitive(src.name());
+ }
+}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory.java b/src/main/java/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory.java
index 9baa6ba7..3fd38b93 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/json/ModeAwareTypeAdapterFactory.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.json;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/json/ScanCodeAdapter.java b/src/main/java/de/bwravencl/controllerbuddy/json/ScanCodeAdapter.java
new file mode 100644
index 00000000..3dcbaca0
--- /dev/null
+++ b/src/main/java/de/bwravencl/controllerbuddy/json/ScanCodeAdapter.java
@@ -0,0 +1,63 @@
+/* Copyright (C) 2022 Matteo Hausner
+ *
+ * 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 .
+ */
+
+package de.bwravencl.controllerbuddy.json;
+
+import java.lang.reflect.Type;
+
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonParseException;
+import com.google.gson.JsonPrimitive;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+
+import de.bwravencl.controllerbuddy.input.ScanCode;
+
+public final class ScanCodeAdapter implements JsonSerializer, JsonDeserializer {
+
+ @Override
+ public ScanCode deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context)
+ throws JsonParseException {
+ try {
+ ScanCode scanCode = null;
+ if (json.isJsonPrimitive()) {
+ final var jsonPrimitive = (JsonPrimitive) json;
+
+ if (jsonPrimitive.isNumber())
+ scanCode = ScanCode.keyCodeToScanCodeMap.get(jsonPrimitive.getAsInt());
+ else if (jsonPrimitive.isString())
+ scanCode = ScanCode.nameToScanCodeMap.get(jsonPrimitive.getAsString());
+ }
+
+ if (scanCode == null)
+ throw new JsonParseException(
+ "Could not deserialize as " + ScanCode.class.getSimpleName() + ": " + json.toString());
+
+ return scanCode;
+ } catch (final JsonParseException e) {
+ throw e;
+ } catch (final Throwable t) {
+ throw new JsonParseException(t);
+ }
+ }
+
+ @Override
+ public JsonElement serialize(final ScanCode src, final Type typeOfSrc, final JsonSerializationContext context) {
+ return new JsonPrimitive(src.name());
+ }
+}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/VJoyOutput.java b/src/main/java/de/bwravencl/controllerbuddy/output/VJoyOutput.java
deleted file mode 100644
index 0e3ccb43..00000000
--- a/src/main/java/de/bwravencl/controllerbuddy/output/VJoyOutput.java
+++ /dev/null
@@ -1,596 +0,0 @@
-/* Copyright (C) 2020 Matteo Hausner
- *
- * 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-package de.bwravencl.controllerbuddy.output;
-
-import java.awt.EventQueue;
-import java.awt.Toolkit;
-import java.io.File;
-import java.io.IOException;
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.FutureTask;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.JOptionPane;
-
-import org.lwjgl.glfw.GLFW;
-
-import com.sun.jna.Memory;
-import com.sun.jna.Native;
-import com.sun.jna.Platform;
-import com.sun.jna.platform.win32.Advapi32Util;
-import com.sun.jna.platform.win32.Kernel32;
-import com.sun.jna.platform.win32.User32;
-import com.sun.jna.platform.win32.WinBase;
-import com.sun.jna.platform.win32.WinDef;
-import com.sun.jna.platform.win32.WinDef.BOOL;
-import com.sun.jna.platform.win32.WinDef.DWORD;
-import com.sun.jna.platform.win32.WinDef.LONG;
-import com.sun.jna.platform.win32.WinDef.UCHAR;
-import com.sun.jna.platform.win32.WinDef.UINT;
-import com.sun.jna.platform.win32.WinDef.WORD;
-import com.sun.jna.platform.win32.WinReg;
-import com.sun.jna.platform.win32.WinUser.INPUT;
-import com.sun.jna.platform.win32.WinUser.KEYBDINPUT;
-import com.sun.jna.platform.win32.WinUser.MOUSEINPUT;
-
-import de.bwravencl.controllerbuddy.gui.GuiUtils;
-import de.bwravencl.controllerbuddy.gui.Main;
-import de.bwravencl.controllerbuddy.input.Input;
-import de.bwravencl.controllerbuddy.input.KeyStroke;
-import de.bwravencl.controllerbuddy.input.ScanCode;
-import de.bwravencl.controllerbuddy.input.action.ToButtonAction;
-
-public abstract class VJoyOutput extends Output {
-
- private static final Logger log = Logger.getLogger(VJoyOutput.class.getName());
-
- public static final int DEFAULT_VJOY_DEVICE = 1;
- private static final String LIBRARY_NAME = "vJoyInterface";
- public static final String LIBRARY_FILENAME = LIBRARY_NAME + ".dll";
- private static final String UNINSTALL_REGISTRY_KEY = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{8E31F76F-74C3-47F1-9550-E041EEDC5FBB}_is1";
- private static final String INSTALL_LOCATION_REGISTRY_VALUE = "InstallLocation";
-
- private static final long MOUSEEVENTF_MOVE = 0x0001L;
- private static final long MOUSEEVENTF_LEFTDOWN = 0x0002L;
- private static final long MOUSEEVENTF_LEFTUP = 0x0004L;
- private static final long MOUSEEVENTF_RIGHTDOWN = 0x0008L;
- private static final long MOUSEEVENTF_RIGHTUP = 0x0010L;
- private static final long MOUSEEVENTF_MIDDLEDOWN = 0x0020L;
- private static final long MOUSEEVENTF_MIDDLEUP = 0x0040L;
- private static final long MOUSEEVENTF_WHEEL = 0x0800L;
- private static final long WHEEL_DELTA = 120L;
-
- static {
- Native.register("User32");
- }
-
- private static IVjoyInterface vJoy;
-
- private static void doKeyboardInput(final int scanCode, final boolean down) {
- final var input = new INPUT();
- input.type = new DWORD(INPUT.INPUT_KEYBOARD);
- input.input.setType(KEYBDINPUT.class);
- input.input.ki.wScan = new WORD(scanCode);
- var flags = (down ? 0 : KEYBDINPUT.KEYEVENTF_KEYUP) | KEYBDINPUT.KEYEVENTF_SCANCODE;
- if (ScanCode.extendedKeyScanCodesSet.contains(scanCode))
- flags |= KEYBDINPUT.KEYEVENTF_EXTENDEDKEY;
- input.input.ki.dwFlags = new DWORD(flags);
-
- User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
- }
-
- private static void doMouseButtonInput(final int button, final boolean down) {
- final var input = new INPUT();
- input.type = new DWORD(INPUT.INPUT_MOUSE);
- input.input.setType(MOUSEINPUT.class);
-
- switch (button) {
- case 1 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_LEFTDOWN) : new DWORD(MOUSEEVENTF_LEFTUP);
- case 2 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_RIGHTDOWN) : new DWORD(MOUSEEVENTF_RIGHTUP);
- case 3 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_MIDDLEDOWN) : new DWORD(MOUSEEVENTF_MIDDLEUP);
- default -> throw new IllegalArgumentException();
- }
-
- User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
- }
-
- public static String getArchFolderName() {
- return Platform.is64Bit() ? "x64" : "x86";
- }
-
- public static String getDefaultInstallationPath() {
- try {
- return Advapi32Util.registryGetStringValue(WinReg.HKEY_LOCAL_MACHINE, UNINSTALL_REGISTRY_KEY,
- INSTALL_LOCATION_REGISTRY_VALUE);
- } catch (final Throwable t) {
- final var defaultPath = System.getenv("ProgramFiles") + File.separator + "vJoy";
- log.log(Level.WARNING, "Could not retrieve vJoy installation path from registry", t);
-
- return defaultPath;
- }
- }
-
- private static native short GetKeyState(int KeyState);
-
- private static void setLockKeyState(final int virtualKeyCode, final boolean on) {
- final var state = (GetKeyState(virtualKeyCode) & 0x1) != 0;
-
- if (state != on) {
- final var toolkit = Toolkit.getDefaultToolkit();
-
- toolkit.setLockingKeyState(virtualKeyCode, true);
- toolkit.setLockingKeyState(virtualKeyCode, false);
- }
- }
-
- private static void setVJoy(final IVjoyInterface vJoy) {
- VJoyOutput.vJoy = vJoy;
- }
-
- static void updateOutputSets(final Set sourceSet, final Set oldDownSet,
- final Set newUpSet, final Set newDownSet, final boolean keepStillDown) {
- final var stillDownSet = new HashSet();
-
- newUpSet.clear();
-
- for (final var oldCode : oldDownSet) {
- var stillDown = false;
-
- for (final var newCode : sourceSet)
- if (newCode.equals(oldCode)) {
- stillDown = true;
- break;
- }
-
- if (stillDown)
- stillDownSet.add(oldCode);
- else
- newUpSet.add(oldCode);
- }
-
- newDownSet.clear();
-
- if (keepStillDown)
- newDownSet.addAll(stillDownSet);
-
- for (final var newCode : sourceSet) {
- var alreadyDown = false;
-
- for (final var oldCode : oldDownSet)
- if (oldCode.equals(newCode)) {
- alreadyDown = true;
- break;
- }
-
- if (!alreadyDown)
- newDownSet.add(newCode);
- }
-
- oldDownSet.clear();
- oldDownSet.addAll(stillDownSet);
- oldDownSet.addAll(newDownSet);
- }
-
- private boolean restart;
- boolean forceStop;
- private UINT vJoyDevice = new UINT(DEFAULT_VJOY_DEVICE);
- LONG axisX;
- boolean axisXChanged;
- LONG axisY;
- boolean axisYChanged;
- LONG axisZ;
- boolean axisZChanged;
- LONG axisRX;
- boolean axisRXChanged;
- LONG axisRY;
- boolean axisRYChanged;
- LONG axisRZ;
- boolean axisRZChanged;
- LONG axisS0;
- boolean axisS0Changed;
- LONG axisS1;
- boolean axisS1Changed;
- BOOL[] buttons;
- boolean[] buttonsChanged;
- int cursorDeltaX;
- int cursorDeltaY;
- int scrollClicks;
- private long prevKeyInputTime = 0;
- final Set oldDownMouseButtons = new HashSet<>();
- final Set newUpMouseButtons = new HashSet<>();
- final Set newDownMouseButtons = new HashSet<>();
- final Set downUpMouseButtons = new HashSet<>();
- final Set oldDownModifiers = new HashSet<>();
- final Set newUpModifiers = new HashSet<>();
- final Set newDownModifiers = new HashSet<>();
- final Set oldDownNormalKeys = new HashSet<>();
- final Set newUpNormalKeys = new HashSet<>();
- final Set newDownNormalKeys = new HashSet<>();
- final Set onLockKeys = new HashSet<>();
- final Set offLockKeys = new HashSet<>();
- final Set downUpKeyStrokes = new HashSet<>();
-
- VJoyOutput(final Main main, final Input input) {
- super(main, input);
- }
-
- final void deInit() {
- input.reset();
-
- if (main.preventPowerSaveMode())
- Kernel32.INSTANCE.SetThreadExecutionState(WinBase.ES_CONTINUOUS);
-
- if (vJoy != null) {
- vJoy.ResetVJD(vJoyDevice);
- vJoy.RelinquishVJD(vJoyDevice);
-
- oldDownMouseButtons.forEach(mouseButton -> doMouseButtonInput(mouseButton, false));
-
- oldDownModifiers.forEach(code -> doKeyboardInput(code, false));
-
- EventQueue.invokeLater(() -> {
- main.setStatusBarText(MessageFormat
- .format(Main.strings.getString("STATUS_DISCONNECTED_FROM_VJOY_DEVICE"), vJoyDevice.intValue()));
- });
- }
-
- EventQueue.invokeLater(() -> {
- if (forceStop || restart)
- main.stopAll(false, false, true);
- if (restart)
- main.restartLast();
- });
- }
-
- final boolean init() {
- final var vJoyPath = main.getPreferences().get(Main.PREFERENCES_VJOY_DIRECTORY, getDefaultInstallationPath());
- final var libraryPath = new File(vJoyPath, getArchFolderName()).getAbsolutePath();
-
- log.log(Level.INFO, "Using vJoy library path: " + libraryPath);
- System.setProperty("jna.library.path", libraryPath);
-
- try {
- setVJoy(Native.load(LIBRARY_NAME, IVjoyInterface.class));
-
- if (!vJoy.vJoyEnabled().booleanValue()) {
- log.log(Level.WARNING, "vJoy driver is not enabled");
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- Main.strings.getString("VJOY_DRIVER_NOT_ENABLED_DIALOG_TEXT"),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- final var dllVersion = new Memory(WinDef.WORD.SIZE);
- final var drvVersion = new Memory(WinDef.WORD.SIZE);
- if (!vJoy.DriverMatch(dllVersion, drvVersion).booleanValue()) {
- log.log(Level.WARNING, "vJoy DLL version " + dllVersion.toString() + " does not match driver version "
- + drvVersion.toString());
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("VJOY_VERSION_MISMATCH_DIALOG_TEXT"),
- dllVersion.getShort(0L), drvVersion.getShort(0L)),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- log.log(Level.INFO, "Using vJoy device: " + vJoyDevice.toString());
-
- if (vJoy.GetVJDStatus(vJoyDevice) != IVjoyInterface.VJD_STAT_FREE) {
- log.log(Level.WARNING, "vJoy device is not available");
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("INVALID_VJOY_DEVICE_STATUS_DIALOG_TEXT"),
- vJoyDevice.intValue()),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- final var hasAxisX = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_X).booleanValue();
- final var hasAxisY = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_Y).booleanValue();
- final var hasAxisZ = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_Z).booleanValue();
- final var hasAxisRX = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RX).booleanValue();
- final var hasAxisRY = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RY).booleanValue();
- final var hasAxisRZ = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RZ).booleanValue();
- final var hasAxisSL0 = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_SL0).booleanValue();
- final var hasAxisSL1 = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_SL1).booleanValue();
- if (!hasAxisX || !hasAxisY || !hasAxisZ || !hasAxisRX || !hasAxisRY || !hasAxisRZ || !hasAxisSL0
- || !hasAxisSL1) {
- final var missingAxes = new ArrayList();
- if (!hasAxisX)
- missingAxes.add("X");
- if (!hasAxisY)
- missingAxes.add("Y");
- if (!hasAxisZ)
- missingAxes.add("Z");
- if (!hasAxisRX)
- missingAxes.add("Rx");
- if (!hasAxisRY)
- missingAxes.add("Ry");
- if (!hasAxisRZ)
- missingAxes.add("Rz");
- if (!hasAxisSL0)
- missingAxes.add("Slider");
- if (!hasAxisSL1)
- missingAxes.add("Dial/Slider2");
-
- final var missingAxesString = String.join(", ", missingAxes);
- log.log(Level.WARNING, "vJoy device is missing the following axes: " + missingAxesString);
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("MISSING_AXES_DIALOG_TEXT"),
- vJoyDevice.intValue(), missingAxesString),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- if (!vJoy.AcquireVJD(vJoyDevice).booleanValue()) {
- log.log(Level.WARNING, "Could not acquire vJoy device");
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("COULD_NOT_ACQUIRE_VJOY_DEVICE_DIALOG_TEXT"),
- vJoyDevice.intValue()),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- if (!vJoy.ResetVJD(vJoyDevice).booleanValue()) {
- log.log(Level.WARNING, "Could not reset vJoy device");
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("COULD_NOT_RESET_VJOY_DEVICE_DIALOG_TEXT"),
- vJoyDevice.intValue()),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- final var Min = new Memory(LONG.SIZE);
- vJoy.GetVJDAxisMin(vJoyDevice, IVjoyInterface.HID_USAGE_X, Min);
- minAxisValue = Min.getInt(0L);
-
- final var Max = new Memory(LONG.SIZE);
- vJoy.GetVJDAxisMax(vJoyDevice, IVjoyInterface.HID_USAGE_X, Max);
- maxAxisValue = Max.getInt(0L);
-
- final var nButtons = vJoy.GetVJDButtonNumber(vJoyDevice);
- var maxButtonId = -1;
-
- for (final var mode : input.getProfile().getModes())
- for (final var action : mode.getAllActions())
- if (action instanceof final ToButtonAction> toButtonAction) {
- final var buttonId = toButtonAction.getButtonId();
- if (buttonId > maxButtonId)
- maxButtonId = buttonId;
- }
- final var requiredButtons = maxButtonId + 1;
-
- if (nButtons < requiredButtons) {
- log.log(Level.WARNING, "vJoy device has not enough buttons");
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- MessageFormat.format(Main.strings.getString("TOO_FEW_BUTTONS_DIALOG_TEXT"),
- vJoyDevice.intValue(), nButtons, requiredButtons),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
-
- EventQueue.invokeLater(() -> {
- main.setStatusBarText(MessageFormat.format(Main.strings.getString("STATUS_CONNECTED_TO_VJOY_DEVICE"),
- vJoyDevice.intValue()));
- });
-
- if (main.preventPowerSaveMode())
- Kernel32.INSTANCE.SetThreadExecutionState(
- WinBase.ES_CONTINUOUS | WinBase.ES_SYSTEM_REQUIRED | WinBase.ES_DISPLAY_REQUIRED);
-
- input.init();
-
- axisX = new LONG();
- axisXChanged = true;
- axisY = new LONG();
- axisYChanged = true;
- axisZ = new LONG();
- axisZChanged = true;
- axisRX = new LONG();
- axisRXChanged = true;
- axisRY = new LONG();
- axisRYChanged = true;
- axisRZ = new LONG();
- axisRZChanged = true;
- axisS0 = new LONG();
- axisS0Changed = true;
- axisS1 = new LONG();
- axisS1Changed = true;
-
- setnButtons(nButtons);
-
- return true;
- } catch (final UnsatisfiedLinkError e) {
- log.log(Level.SEVERE, e.getMessage(), e);
- EventQueue.invokeLater(() -> {
- GuiUtils.showMessageDialog(main.getFrame(),
- Main.strings.getString("COULD_NOT_LOAD_VJOY_LIBRARY_DIALOG_TEXT"),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
- });
- return false;
- }
- }
-
- boolean readInput() throws IOException {
- if (!Platform.isMac())
- GLFW.glfwPollEvents();
-
- return true;
- }
-
- @Override
- void setnButtons(final int nButtons) {
- super.setnButtons(nButtons);
-
- if (buttons == null || buttons.length != nButtons) {
- buttons = new BOOL[nButtons];
- buttonsChanged = new boolean[nButtons];
- for (var i = 0; i < buttons.length; i++) {
- buttons[i] = new BOOL();
- buttonsChanged[i] = true;
- }
- }
- }
-
- public final void setvJoyDevice(final UINT vJoyDevice) {
- this.vJoyDevice = vJoyDevice;
- }
-
- final void writeOutput() {
- var res = true;
-
- if (axisXChanged) {
- res &= vJoy.SetAxis(axisX, vJoyDevice, IVjoyInterface.HID_USAGE_X).booleanValue();
- axisXChanged = false;
- }
-
- if (axisYChanged) {
- res &= vJoy.SetAxis(axisY, vJoyDevice, IVjoyInterface.HID_USAGE_Y).booleanValue();
- axisYChanged = false;
- }
-
- if (axisZChanged) {
- res &= vJoy.SetAxis(axisZ, vJoyDevice, IVjoyInterface.HID_USAGE_Z).booleanValue();
- axisZChanged = false;
- }
-
- if (axisRXChanged) {
- res &= vJoy.SetAxis(axisRX, vJoyDevice, IVjoyInterface.HID_USAGE_RX).booleanValue();
- axisRXChanged = false;
- }
-
- if (axisRYChanged) {
- res &= vJoy.SetAxis(axisRY, vJoyDevice, IVjoyInterface.HID_USAGE_RY).booleanValue();
- axisRYChanged = false;
- }
-
- if (axisRZChanged) {
- res &= vJoy.SetAxis(axisRZ, vJoyDevice, IVjoyInterface.HID_USAGE_RZ).booleanValue();
- axisRZChanged = false;
- }
-
- if (axisS0Changed) {
- res &= vJoy.SetAxis(axisS0, vJoyDevice, IVjoyInterface.HID_USAGE_SL0).booleanValue();
- axisS0Changed = false;
- }
-
- if (axisS1Changed) {
- res &= vJoy.SetAxis(axisS1, vJoyDevice, IVjoyInterface.HID_USAGE_SL1).booleanValue();
- axisS1Changed = false;
- }
-
- for (var i = 0; i < buttons.length; i++)
- if (buttonsChanged[i]) {
- res &= vJoy.SetBtn(buttons[i], vJoyDevice, new UCHAR(i + 1)).booleanValue();
- buttonsChanged[i] = false;
- }
-
- if (!res) {
- final var confirmDialogTask = new FutureTask<>(() -> JOptionPane.showConfirmDialog(main.getFrame(),
- Main.strings.getString("COULD_NOT_WRITE_TO_VJOY_DEVICE_DIALOG_TEXT"),
- Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.YES_NO_OPTION));
- EventQueue.invokeLater(confirmDialogTask);
- try {
- if (confirmDialogTask.get() == JOptionPane.YES_OPTION)
- restart = true;
- else
- forceStop = true;
- } catch (final InterruptedException e) {
- } catch (final ExecutionException e) {
- throw new RuntimeException(e);
- }
-
- Thread.currentThread().interrupt();
-
- return;
- }
-
- if (cursorDeltaX != 0 || cursorDeltaY != 0) {
- final var input = new INPUT();
- input.type = new DWORD(INPUT.INPUT_MOUSE);
- input.input.setType(MOUSEINPUT.class);
- input.input.mi.dx = new LONG(cursorDeltaX);
- input.input.mi.dy = new LONG(cursorDeltaY);
- input.input.mi.dwFlags = new DWORD(MOUSEEVENTF_MOVE);
-
- User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
- }
-
- newUpMouseButtons.forEach(mouseButton -> doMouseButtonInput(mouseButton, false));
- newDownMouseButtons.forEach(mouseButton -> doMouseButtonInput(mouseButton, true));
- downUpMouseButtons.forEach(mouseButton -> {
- doMouseButtonInput(mouseButton, true);
- doMouseButtonInput(mouseButton, false);
- });
-
- newUpNormalKeys.forEach(code -> doKeyboardInput(code, false));
- newUpModifiers.forEach(code -> doKeyboardInput(code, false));
-
- offLockKeys.forEach(code -> setLockKeyState(code, false));
- onLockKeys.forEach(code -> setLockKeyState(code, true));
-
- newDownModifiers.forEach(code -> doKeyboardInput(code, true));
-
- final var currentTime = System.currentTimeMillis();
- if (currentTime - prevKeyInputTime > input.getProfile().getKeyRepeatInterval()) {
- newDownNormalKeys.forEach(code -> doKeyboardInput(code, true));
-
- prevKeyInputTime = currentTime;
- }
-
- downUpKeyStrokes.forEach(keyStroke -> {
- for (final var code : keyStroke.getModifierCodes())
- doKeyboardInput(code, true);
-
- for (final var code : keyStroke.getKeyCodes()) {
- doKeyboardInput(code, true);
- doKeyboardInput(code, false);
- }
-
- for (final var code : keyStroke.getModifierCodes())
- doKeyboardInput(code, false);
- });
-
- if (scrollClicks != 0) {
- final var input = new INPUT();
- input.type = new DWORD(INPUT.INPUT_MOUSE);
- input.input.setType(MOUSEINPUT.class);
- input.input.mi.mouseData = new DWORD(scrollClicks * WHEEL_DELTA);
- input.input.mi.dwFlags = new DWORD(MOUSEEVENTF_WHEEL);
-
- User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
- }
- }
-}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/ClientOutput.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/ClientRunMode.java
similarity index 79%
rename from src/main/java/de/bwravencl/controllerbuddy/output/ClientOutput.java
rename to src/main/java/de/bwravencl/controllerbuddy/runmode/ClientRunMode.java
index 710ec2b3..dc7749a3 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/output/ClientOutput.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/ClientRunMode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,12 +10,11 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
-package de.bwravencl.controllerbuddy.output;
+package de.bwravencl.controllerbuddy.runmode;
import java.awt.EventQueue;
import java.io.IOException;
@@ -36,29 +35,31 @@
import de.bwravencl.controllerbuddy.gui.Main;
import de.bwravencl.controllerbuddy.input.Input;
import de.bwravencl.controllerbuddy.input.KeyStroke;
+import de.bwravencl.controllerbuddy.input.LockKey;
+import de.bwravencl.controllerbuddy.input.ScanCode;
import de.bwravencl.controllerbuddy.version.VersionUtils;
-public final class ClientOutput extends VJoyOutput {
+public final class ClientRunMode extends OutputRunMode {
private enum ClientState {
Connecting, Connected
}
- private static final Logger log = Logger.getLogger(ClientOutput.class.getName());
+ private static final Logger log = Logger.getLogger(ClientRunMode.class.getName());
public static final String DEFAULT_HOST = "127.0.0.1";
private static final int N_CONNECTION_RETRIES = 10;
private String host = DEFAULT_HOST;
- private int port = ServerOutput.DEFAULT_PORT;
- private int timeout = ServerOutput.DEFAULT_TIMEOUT;
+ private int port = ServerRunMode.DEFAULT_PORT;
+ private int timeout = ServerRunMode.DEFAULT_TIMEOUT;
private ClientState clientState = ClientState.Connecting;
private InetAddress hostAddress;
private DatagramSocket clientSocket;
private final byte[] receiveBuf = new byte[1024];
private long counter = -1;
- public ClientOutput(final Main main, final Input input) {
+ public ClientRunMode(final Main main, final Input input) {
super(main, input);
}
@@ -82,12 +83,12 @@ boolean readInput() throws IOException {
});
final var sb = new StringBuilder();
- sb.append(ServerOutput.PROTOCOL_MESSAGE_CLIENT_HELLO);
- sb.append(ServerOutput.PROTOCOL_MESSAGE_DELIMITER);
+ sb.append(ServerRunMode.PROTOCOL_MESSAGE_CLIENT_HELLO);
+ sb.append(ServerRunMode.PROTOCOL_MESSAGE_DELIMITER);
sb.append(String.valueOf(minAxisValue));
- sb.append(ServerOutput.PROTOCOL_MESSAGE_DELIMITER);
+ sb.append(ServerRunMode.PROTOCOL_MESSAGE_DELIMITER);
sb.append(String.valueOf(maxAxisValue));
- sb.append(ServerOutput.PROTOCOL_MESSAGE_DELIMITER);
+ sb.append(ServerRunMode.PROTOCOL_MESSAGE_DELIMITER);
sb.append(String.valueOf(nButtons));
final var helloBuf = sb.toString().getBytes("ASCII");
@@ -104,8 +105,8 @@ boolean readInput() throws IOException {
final var message = new String(receivePacket.getData(), 0, receivePacket.getLength(),
StandardCharsets.US_ASCII);
- if (message.startsWith(ServerOutput.PROTOCOL_MESSAGE_SERVER_HELLO)) {
- final var messageParts = message.split(ServerOutput.PROTOCOL_MESSAGE_DELIMITER);
+ if (message.startsWith(ServerRunMode.PROTOCOL_MESSAGE_SERVER_HELLO)) {
+ final var messageParts = message.split(ServerRunMode.PROTOCOL_MESSAGE_DELIMITER);
final var serverProtocolVersion = messageParts[1];
final var versionsComparisonResult = VersionUtils.compareVersions(serverProtocolVersion);
if (versionsComparisonResult.isEmpty() || versionsComparisonResult.get() != 0) {
@@ -173,66 +174,38 @@ boolean readInput() throws IOException {
final var message = new String(receivePacket.getData(), 0, receivePacket.getLength(),
StandardCharsets.US_ASCII);
- if (message.startsWith(ServerOutput.PROTOCOL_MESSAGE_UPDATE)) {
- final var messageParts = message.split(ServerOutput.PROTOCOL_MESSAGE_DELIMITER);
+ if (message.startsWith(ServerRunMode.PROTOCOL_MESSAGE_UPDATE)) {
+ final var messageParts = message.split(ServerRunMode.PROTOCOL_MESSAGE_DELIMITER);
final var newCounter = Long.parseLong(messageParts[1]);
if (newCounter > counter) {
final var inputAxisX = Integer.parseInt(messageParts[2]);
- if (axisX.intValue() != inputAxisX) {
- axisX.setValue(inputAxisX);
- axisXChanged = true;
- }
+ axisX.setValue(inputAxisX);
final var inputAxisY = Integer.parseInt(messageParts[3]);
- if (axisY.intValue() != inputAxisY) {
- axisY.setValue(inputAxisY);
- axisYChanged = true;
- }
+ axisY.setValue(inputAxisY);
final var inputAxisZ = Integer.parseInt(messageParts[4]);
- if (axisZ.intValue() != inputAxisZ) {
- axisZ.setValue(inputAxisZ);
- axisZChanged = true;
- }
+ axisZ.setValue(inputAxisZ);
final var inputAxisRX = Integer.parseInt(messageParts[5]);
- if (axisRX.intValue() != inputAxisRX) {
- axisRX.setValue(inputAxisRX);
- axisRXChanged = true;
- }
+ axisRX.setValue(inputAxisRX);
final var inputAxisRY = Integer.parseInt(messageParts[6]);
- if (axisRY.intValue() != inputAxisRY) {
- axisRY.setValue(inputAxisRY);
- axisRYChanged = true;
- }
+ axisRY.setValue(inputAxisRY);
final var inputAxisRZ = Integer.parseInt(messageParts[7]);
- if (axisRZ.intValue() != inputAxisRZ) {
- axisRZ.setValue(inputAxisRZ);
- axisRZChanged = true;
- }
+ axisRZ.setValue(inputAxisRZ);
final var inputAxisS0 = Integer.parseInt(messageParts[8]);
- if (axisS0.intValue() != inputAxisS0) {
- axisS0.setValue(inputAxisS0);
- axisS0Changed = true;
- }
+ axisS0.setValue(inputAxisS0);
final var inputAxisS1 = Integer.parseInt(messageParts[9]);
- if (axisS1.intValue() != inputAxisS1) {
- axisS1.setValue(inputAxisS1);
- axisS1Changed = true;
- }
+ axisS1.setValue(inputAxisS1);
for (var i = 0; i < nButtons; i++) {
- final var b = Boolean.parseBoolean(messageParts[10 + i]);
-
- if (buttons[i].booleanValue() != b) {
- buttons[i].setValue(b ? 1L : 0L);
- buttonsChanged[i] = true;
- }
+ final var buttonDown = Boolean.parseBoolean(messageParts[10 + i]);
+ buttons[i].setValue(buttonDown ? 1 : 0);
}
cursorDeltaX = Integer.parseInt(messageParts[10 + nButtons]);
@@ -253,8 +226,8 @@ boolean readInput() throws IOException {
downUpMouseButtons.add(b);
}
- final var sourceModifiers = new HashSet();
- final var sourceNormalKeys = new HashSet();
+ final var sourceModifiers = new HashSet();
+ final var sourceNormalKeys = new HashSet();
var nDownKeyStrokes = Integer
.parseInt(messageParts[14 + nButtons + nDownMouseButtons + nDownUpMouseButtons]);
for (var i = 1; i <= nDownKeyStrokes; i++) {
@@ -263,7 +236,7 @@ boolean readInput() throws IOException {
for (var j = 1; j <= nDownModifierCodes; j++) {
final var k = Integer.parseInt(
messageParts[14 + nButtons + nDownMouseButtons + nDownUpMouseButtons + i + j]);
- sourceModifiers.add(k);
+ sourceModifiers.add(ScanCode.keyCodeToScanCodeMap.get(k));
}
final var nDownKeyCodes = Integer.parseInt(messageParts[15 + nButtons + nDownMouseButtons
@@ -271,7 +244,7 @@ boolean readInput() throws IOException {
for (var j = 1; j <= nDownKeyCodes; j++) {
final var k = Integer.parseInt(messageParts[15 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownModifierCodes + i + j]);
- sourceNormalKeys.add(k);
+ sourceNormalKeys.add(ScanCode.keyCodeToScanCodeMap.get(k));
}
final var spacing = nDownModifierCodes + nDownKeyCodes + 1;
@@ -289,21 +262,21 @@ boolean readInput() throws IOException {
final var nDownUpModifierCodes = Integer.parseInt(messageParts[15 + nButtons
+ nDownMouseButtons + nDownUpMouseButtons + nDownKeyStrokes + i]);
- final var modifierCodes = new Integer[nDownUpModifierCodes];
+ final var modifierCodes = new ScanCode[nDownUpModifierCodes];
for (var j = 1; j <= nDownUpModifierCodes; j++) {
final var k = Integer.parseInt(messageParts[15 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownKeyStrokes + i + j]);
- modifierCodes[j - 1] = k;
+ modifierCodes[j - 1] = ScanCode.keyCodeToScanCodeMap.get(k);
}
keyStroke.setModifierCodes(modifierCodes);
final var nDownUpKeyCodes = Integer.parseInt(messageParts[16 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownKeyStrokes + nDownUpModifierCodes + i]);
- final var keyCodes = new Integer[nDownUpKeyCodes];
+ final var keyCodes = new ScanCode[nDownUpKeyCodes];
for (var j = 1; j <= nDownUpKeyCodes; j++) {
final var k = Integer.parseInt(messageParts[16 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownKeyStrokes + nDownUpModifierCodes + i + j]);
- keyCodes[j - 1] = k;
+ keyCodes[j - 1] = ScanCode.keyCodeToScanCodeMap.get(k);
}
keyStroke.setKeyCodes(keyCodes);
downUpKeyStrokes.add(keyStroke);
@@ -319,24 +292,30 @@ boolean readInput() throws IOException {
onLockKeys.clear();
final var nOnLockKeys = Integer.parseInt(messageParts[17 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes]);
- for (var i = 1; i <= nOnLockKeys; i++)
- onLockKeys.add(Integer.parseInt(messageParts[17 + nButtons + nDownMouseButtons
- + nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes + i]));
+ for (var i = 1; i <= nOnLockKeys; i++) {
+ final var virtualKeyCode = Integer.parseInt(messageParts[17 + nButtons + nDownMouseButtons
+ + nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes + i]);
+ final var lockKey = LockKey.virtualKeyCodeToLockKeyMap.get(virtualKeyCode);
+ onLockKeys.add(lockKey);
+ }
offLockKeys.clear();
final var nOffLockKeys = Integer.parseInt(messageParts[18 + nButtons + nDownMouseButtons
+ nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes + nOnLockKeys]);
- for (var i = 1; i <= nOffLockKeys; i++)
- offLockKeys.add(Integer.parseInt(messageParts[18 + nButtons + nDownMouseButtons
- + nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes + nOnLockKeys + i]));
+ for (var i = 1; i <= nOffLockKeys; i++) {
+ final var virtualKeyCode = Integer.parseInt(messageParts[18 + nButtons + nDownMouseButtons
+ + nDownUpMouseButtons + nDownKeyStrokes + nDownUpKeyStrokes + nOnLockKeys + i]);
+ final var lockKey = LockKey.virtualKeyCodeToLockKeyMap.get(virtualKeyCode);
+ offLockKeys.add(lockKey);
+ }
counter = newCounter;
retVal = true;
}
}
- if (message.startsWith(ServerOutput.PROTOCOL_MESSAGE_UPDATE_REQUEST_ALIVE)) {
- final var keepAliveBuf = ServerOutput.PROTOCOL_MESSAGE_CLIENT_ALIVE.getBytes("ASCII");
+ if (message.startsWith(ServerRunMode.PROTOCOL_MESSAGE_UPDATE_REQUEST_ALIVE)) {
+ final var keepAliveBuf = ServerRunMode.PROTOCOL_MESSAGE_CLIENT_ALIVE.getBytes("ASCII");
final var keepAlivePacket = new DatagramPacket(keepAliveBuf, keepAliveBuf.length, hostAddress,
port);
clientSocket.send(keepAlivePacket);
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/IVjoyInterface.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/IVjoyInterface.java
similarity index 87%
rename from src/main/java/de/bwravencl/controllerbuddy/output/IVjoyInterface.java
rename to src/main/java/de/bwravencl/controllerbuddy/runmode/IVjoyInterface.java
index ddd84306..b8683f46 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/output/IVjoyInterface.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/IVjoyInterface.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,12 +10,11 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
-package de.bwravencl.controllerbuddy.output;
+package de.bwravencl.controllerbuddy.runmode;
import com.sun.jna.Library;
import com.sun.jna.Pointer;
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/LocalOutput.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/LocalRunMode.java
similarity index 61%
rename from src/main/java/de/bwravencl/controllerbuddy/output/LocalOutput.java
rename to src/main/java/de/bwravencl/controllerbuddy/runmode/LocalRunMode.java
index 0586e741..378d257a 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/output/LocalOutput.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/LocalRunMode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,12 +10,11 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
-package de.bwravencl.controllerbuddy.output;
+package de.bwravencl.controllerbuddy.runmode;
import java.io.IOException;
import java.util.Arrays;
@@ -24,12 +23,13 @@
import de.bwravencl.controllerbuddy.gui.Main;
import de.bwravencl.controllerbuddy.input.Input;
+import de.bwravencl.controllerbuddy.input.ScanCode;
-public final class LocalOutput extends VJoyOutput {
+public final class LocalRunMode extends OutputRunMode {
- private static final Logger log = Logger.getLogger(LocalOutput.class.getName());
+ private static final Logger log = Logger.getLogger(LocalRunMode.class.getName());
- public LocalOutput(final Main main, final Input input) {
+ public LocalRunMode(final Main main, final Input input) {
super(main, input);
}
@@ -54,59 +54,32 @@ boolean readInput() {
final var inputAxes = input.getAxes();
final var inputAxisX = inputAxes.get(Input.VirtualAxis.X);
- if (axisX.intValue() != inputAxisX) {
- axisX.setValue(inputAxisX);
- axisXChanged = true;
- }
+ axisX.setValue(inputAxisX);
final var inputAxisY = inputAxes.get(Input.VirtualAxis.Y);
- if (axisY.intValue() != inputAxisY) {
- axisY.setValue(inputAxisY);
- axisYChanged = true;
- }
+ axisY.setValue(inputAxisY);
final var inputAxisZ = inputAxes.get(Input.VirtualAxis.Z);
- if (axisZ.intValue() != inputAxisZ) {
- axisZ.setValue(inputAxisZ);
- axisZChanged = true;
- }
+ axisZ.setValue(inputAxisZ);
final var inputAxisRX = inputAxes.get(Input.VirtualAxis.RX);
- if (axisRX.intValue() != inputAxisRX) {
- axisRX.setValue(inputAxisRX);
- axisRXChanged = true;
- }
+ axisRX.setValue(inputAxisRX);
final var inputAxisRY = inputAxes.get(Input.VirtualAxis.RY);
- if (axisRY.intValue() != inputAxisRY) {
- axisRY.setValue(inputAxisRY);
- axisRYChanged = true;
- }
+ axisRY.setValue(inputAxisRY);
final var inputAxisRZ = inputAxes.get(Input.VirtualAxis.RZ);
- if (axisRZ.intValue() != inputAxisRZ) {
- axisRZ.setValue(inputAxisRZ);
- axisRZChanged = true;
- }
+ axisRZ.setValue(inputAxisRZ);
final var inputAxisS0 = inputAxes.get(Input.VirtualAxis.S0);
- if (axisS0.intValue() != inputAxisS0) {
- axisS0.setValue(inputAxisS0);
- axisS0Changed = true;
- }
+ axisS0.setValue(inputAxisS0);
final var inputAxisS1 = inputAxes.get(Input.VirtualAxis.S1);
- if (axisS1.intValue() != inputAxisS1) {
- axisS1.setValue(inputAxisS1);
- axisS1Changed = true;
- }
+ axisS1.setValue(inputAxisS1);
final var inputButtons = input.getButtons();
for (var i = 0; i < nButtons; i++) {
- if (buttons[i].booleanValue() != inputButtons[i]) {
- buttons[i].setValue(inputButtons[i] ? 1L : 0L);
- buttonsChanged[i] = true;
- }
+ buttons[i].setValue(inputButtons[i] ? 1 : 0);
inputButtons[i] = false;
}
@@ -126,14 +99,15 @@ boolean readInput() {
downUpMouseButtons.addAll(inputDownUpMouseButtons);
inputDownUpMouseButtons.clear();
- final var sourceModifiers = new HashSet();
- final var sourceNormalKeys = new HashSet();
+ final var sourceModifiersCodes = new HashSet();
+ final var sourceKeyCodes = new HashSet();
input.getDownKeyStrokes().forEach(keyStroke -> {
- sourceModifiers.addAll(Arrays.asList(keyStroke.getModifierCodes()));
- sourceNormalKeys.addAll(Arrays.asList(keyStroke.getKeyCodes()));
+ sourceModifiersCodes.addAll(Arrays.asList(keyStroke.getModifierCodes()));
+ sourceKeyCodes.addAll(Arrays.asList(keyStroke.getKeyCodes()));
});
- updateOutputSets(sourceModifiers, oldDownModifiers, newUpModifiers, newDownModifiers, false);
- updateOutputSets(sourceNormalKeys, oldDownNormalKeys, newUpNormalKeys, newDownNormalKeys, true);
+
+ updateOutputSets(sourceModifiersCodes, oldDownModifiers, newUpModifiers, newDownModifiers, false);
+ updateOutputSets(sourceKeyCodes, oldDownNormalKeys, newUpNormalKeys, newDownNormalKeys, true);
downUpKeyStrokes.clear();
final var inputDownUpKeyStrokes = input.getDownUpKeyStrokes();
diff --git a/src/main/java/de/bwravencl/controllerbuddy/runmode/OutputRunMode.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/OutputRunMode.java
new file mode 100644
index 00000000..900c4870
--- /dev/null
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/OutputRunMode.java
@@ -0,0 +1,923 @@
+/* Copyright (C) 2020 Matteo Hausner
+ *
+ * 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 .
+ */
+
+package de.bwravencl.controllerbuddy.runmode;
+
+import java.awt.EventQueue;
+import java.awt.Toolkit;
+import java.io.File;
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.FutureTask;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.swing.JOptionPane;
+
+import org.lwjgl.glfw.GLFW;
+
+import com.sun.jna.IntegerType;
+import com.sun.jna.Memory;
+import com.sun.jna.Native;
+import com.sun.jna.Platform;
+import com.sun.jna.Pointer;
+import com.sun.jna.platform.unix.X11;
+import com.sun.jna.platform.win32.Advapi32Util;
+import com.sun.jna.platform.win32.Kernel32;
+import com.sun.jna.platform.win32.User32;
+import com.sun.jna.platform.win32.WinBase;
+import com.sun.jna.platform.win32.WinDef;
+import com.sun.jna.platform.win32.WinDef.BOOL;
+import com.sun.jna.platform.win32.WinDef.DWORD;
+import com.sun.jna.platform.win32.WinDef.LONG;
+import com.sun.jna.platform.win32.WinDef.UCHAR;
+import com.sun.jna.platform.win32.WinDef.UINT;
+import com.sun.jna.platform.win32.WinDef.WORD;
+import com.sun.jna.platform.win32.WinReg;
+import com.sun.jna.platform.win32.WinUser.INPUT;
+import com.sun.jna.platform.win32.WinUser.KEYBDINPUT;
+import com.sun.jna.platform.win32.WinUser.MOUSEINPUT;
+
+import de.bwravencl.controllerbuddy.gui.GuiUtils;
+import de.bwravencl.controllerbuddy.gui.Main;
+import de.bwravencl.controllerbuddy.input.Input;
+import de.bwravencl.controllerbuddy.input.KeyStroke;
+import de.bwravencl.controllerbuddy.input.LockKey;
+import de.bwravencl.controllerbuddy.input.ScanCode;
+import de.bwravencl.controllerbuddy.input.action.ToButtonAction;
+import uk.co.bithatch.linuxio.EventCode;
+import uk.co.bithatch.linuxio.InputDevice;
+import uk.co.bithatch.linuxio.InputDevice.Event;
+
+public abstract class OutputRunMode extends RunMode {
+
+ static class AxisValue extends DeviceValue {
+
+ private AxisValue() {
+ super(LONG.class);
+ }
+ }
+
+ static class ButtonValue extends DeviceValue {
+
+ private ButtonValue() {
+ super(BOOL.class);
+ }
+ }
+
+ private static abstract class DeviceValue {
+
+ private T vJoyValue;
+ private int uinputValue;
+ private boolean changed;
+
+ private DeviceValue(final Class windowsClass) {
+ if (Main.isWindows)
+ try {
+ vJoyValue = windowsClass.getDeclaredConstructor().newInstance();
+ } catch (InstantiationException | IllegalAccessException | InvocationTargetException
+ | NoSuchMethodException e) {
+ throw new IllegalArgumentException(e);
+ }
+
+ changed = true;
+ }
+
+ int getUinputValue() {
+ return uinputValue;
+ }
+
+ T getvJoyValue() {
+ return vJoyValue;
+ }
+
+ boolean isChanged() {
+ return changed;
+ }
+
+ void setUinputValue(final int uinputValue) {
+ this.uinputValue = uinputValue;
+ }
+
+ void setUnchanged() {
+ changed = false;
+ }
+
+ void setValue(final int value) {
+ if (Main.isWindows) {
+ changed = vJoyValue.intValue() != value;
+ vJoyValue.setValue(value);
+ } else if (Main.isLinux) {
+ changed = uinputValue != value;
+ uinputValue = value;
+ } else
+ throw new UnsupportedOperationException();
+ }
+
+ void setvJoyValue(final T vJoyValue) {
+ this.vJoyValue = vJoyValue;
+ }
+ }
+
+ private static final Logger log = Logger.getLogger(OutputRunMode.class.getName());
+
+ public static final int VJOY_DEFAULT_DEVICE = 1;
+ private static final String VJOY_LIBRARY_NAME = "vJoyInterface";
+ public static final String VJOY_LIBRARY_FILENAME = VJOY_LIBRARY_NAME + ".dll";
+ private static final String VJOY_UNINSTALL_REGISTRY_KEY = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{8E31F76F-74C3-47F1-9550-E041EEDC5FBB}_is1";
+ private static final String VJOY_INSTALL_LOCATION_REGISTRY_VALUE = "InstallLocation";
+ private static IVjoyInterface vJoy;
+
+ private static final long MOUSEEVENTF_MOVE = 0x0001L;
+ private static final long MOUSEEVENTF_LEFTDOWN = 0x0002L;
+ private static final long MOUSEEVENTF_LEFTUP = 0x0004L;
+ private static final long MOUSEEVENTF_RIGHTDOWN = 0x0008L;
+ private static final long MOUSEEVENTF_RIGHTUP = 0x0010L;
+ private static final long MOUSEEVENTF_MIDDLEDOWN = 0x0020L;
+ private static final long MOUSEEVENTF_MIDDLEUP = 0x0040L;
+ private static final long MOUSEEVENTF_WHEEL = 0x0800L;
+ private static final long WHEEL_DELTA = 120L;
+
+ private static final int UINPUT_VENDOR_CODE = 0x1234;
+ private static final int UINPUT_PRODUCT_CODE = 0x5678;
+
+ private static EventCode[] UINPUT_JOYSTICK_BUTTON_EVENT_CODES = { EventCode.BTN_TRIGGER, EventCode.BTN_THUMB,
+ EventCode.BTN_THUMB2, EventCode.BTN_TOP, EventCode.BTN_TOP2, EventCode.BTN_PINKIE, EventCode.BTN_BASE,
+ EventCode.BTN_BASE2, EventCode.BTN_BASE3, EventCode.BTN_BASE4, EventCode.BTN_BASE5, EventCode.BTN_BASE6,
+ EventCode.BTN_DEAD, EventCode.BTN_TRIGGER_HAPPY1, EventCode.BTN_TRIGGER_HAPPY2,
+ EventCode.BTN_TRIGGER_HAPPY3, EventCode.BTN_TRIGGER_HAPPY4, EventCode.BTN_TRIGGER_HAPPY5,
+ EventCode.BTN_TRIGGER_HAPPY6, EventCode.BTN_TRIGGER_HAPPY7, EventCode.BTN_TRIGGER_HAPPY8,
+ EventCode.BTN_TRIGGER_HAPPY9, EventCode.BTN_TRIGGER_HAPPY10, EventCode.BTN_TRIGGER_HAPPY11,
+ EventCode.BTN_TRIGGER_HAPPY12, EventCode.BTN_TRIGGER_HAPPY13, EventCode.BTN_TRIGGER_HAPPY14,
+ EventCode.BTN_TRIGGER_HAPPY15, EventCode.BTN_TRIGGER_HAPPY16, EventCode.BTN_TRIGGER_HAPPY17,
+ EventCode.BTN_TRIGGER_HAPPY18, EventCode.BTN_TRIGGER_HAPPY19, EventCode.BTN_TRIGGER_HAPPY20,
+ EventCode.BTN_TRIGGER_HAPPY21, EventCode.BTN_TRIGGER_HAPPY22, EventCode.BTN_TRIGGER_HAPPY23,
+ EventCode.BTN_TRIGGER_HAPPY24, EventCode.BTN_TRIGGER_HAPPY25, EventCode.BTN_TRIGGER_HAPPY26,
+ EventCode.BTN_TRIGGER_HAPPY27, EventCode.BTN_TRIGGER_HAPPY28, EventCode.BTN_TRIGGER_HAPPY29,
+ EventCode.BTN_TRIGGER_HAPPY30, EventCode.BTN_TRIGGER_HAPPY31, EventCode.BTN_TRIGGER_HAPPY32,
+ EventCode.BTN_TRIGGER_HAPPY33, EventCode.BTN_TRIGGER_HAPPY34, EventCode.BTN_TRIGGER_HAPPY35,
+ EventCode.BTN_TRIGGER_HAPPY36, EventCode.BTN_TRIGGER_HAPPY37, EventCode.BTN_TRIGGER_HAPPY38,
+ EventCode.BTN_TRIGGER_HAPPY39, EventCode.BTN_TRIGGER_HAPPY40 };
+
+ private static void closeInputDevice(final InputDevice inputDevice) {
+ if (inputDevice != null && inputDevice.isOpen())
+ try {
+ inputDevice.close();
+ } catch (final IOException e) {
+ log.log(Level.WARNING, e.getMessage(), e);
+ }
+ }
+
+ public static String getDefaultInstallationPath() {
+ try {
+ return Advapi32Util.registryGetStringValue(WinReg.HKEY_LOCAL_MACHINE, VJOY_UNINSTALL_REGISTRY_KEY,
+ VJOY_INSTALL_LOCATION_REGISTRY_VALUE);
+ } catch (final Throwable t) {
+ final var defaultPath = System.getenv("ProgramFiles") + File.separator + "vJoy";
+ log.log(Level.WARNING, "Could not retrieve vJoy installation path from registry", t);
+
+ return defaultPath;
+ }
+ }
+
+ public static String getVJoyArchFolderName() {
+ return Platform.is64Bit() ? "x64" : "x86";
+ }
+
+ private static void setLockKeyState(final LockKey lockKey, final boolean on) {
+ if (Main.isWindows) {
+ final var virtualKeyCode = lockKey.virtualKeyCode();
+
+ final var state = (User32WithGetKeyState.INSTANCE.GetKeyState(virtualKeyCode) & 0x1) != 0;
+ if (state != on) {
+ final var toolkit = Toolkit.getDefaultToolkit();
+
+ toolkit.setLockingKeyState(virtualKeyCode, true);
+ toolkit.setLockingKeyState(virtualKeyCode, false);
+ }
+ } else if (Main.isLinux) {
+ final var display = X11.INSTANCE.XOpenDisplay(null);
+ if (display.getPointer() == Pointer.NULL)
+ throw new RuntimeException("XOpenDisplay() unsucessful");
+
+ try {
+ final var state_return = new Memory(Integer.SIZE);
+ if (X11WithLockKeyFunctions.INSTANCE.XkbGetIndicatorState(display,
+ X11WithLockKeyFunctions.XkbUseCoreKbd, state_return) != X11.Success)
+ throw new RuntimeException("XkbGetIndicatorState() unsucessful");
+
+ final var state = (state_return.getInt(0L) & lockKey.mask()) != 0;
+ if (state != on) {
+ final var modifierMask = X11WithLockKeyFunctions.INSTANCE.XkbKeysymToModifiers(display,
+ lockKey.keySym());
+ if (modifierMask == 0)
+ throw new RuntimeException("XkbKeysymToModifiers() unsucessful");
+
+ if (!X11WithLockKeyFunctions.INSTANCE.XkbLockModifiers(display,
+ X11WithLockKeyFunctions.XkbUseCoreKbd, modifierMask, on ? modifierMask : 0))
+ throw new RuntimeException("XkbLockModifiers() unsucessful");
+ }
+ } finally {
+ X11.INSTANCE.XCloseDisplay(display);
+ }
+ } else
+ throw new UnsupportedOperationException();
+ }
+
+ private static void setVJoy(final IVjoyInterface vJoy) {
+ OutputRunMode.vJoy = vJoy;
+ }
+
+ static void updateOutputSets(final Set sourceSet, final Set oldDownSet, final Set newUpSet,
+ final Set newDownSet, final boolean keepStillDown) {
+ final var stillDownSet = new HashSet();
+
+ newUpSet.clear();
+
+ for (final var oldCode : oldDownSet) {
+ var stillDown = false;
+
+ for (final var newCode : sourceSet)
+ if (newCode.equals(oldCode)) {
+ stillDown = true;
+ break;
+ }
+
+ if (stillDown)
+ stillDownSet.add(oldCode);
+ else
+ newUpSet.add(oldCode);
+ }
+
+ newDownSet.clear();
+
+ if (keepStillDown)
+ newDownSet.addAll(stillDownSet);
+
+ for (final var newCode : sourceSet) {
+ var alreadyDown = false;
+
+ for (final var oldCode : oldDownSet)
+ if (oldCode.equals(newCode)) {
+ alreadyDown = true;
+ break;
+ }
+
+ if (!alreadyDown)
+ newDownSet.add(newCode);
+ }
+
+ oldDownSet.clear();
+ oldDownSet.addAll(stillDownSet);
+ oldDownSet.addAll(newDownSet);
+ }
+
+ private boolean restart;
+ boolean forceStop;
+ AxisValue axisX;
+ AxisValue axisY;
+ AxisValue axisZ;
+ AxisValue axisRX;
+ AxisValue axisRY;
+ AxisValue axisRZ;
+ AxisValue axisS0;
+ AxisValue axisS1;
+ AxisValue axisS1Changed;
+ ButtonValue[] buttons;
+ int cursorDeltaX;
+ int cursorDeltaY;
+ int scrollClicks;
+ private long prevKeyInputTime;
+ final Set oldDownMouseButtons = new HashSet<>();
+ final Set newUpMouseButtons = new HashSet<>();
+ final Set newDownMouseButtons = new HashSet<>();
+ final Set downUpMouseButtons = new HashSet<>();
+ final Set oldDownModifiers = new HashSet<>();
+ final Set newUpModifiers = new HashSet<>();
+ final Set newDownModifiers = new HashSet<>();
+ final Set oldDownNormalKeys = new HashSet<>();
+ final Set newUpNormalKeys = new HashSet<>();
+ final Set newDownNormalKeys = new HashSet<>();
+ final Set onLockKeys = new HashSet<>();
+ final Set offLockKeys = new HashSet<>();
+
+ final Set downUpKeyStrokes = new HashSet<>();
+
+ private UINT vJoyDevice;
+ private InputDevice joystickInputDevice;
+ private InputDevice mouseInputDevice;
+
+ private InputDevice keyboardInputDevice;
+
+ OutputRunMode(final Main main, final Input input) {
+ super(main, input);
+
+ if (Main.isWindows)
+ vJoyDevice = new UINT(VJOY_DEFAULT_DEVICE);
+ }
+
+ final void deInit() {
+ input.reset();
+
+ if (Main.isWindows && main.preventPowerSaveMode())
+ Kernel32.INSTANCE.SetThreadExecutionState(WinBase.ES_CONTINUOUS);
+
+ if (Main.isWindows && vJoy != null) {
+ vJoy.ResetVJD(vJoyDevice);
+ vJoy.RelinquishVJD(vJoyDevice);
+
+ EventQueue.invokeLater(() -> {
+ main.setStatusBarText(MessageFormat
+ .format(Main.strings.getString("STATUS_DISCONNECTED_FROM_VJOY_DEVICE"), vJoyDevice.intValue()));
+ });
+ } else if (Main.isLinux) {
+ closeInputDevice(joystickInputDevice);
+ closeInputDevice(mouseInputDevice);
+ closeInputDevice(keyboardInputDevice);
+
+ EventQueue.invokeLater(() -> {
+ main.setStatusBarText(Main.strings.getString("STATUS_DISCONNECTED_FROM_UINPUT_DEVICES"));
+ });
+ }
+
+ try {
+ for (final var mouseButton : oldDownMouseButtons)
+ doMouseButtonInput(mouseButton, false);
+ } catch (final IOException e) {
+ log.log(Level.WARNING, e.getMessage(), e);
+ }
+
+ try {
+ for (final var scanCode : oldDownModifiers)
+ doKeyboardInput(scanCode, false);
+ } catch (final IOException e) {
+ log.log(Level.WARNING, e.getMessage(), e);
+ }
+
+ EventQueue.invokeLater(() -> {
+ if (forceStop || restart)
+ main.stopAll(false, !restart, true);
+ if (restart)
+ main.restartLast();
+ });
+ }
+
+ private void doKeyboardInput(final ScanCode scanCode, final boolean down) throws IOException {
+ if (Main.isWindows) {
+ final var input = new INPUT();
+ input.type = new DWORD(INPUT.INPUT_KEYBOARD);
+ input.input.setType(KEYBDINPUT.class);
+ input.input.ki.wScan = new WORD(scanCode.keyCode());
+ var flags = (down ? 0 : KEYBDINPUT.KEYEVENTF_KEYUP) | KEYBDINPUT.KEYEVENTF_SCANCODE;
+ if (ScanCode.extendedKeyScanCodesSet.contains(scanCode.keyCode()))
+ flags |= KEYBDINPUT.KEYEVENTF_EXTENDEDKEY;
+ input.input.ki.dwFlags = new DWORD(flags);
+
+ User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
+ } else if (Main.isLinux)
+ keyboardInputDevice.emit(new Event(scanCode.eventCode(), down ? 1 : 0));
+ else
+ throw new UnsupportedOperationException();
+ }
+
+ private void doMouseButtonInput(final int button, final boolean down) throws IOException {
+ if (Main.isWindows) {
+ final var input = new INPUT();
+ input.type = new DWORD(INPUT.INPUT_MOUSE);
+ input.input.setType(MOUSEINPUT.class);
+
+ switch (button) {
+ case 1 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_LEFTDOWN) : new DWORD(MOUSEEVENTF_LEFTUP);
+ case 2 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_RIGHTDOWN) : new DWORD(MOUSEEVENTF_RIGHTUP);
+ case 3 -> input.input.mi.dwFlags = down ? new DWORD(MOUSEEVENTF_MIDDLEDOWN)
+ : new DWORD(MOUSEEVENTF_MIDDLEUP);
+ default -> throw new IllegalArgumentException();
+ }
+
+ User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
+ } else if (Main.isLinux) {
+ final var eventCode = switch (button) {
+ case 1 -> EventCode.BTN_LEFT;
+ case 2 -> EventCode.BTN_RIGHT;
+ case 3 -> EventCode.BTN_MIDDLE;
+ default -> throw new IllegalArgumentException("Unexpected value: " + button);
+ };
+
+ mouseInputDevice.emit(new Event(eventCode, down ? 1 : 0));
+ } else
+ throw new UnsupportedOperationException();
+ }
+
+ private boolean enoughButtons(final int nButtons) {
+ var maxButtonId = -1;
+ for (final var mode : input.getProfile().getModes())
+ for (final var action : mode.getAllActions())
+ if (action instanceof final ToButtonAction> toButtonAction) {
+ final var buttonId = toButtonAction.getButtonId();
+ if (buttonId > maxButtonId)
+ maxButtonId = buttonId;
+ }
+ final var requiredButtons = maxButtonId + 1;
+
+ if (nButtons < requiredButtons) {
+ if (Main.isWindows) {
+ log.log(Level.WARNING, "vJoy device has not enough buttons");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("TOO_FEW_VJOY_BUTTONS_DIALOG_TEXT"),
+ vJoyDevice.intValue(), nButtons, requiredButtons),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ } else if (Main.isLinux) {
+ log.log(Level.WARNING, "uinput device has not enough buttons");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("TOO_FEW_UINPUT_BUTTONS_DIALOG_TEXT"), nButtons,
+ requiredButtons),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ } else
+ throw new UnsupportedOperationException();
+
+ return false;
+ }
+
+ return true;
+ }
+
+ final boolean init() {
+ int nButtons;
+ if (Main.isWindows)
+ try {
+ final var vJoyPath = main.getPreferences().get(Main.PREFERENCES_VJOY_DIRECTORY,
+ getDefaultInstallationPath());
+ final var libraryPath = new File(vJoyPath, getVJoyArchFolderName()).getAbsolutePath();
+
+ log.log(Level.INFO, "Using vJoy library path: " + libraryPath);
+ System.setProperty("jna.library.path", libraryPath);
+
+ setVJoy(Native.load(VJOY_LIBRARY_NAME, IVjoyInterface.class));
+
+ if (!vJoy.vJoyEnabled().booleanValue()) {
+ log.log(Level.WARNING, "vJoy driver is not enabled");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ Main.strings.getString("VJOY_DRIVER_NOT_ENABLED_DIALOG_TEXT"),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ final var dllVersion = new Memory(WinDef.WORD.SIZE);
+ final var drvVersion = new Memory(WinDef.WORD.SIZE);
+ if (!vJoy.DriverMatch(dllVersion, drvVersion).booleanValue()) {
+ log.log(Level.WARNING, "vJoy DLL version " + dllVersion.toString()
+ + " does not match driver version " + drvVersion.toString());
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("VJOY_VERSION_MISMATCH_DIALOG_TEXT"),
+ dllVersion.getShort(0L), drvVersion.getShort(0L)),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ log.log(Level.INFO, "Using vJoy device: " + vJoyDevice.toString());
+
+ if (vJoy.GetVJDStatus(vJoyDevice) != IVjoyInterface.VJD_STAT_FREE) {
+ log.log(Level.WARNING, "vJoy device is not available");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("INVALID_VJOY_DEVICE_STATUS_DIALOG_TEXT"),
+ vJoyDevice.intValue()),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ final var hasAxisX = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_X).booleanValue();
+ final var hasAxisY = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_Y).booleanValue();
+ final var hasAxisZ = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_Z).booleanValue();
+ final var hasAxisRX = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RX).booleanValue();
+ final var hasAxisRY = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RY).booleanValue();
+ final var hasAxisRZ = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_RZ).booleanValue();
+ final var hasAxisSL0 = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_SL0).booleanValue();
+ final var hasAxisSL1 = vJoy.GetVJDAxisExist(vJoyDevice, IVjoyInterface.HID_USAGE_SL1).booleanValue();
+ if (!hasAxisX || !hasAxisY || !hasAxisZ || !hasAxisRX || !hasAxisRY || !hasAxisRZ || !hasAxisSL0
+ || !hasAxisSL1) {
+ final var missingAxes = new ArrayList();
+ if (!hasAxisX)
+ missingAxes.add("X");
+ if (!hasAxisY)
+ missingAxes.add("Y");
+ if (!hasAxisZ)
+ missingAxes.add("Z");
+ if (!hasAxisRX)
+ missingAxes.add("Rx");
+ if (!hasAxisRY)
+ missingAxes.add("Ry");
+ if (!hasAxisRZ)
+ missingAxes.add("Rz");
+ if (!hasAxisSL0)
+ missingAxes.add("Slider");
+ if (!hasAxisSL1)
+ missingAxes.add("Dial/Slider2");
+
+ final var missingAxesString = String.join(", ", missingAxes);
+ log.log(Level.WARNING, "vJoy device is missing the following axes: " + missingAxesString);
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("MISSING_AXES_DIALOG_TEXT"),
+ vJoyDevice.intValue(), missingAxesString),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ if (!vJoy.AcquireVJD(vJoyDevice).booleanValue()) {
+ log.log(Level.WARNING, "Could not acquire vJoy device");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(
+ Main.strings.getString("COULD_NOT_ACQUIRE_VJOY_DEVICE_DIALOG_TEXT"),
+ vJoyDevice.intValue()),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ if (!vJoy.ResetVJD(vJoyDevice).booleanValue()) {
+ log.log(Level.WARNING, "Could not reset vJoy device");
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ MessageFormat.format(Main.strings.getString("COULD_NOT_RESET_VJOY_DEVICE_DIALOG_TEXT"),
+ vJoyDevice.intValue()),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+
+ final var Min = new Memory(LONG.SIZE);
+ vJoy.GetVJDAxisMin(vJoyDevice, IVjoyInterface.HID_USAGE_X, Min);
+ minAxisValue = Min.getInt(0L);
+
+ final var Max = new Memory(LONG.SIZE);
+ vJoy.GetVJDAxisMax(vJoyDevice, IVjoyInterface.HID_USAGE_X, Max);
+ maxAxisValue = Max.getInt(0L);
+
+ nButtons = vJoy.GetVJDButtonNumber(vJoyDevice);
+ if (!enoughButtons(nButtons))
+ return false;
+
+ EventQueue.invokeLater(() -> {
+ main.setStatusBarText(MessageFormat
+ .format(Main.strings.getString("STATUS_CONNECTED_TO_VJOY_DEVICE"), vJoyDevice.intValue()));
+ });
+
+ if (main.preventPowerSaveMode())
+ Kernel32.INSTANCE.SetThreadExecutionState(
+ WinBase.ES_CONTINUOUS | WinBase.ES_SYSTEM_REQUIRED | WinBase.ES_DISPLAY_REQUIRED);
+ } catch (final UnsatisfiedLinkError e) {
+ log.log(Level.SEVERE, e.getMessage(), e);
+ if (Main.isWindows)
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ Main.strings.getString("COULD_NOT_LOAD_VJOY_LIBRARY_DIALOG_TEXT"),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+
+ return false;
+ }
+ else if (Main.isLinux) {
+ nButtons = UINPUT_JOYSTICK_BUTTON_EVENT_CODES.length;
+ if (!enoughButtons(nButtons))
+ return false;
+
+ final var applicationName = Main.strings.getString("APPLICATION_NAME");
+
+ try {
+ joystickInputDevice = new InputDevice(applicationName + " Joystick", UINPUT_VENDOR_CODE,
+ UINPUT_PRODUCT_CODE);
+ joystickInputDevice.addCapability(EventCode.ABS_X, EventCode.ABS_Y, EventCode.ABS_Z, EventCode.ABS_RX,
+ EventCode.ABS_RY, EventCode.ABS_RZ, EventCode.ABS_THROTTLE, EventCode.ABS_RUDDER);
+ joystickInputDevice.addCapability(UINPUT_JOYSTICK_BUTTON_EVENT_CODES);
+ joystickInputDevice.open();
+ log.log(Level.INFO, "Opened UINPUT joystick device: " + joystickInputDevice.toString());
+
+ minAxisValue = Short.MIN_VALUE;
+ maxAxisValue = Short.MAX_VALUE;
+
+ mouseInputDevice = new InputDevice(applicationName + " Mouse", UINPUT_VENDOR_CODE, UINPUT_PRODUCT_CODE);
+ mouseInputDevice.addCapability(EventCode.BTN_LEFT, EventCode.BTN_RIGHT, EventCode.BTN_MIDDLE,
+ EventCode.REL_X, EventCode.REL_Y, EventCode.REL_WHEEL);
+ mouseInputDevice.open();
+ log.log(Level.INFO, "Opened UINPUT mouse device: " + mouseInputDevice.toString());
+
+ keyboardInputDevice = new InputDevice(applicationName + " Keyboard", UINPUT_VENDOR_CODE,
+ UINPUT_PRODUCT_CODE);
+ for (final var eventCode : EventCode.values())
+ if (eventCode.isKey())
+ keyboardInputDevice.addCapability(eventCode);
+ keyboardInputDevice.open();
+ log.log(Level.INFO, "Opened UINPUT keyboard device: " + keyboardInputDevice.toString());
+
+ EventQueue.invokeLater(() -> {
+ main.setStatusBarText(Main.strings.getString("STATUS_CONNECTED_TO_UINPUT_DEVICES"));
+ });
+ } catch (final Throwable t) {
+ log.log(Level.WARNING, t.getMessage(), t);
+
+ EventQueue.invokeLater(() -> {
+ GuiUtils.showMessageDialog(main.getFrame(),
+ Main.strings.getString("COULD_NOT_OPEN_UINPUT_DEVICE_DIALOG_TEXT"),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.ERROR_MESSAGE);
+ });
+ return false;
+ }
+ } else
+ throw new UnsupportedOperationException();
+
+ input.init();
+
+ axisX = new AxisValue();
+ axisY = new AxisValue();
+ axisZ = new AxisValue();
+ axisRX = new AxisValue();
+ axisRY = new AxisValue();
+ axisRZ = new AxisValue();
+ axisS0 = new AxisValue();
+ axisS1 = new AxisValue();
+
+ setnButtons(nButtons);
+
+ return true;
+ }
+
+ boolean readInput() throws IOException {
+ if (!Platform.isMac())
+ GLFW.glfwPollEvents();
+
+ return true;
+ }
+
+ @Override
+ void setnButtons(final int nButtons) {
+ super.setnButtons(nButtons);
+
+ if (buttons == null || buttons.length != nButtons) {
+ buttons = new ButtonValue[nButtons];
+ for (var i = 0; i < buttons.length; i++)
+ buttons[i] = new ButtonValue();
+ }
+ }
+
+ public final void setvJoyDevice(final UINT vJoyDevice) {
+ this.vJoyDevice = vJoyDevice;
+ }
+
+ final void writeOutput() {
+ var writeSucessful = true;
+
+ try {
+ if (axisX.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisX.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_X)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_X, axisX.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisX.setUnchanged();
+ }
+
+ if (axisY.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisY.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_Y)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_Y, axisY.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisY.setUnchanged();
+ }
+
+ if (axisZ.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisZ.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_Z)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_Z, axisZ.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisZ.setUnchanged();
+ }
+
+ if (axisRX.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisRX.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_RX)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_RX, axisRX.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisRX.setUnchanged();
+ }
+
+ if (axisRY.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisRY.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_RY)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_RY, axisRY.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisRY.setUnchanged();
+ }
+
+ if (axisRZ.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisRZ.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_RZ)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_RZ, axisRZ.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisRZ.setUnchanged();
+ }
+
+ if (axisS0.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisS0.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_SL0)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_THROTTLE, axisS0.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisS0.setUnchanged();
+ }
+
+ if (axisS1.isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetAxis(axisS1.getvJoyValue(), vJoyDevice, IVjoyInterface.HID_USAGE_SL1)
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice.emit(new Event(EventCode.ABS_RUDDER, axisS1.getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ axisS1.setUnchanged();
+ }
+
+ for (var i = 0; i < buttons.length; i++)
+ if (buttons[i].isChanged()) {
+ if (Main.isWindows)
+ writeSucessful &= vJoy.SetBtn(buttons[i].getvJoyValue(), vJoyDevice, new UCHAR(i + 1))
+ .booleanValue();
+ else if (Main.isLinux)
+ joystickInputDevice
+ .emit(new Event(UINPUT_JOYSTICK_BUTTON_EVENT_CODES[i], buttons[i].getUinputValue()));
+ else
+ throw new UnsupportedOperationException();
+
+ buttons[i].setUnchanged();
+ }
+
+ final var moveCursorOnXAxis = cursorDeltaX != 0;
+ final var moveCursorOnYAxis = cursorDeltaY != 0;
+ if (moveCursorOnXAxis || moveCursorOnYAxis)
+ if (Main.isWindows) {
+ final var input = new INPUT();
+ input.type = new DWORD(INPUT.INPUT_MOUSE);
+ input.input.setType(MOUSEINPUT.class);
+ input.input.mi.dx = new LONG(cursorDeltaX);
+ input.input.mi.dy = new LONG(cursorDeltaY);
+ input.input.mi.dwFlags = new DWORD(MOUSEEVENTF_MOVE);
+
+ User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
+ } else if (Main.isLinux) {
+ if (moveCursorOnXAxis)
+ mouseInputDevice.emit(new Event(EventCode.REL_X, cursorDeltaX));
+ if (moveCursorOnYAxis)
+ mouseInputDevice.emit(new Event(EventCode.REL_Y, cursorDeltaY));
+ mouseInputDevice.syn();
+ } else
+ throw new UnsupportedOperationException();
+
+ for (final var mouseButton : newUpMouseButtons)
+ doMouseButtonInput(mouseButton, false);
+
+ for (final var mouseButton : newDownMouseButtons)
+ doMouseButtonInput(mouseButton, true);
+
+ for (final var mouseButton : downUpMouseButtons) {
+ doMouseButtonInput(mouseButton, true);
+ doMouseButtonInput(mouseButton, false);
+ }
+
+ for (final var code : newUpNormalKeys)
+ doKeyboardInput(code, false);
+
+ for (final var code : newUpModifiers)
+ doKeyboardInput(code, false);
+
+ for (final var code : offLockKeys)
+ setLockKeyState(code, false);
+
+ for (final var code : onLockKeys)
+ setLockKeyState(code, true);
+
+ for (final var code : newDownModifiers)
+ doKeyboardInput(code, true);
+
+ final var currentTime = System.currentTimeMillis();
+ if (currentTime - prevKeyInputTime > input.getProfile().getKeyRepeatInterval()) {
+ for (final var code : newDownNormalKeys)
+ doKeyboardInput(code, true);
+
+ prevKeyInputTime = currentTime;
+ }
+
+ for (final var keyStroke : downUpKeyStrokes) {
+ for (final var scanCode : keyStroke.getModifierCodes())
+ doKeyboardInput(scanCode, true);
+
+ for (final var scanCode : keyStroke.getKeyCodes()) {
+ doKeyboardInput(scanCode, true);
+ doKeyboardInput(scanCode, false);
+ }
+
+ for (final var scanCode : keyStroke.getModifierCodes())
+ doKeyboardInput(scanCode, false);
+ }
+
+ if (scrollClicks != 0)
+ if (Main.isWindows) {
+ final var input = new INPUT();
+ input.type = new DWORD(INPUT.INPUT_MOUSE);
+ input.input.setType(MOUSEINPUT.class);
+ input.input.mi.mouseData = new DWORD(scrollClicks * WHEEL_DELTA);
+ input.input.mi.dwFlags = new DWORD(MOUSEEVENTF_WHEEL);
+
+ User32.INSTANCE.SendInput(new DWORD(1L), new INPUT[] { input }, input.size());
+ } else if (Main.isLinux)
+ mouseInputDevice.emit(new Event(EventCode.REL_WHEEL, scrollClicks));
+ else
+ throw new UnsupportedOperationException();
+ } catch (final IOException e) {
+ log.log(Level.WARNING, e.getMessage(), e);
+ writeSucessful = false;
+ }
+
+ if (!writeSucessful) {
+ final var confirmDialogTask = new FutureTask<>(() -> {
+ String message = null;
+ if (Main.isWindows)
+ message = "COULD_NOT_WRITE_TO_VJOY_DEVICE_DIALOG_TEXT";
+ else if (Main.isLinux)
+ message = "COULD_NOT_WRITE_TO_UINPUT_DEVICE_DIALOG_TEXT";
+ else
+ throw new UnsupportedOperationException();
+
+ return JOptionPane.showConfirmDialog(main.getFrame(), Main.strings.getString(message),
+ Main.strings.getString("ERROR_DIALOG_TITLE"), JOptionPane.YES_NO_OPTION);
+ });
+ EventQueue.invokeLater(confirmDialogTask);
+ try {
+ if (confirmDialogTask.get() == JOptionPane.YES_OPTION)
+ restart = true;
+ else
+ forceStop = true;
+ } catch (final InterruptedException e) {
+ } catch (final ExecutionException e) {
+ throw new RuntimeException(e);
+ }
+
+ Thread.currentThread().interrupt();
+ }
+ }
+}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/Output.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/RunMode.java
similarity index 80%
rename from src/main/java/de/bwravencl/controllerbuddy/output/Output.java
rename to src/main/java/de/bwravencl/controllerbuddy/runmode/RunMode.java
index dd9a18be..e717e56f 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/output/Output.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/RunMode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,12 +10,11 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
-package de.bwravencl.controllerbuddy.output;
+package de.bwravencl.controllerbuddy.runmode;
import java.awt.EventQueue;
import java.util.logging.Level;
@@ -27,9 +26,9 @@
import de.bwravencl.controllerbuddy.gui.Main;
import de.bwravencl.controllerbuddy.input.Input;
-public abstract class Output implements Runnable {
+public abstract class RunMode implements Runnable {
- private static final Logger log = Logger.getLogger(Output.class.getName());
+ private static final Logger log = Logger.getLogger(RunMode.class.getName());
public static final int DEFAULT_POLL_INTERVAL = 1;
@@ -40,10 +39,10 @@ public abstract class Output implements Runnable {
int maxAxisValue;
int nButtons;
- Output(final Main main, final Input input) {
+ RunMode(final Main main, final Input input) {
this.main = main;
this.input = input;
- input.setOutput(this);
+ input.setRunMode(this);
}
final void controllerDisconnected() {
diff --git a/src/main/java/de/bwravencl/controllerbuddy/output/ServerOutput.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/ServerRunMode.java
similarity index 92%
rename from src/main/java/de/bwravencl/controllerbuddy/output/ServerOutput.java
rename to src/main/java/de/bwravencl/controllerbuddy/runmode/ServerRunMode.java
index e61eba76..d621706b 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/output/ServerOutput.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/ServerRunMode.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2020 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,12 +10,11 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
-package de.bwravencl.controllerbuddy.output;
+package de.bwravencl.controllerbuddy.runmode;
import java.awt.EventQueue;
import java.io.IOException;
@@ -41,13 +40,13 @@
import de.bwravencl.controllerbuddy.input.Input;
import de.bwravencl.controllerbuddy.version.VersionUtils;
-public final class ServerOutput extends Output {
+public final class ServerRunMode extends RunMode {
public enum ServerState {
Listening, Connected
}
- private static final Logger log = Logger.getLogger(ServerOutput.class.getName());
+ private static final Logger log = Logger.getLogger(ServerRunMode.class.getName());
public static final int DEFAULT_PORT = 28789;
public static final int DEFAULT_TIMEOUT = 2000;
@@ -65,7 +64,7 @@ public enum ServerState {
private InetAddress clientIPAddress;
private ServerState serverState;
- public ServerOutput(final Main main, final Input input) {
+ public ServerRunMode(final Main main, final Input input) {
super(main, input);
}
@@ -191,13 +190,13 @@ public void run() {
downKeyStrokes.forEach(keyStroke -> {
final var modifierCodes = keyStroke.getModifierCodes();
sb.append(PROTOCOL_MESSAGE_DELIMITER + modifierCodes.length);
- for (final var code : modifierCodes)
- sb.append(PROTOCOL_MESSAGE_DELIMITER + code);
+ for (final var scanCode : modifierCodes)
+ sb.append(PROTOCOL_MESSAGE_DELIMITER + scanCode);
final var keyCodes = keyStroke.getKeyCodes();
sb.append(PROTOCOL_MESSAGE_DELIMITER + keyCodes.length);
- for (final var code : keyCodes)
- sb.append(PROTOCOL_MESSAGE_DELIMITER + code);
+ for (final var scanCode : keyCodes)
+ sb.append(PROTOCOL_MESSAGE_DELIMITER + scanCode);
});
final var downUpKeyStrokes = input.getDownUpKeyStrokes();
@@ -210,8 +209,8 @@ public void run() {
final var keyCodes = keyStroke.getKeyCodes();
sb.append(PROTOCOL_MESSAGE_DELIMITER + keyCodes.length);
- for (final var code : keyCodes)
- sb.append(PROTOCOL_MESSAGE_DELIMITER + code);
+ for (final var scanCode : keyCodes)
+ sb.append(PROTOCOL_MESSAGE_DELIMITER + scanCode);
});
downUpKeyStrokes.clear();
diff --git a/src/main/java/de/bwravencl/controllerbuddy/runmode/User32WithGetKeyState.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/User32WithGetKeyState.java
new file mode 100644
index 00000000..1e13c6a3
--- /dev/null
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/User32WithGetKeyState.java
@@ -0,0 +1,28 @@
+/* Copyright (C) 2022 Matteo Hausner
+ *
+ * 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 .
+ */
+
+package de.bwravencl.controllerbuddy.runmode;
+
+import com.sun.jna.Native;
+import com.sun.jna.platform.win32.User32;
+import com.sun.jna.win32.W32APIOptions;
+
+interface User32WithGetKeyState extends User32 {
+
+ User32WithGetKeyState INSTANCE = Native.load("user32", User32WithGetKeyState.class, W32APIOptions.DEFAULT_OPTIONS);
+
+ short GetKeyState(int KeyState);
+}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/runmode/X11WithLockKeyFunctions.java b/src/main/java/de/bwravencl/controllerbuddy/runmode/X11WithLockKeyFunctions.java
new file mode 100644
index 00000000..f5046e88
--- /dev/null
+++ b/src/main/java/de/bwravencl/controllerbuddy/runmode/X11WithLockKeyFunctions.java
@@ -0,0 +1,41 @@
+/* Copyright (C) 2022 Matteo Hausner
+ *
+ * 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 .
+ */
+
+package de.bwravencl.controllerbuddy.runmode;
+
+import com.sun.jna.Native;
+import com.sun.jna.Pointer;
+import com.sun.jna.platform.unix.X11;
+
+public interface X11WithLockKeyFunctions extends X11 {
+
+ int XkbUseCoreKbd = 0x0100;
+
+ int STATE_CAPS_LOCK_MASK = 0x0001;
+ int STATE_NUM_LOCK_MASK = 0x0002;
+ int STATE_SCROLL_LOCK_MASK = 0x0004;
+
+ int XK_NumLock = 0xFF7F;
+ int XK_ScrollLock = 0xFF14;
+
+ X11WithLockKeyFunctions INSTANCE = Native.load("X11", X11WithLockKeyFunctions.class);
+
+ int XkbGetIndicatorState(Display display, int device_spec, Pointer state_return);
+
+ int XkbKeysymToModifiers(Display dpy, KeySym ks);
+
+ boolean XkbLockModifiers(Display display, int device_spec, int affect, int values);
+}
diff --git a/src/main/java/de/bwravencl/controllerbuddy/version/VersionUtils.java b/src/main/java/de/bwravencl/controllerbuddy/version/VersionUtils.java
index 3d1c9c77..26e91928 100644
--- a/src/main/java/de/bwravencl/controllerbuddy/version/VersionUtils.java
+++ b/src/main/java/de/bwravencl/controllerbuddy/version/VersionUtils.java
@@ -1,8 +1,8 @@
/* Copyright (C) 2019 Matteo Hausner
*
- * This program is free software; you can redistribute it and/or modify
+ * 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
+ * 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,
@@ -10,9 +10,8 @@
* 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
package de.bwravencl.controllerbuddy.version;
diff --git a/src/main/resources/licenses.txt b/src/main/resources/licenses.txt
index 6803d4e9..0baf3761 100644
--- a/src/main/resources/licenses.txt
+++ b/src/main/resources/licenses.txt
@@ -1,283 +1,624 @@
ControllerBuddy:
GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ Version 3, 29 June 2007
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ 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 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
+ 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
-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.
+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 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.
+ 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 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.
+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.
- 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
+ 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.
- 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
+ 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
-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
+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 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.
+ 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
@@ -289,15 +630,15 @@ 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
+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
+ 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
+ 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,
@@ -305,40 +646,34 @@ the "copyright" line and a pointer to where the full notice is found.
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, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ 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:
+ If the program does terminal interaction, 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'.
+ 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, 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.
+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".
- , 1 April 1989
- Ty Coon, President of Vice
+ 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
+.
-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.
+ 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
+.
Apache Batik:
@@ -1212,6 +1547,684 @@ containing JNA, in file "AL2.0", under the same directory
as this file.
+linuxio4j:
+
+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.
+
+ {one line to give the program's name and a brief idea of what it does.}
+ Copyright (C) {year} {name of author}
+
+ 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:
+
+ {project} Copyright (C) {year} {fullname}
+ 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
+.
+
+
LWJGL - Lightweight Java Game Library 3:
Copyright (c) 2012-present Lightweight Java Game Library
diff --git a/src/main/resources/strings.properties b/src/main/resources/strings.properties
index bcdde501..c4d87703 100644
--- a/src/main/resources/strings.properties
+++ b/src/main/resources/strings.properties
@@ -150,7 +150,9 @@ EXPORT_ACTION_NAME = Export
EXPORT_ACTION_DESCRIPTION = Export a profile visualization
STATUS_CONNECTED_TO_VJOY_DEVICE = Connected to vJoy device {0,number,integer}
+STATUS_CONNECTED_TO_UINPUT_DEVICES = Connected to uinput devices
STATUS_DISCONNECTED_FROM_VJOY_DEVICE = Disconnected from vJoy device {0,number,integer}
+STATUS_DISCONNECTED_FROM_UINPUT_DEVICE = Disconnected from uinput devices
STATUS_CONNECTING_TO_HOST = Connecting to {0}:{1,number,#}...
STATUS_INVALID_MESSAGE_RETRYING = Invalid message - Retrying... ({0,number,integer}/{1,number,integer})
STATUS_TIMEOUT_RETRYING = Timeout - Retrying... ({0,number,integer}/{1,number,integer})
@@ -174,15 +176,15 @@ INVALID_VALUE_FOR_COMMAND_LINE_OPTION_AUTOSTART_DIALOG_TEXT = Encountered an inv
ALREADY_RUNNING_DIALOG_TEXT = ControllerBuddy is already running.
-COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT = The GLFW subsystem could not be initialized.
-COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT_WINDOWS = The GLFW subsystem could not be initialized.\n\nWithout GLFW ControllerBuddy can only be used in client-mode.
+COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT = The GLFW subsystem could not be initialized.\n\nWithout GLFW ControllerBuddy can only be used in client-mode.
+COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT_MAC = The GLFW subsystem could not be initialized.
COULD_NOT_READ_GAME_CONTROLLER_MAPPINGS_FILE_DIALOG_TEXT = Could not read SDL controller mappings file:\n{0}\n\nPlease verify that the supplied file path is valid and you have the necessary read permissions.
ERROR_UPDATING_GAME_CONTROLLER_DB_DIALOG_TEXT = An error occurred while updating the game controller mappings database.\n\nControllerBuddy will continue with limited device support.
-NO_CONTROLLER_CONNECTED_DIALOG_TEXT = There is no controller connected.
-NO_CONTROLLER_CONNECTED_DIALOG_TEXT_WINDOWS = There is no controller connected.\n\nWithout a controller ControllerBuddy can only be used in client-mode.
+NO_CONTROLLER_CONNECTED_DIALOG_TEXT = There is no controller connected.\n\nWithout a controller ControllerBuddy can only be used in client-mode.
+NO_CONTROLLER_CONNECTED_DIALOG_TEXT_MAC = There is no controller connected.
COULD_NOT_LOAD_PROFILE_DIALOG_TEXT = Could not load profile!\n\nEither the file could not be accessed or the profile was created for\na different controller model or version of ControllerBuddy.
@@ -209,14 +211,20 @@ MISSING_AXES_DIALOG_TEXT = Missing vJoy axes!\n\nvJoy device {0,number,integer}
COULD_NOT_ACQUIRE_VJOY_DEVICE_DIALOG_TEXT = Could not acquire vJoy device {0,number,integer}!\n\nUnable to continue.
+COULD_NOT_OPEN_UINPUT_DEVICE_DIALOG_TEXT = Could not open an uinput device!\n\nUnable to continue.
+
COULD_NOT_RESET_VJOY_DEVICE_DIALOG_TEXT = Could not reset vJoy device {0,number,integer}!\n\nUnable to continue.
-TOO_FEW_BUTTONS_DIALOG_TEXT = Too few vJoy buttons!\n\nvJoy device {0,number,integer} has {1,number,integer} buttons. The current profile requires at least {2,number,integer} buttons.\nPlease increase the number of buttons accordingly using the 'Configure vJoy' application.
+TOO_FEW_VJOY_BUTTONS_DIALOG_TEXT = Too few vJoy buttons!\n\nvJoy device {0,number,integer} has {1,number,integer} buttons.\nThe current profile requires at least {2,number,integer} buttons.\nPlease increase the number of buttons accordingly using the 'Configure vJoy' application.
+
+TOO_FEW_UINPUT_BUTTONS_DIALOG_TEXT = Too few uinput buttons!\n\nThe uinput device has only {0,number,integer} buttons.\nThe current profile requires at least {1,number,integer} buttons, it is therefore not usable on this system.
COULD_NOT_LOAD_VJOY_LIBRARY_DIALOG_TEXT = Could not load vJoy library!\n\nPlease verify that a valid vJoy directory has been selected in the 'Settings' tab.
COULD_NOT_WRITE_TO_VJOY_DEVICE_DIALOG_TEXT = Could not write to vJoy device!\nUnable to continue.\n\nWould you like to restart the feeder?
+COULD_NOT_WRITE_TO_UINPUT_DEVICE_DIALOG_TEXT = Could not write to an uinput device!\nUnable to continue.\n\nWould you like to restart the feeder?
+
CONTROLLER_DISCONNECTED_DIALOG_TEXT = The controller that was currently in use has been disconnected!
INVALID_HOST_ADDRESS_DIALOG_TEXT = Invalid host address!\n\n''{0}'' is not a valid host address.\nPlease verify that a valid host address has been entered in the 'Settings' tab.\nAlso ensure that the network connection to the host is working correctly.
@@ -306,7 +314,7 @@ DETENT_VALUE = Detent value
LONG_PRESS = Delayed action
ACTIONS = Edit actions
ON = On
-VIRTUAL_KEY_CODE = Key
+LOCK_KEY = Key
TOGGLE = Toggle
MODE_UUID = Mode
LOCK_KEY = Lock key
diff --git a/src/main/resources/strings_de_DE.properties b/src/main/resources/strings_de_DE.properties
index c6bd73b4..c97e49c2 100644
--- a/src/main/resources/strings_de_DE.properties
+++ b/src/main/resources/strings_de_DE.properties
@@ -125,7 +125,9 @@ EXPORT_ACTION_NAME = Export
EXPORT_ACTION_DESCRIPTION = Profil-Visualisierung exportieren
STATUS_CONNECTED_TO_VJOY_DEVICE = Verbunden mit vJoy Gerät {0,number,integer}
-STATUS_DISCONNECTED_FROM_VJOY_DEVICE = Verbindung getrennt von vJoy Gerät {0,number,integer}
+STATUS_CONNECTED_TO_UINPUT_DEVICES = Mit uinput Geräten verbunden
+STATUS_DISCONNECTED_FROM_VJOY_DEVICE = Verbindung zu vJoy Gerät {0,number,integer} getrennt
+STATUS_DISCONNECTED_FROM_UINPUT_DEVICES = Verbindung zu uinput Geräten getrennt
STATUS_CONNECTING_TO_HOST = Verbinde mit {0}:{1,number,#}...
STATUS_INVALID_MESSAGE_RETRYING = Invalid message - Versuche erneut... ({0,number,integer}/{1,number,integer})
STATUS_TIMEOUT_RETRYING = Timeout - Versuche erneut... ({0,number,integer}/{1,number,integer})
@@ -148,15 +150,15 @@ INVALID_VALUE_FOR_COMMAND_LINE_OPTION_AUTOSTART_DIALOG_TEXT = Es wurde ein ungü
ALREADY_RUNNING_DIALOG_TEXT = ControllerBuddy läuft bereits.
-COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT = Das GLFW Subsystem konnte nicht initialisiert werden.
-COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT_WINDOWS = Das GLFW Subsystem konnte nicht initialisiert werden.\n\nOhne GLFW kann ControllerBuddy nur im Client-Modus verwendet werden.
+COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT = Das GLFW Subsystem konnte nicht initialisiert werden.\n\nOhne GLFW kann ControllerBuddy nur im Client-Modus verwendet werden.
+COULD_NOT_INITIALIZE_GLFW_DIALOG_TEXT_MAC = Das GLFW Subsystem konnte nicht initialisiert werden.
COULD_NOT_READ_GAME_CONTROLLER_MAPPINGS_FILE_DIALOG_TEXT = Die angegebene SDL Controller Zuordnungs Datei konnte nicht gelesen werden:\n{0}\n\nBitte überprüfen Sie, dass der angegebenene Dateipfad korrekt ist und sie über die nötigen Leserechte verfügen.
ERROR_UPDATING_GAME_CONTROLLER_DB_DIALOG_TEXT = Während der Aktualisierung der Controller Zuordnungs Datenbank ist ein Fehler aufgetreten.\n\nControllerBuddy wird mit eingeschränkter Geräteunterstützung fortfahren.
-NO_CONTROLLER_CONNECTED_DIALOG_TEXT = Es ist kein Eingabegerät verbunden.
-NO_CONTROLLER_CONNECTED_DIALOG_TEXT_WINDOWS = Es ist kein Eingabegerät verbunden.\n\nOhne ein Eingabegerät kann ControllerBuddy nur im Client-Modus verwendet werden.
+NO_CONTROLLER_CONNECTED_DIALOG_TEXT = Es ist kein Eingabegerät verbunden.\n\nOhne ein Eingabegerät kann ControllerBuddy nur im Client-Modus verwendet werden.
+NO_CONTROLLER_CONNECTED_DIALOG_TEXT_MAC = Es ist kein Eingabegerät verbunden.
COULD_NOT_LOAD_PROFILE_DIALOG_TEXT = Profil konnte nicht geladen werden!\n\nEntweder konnte nicht auf die Datei zugegriffen werden oder das Profil wurde für\nein anderes Eingabegerät oder eine andere Version von ControllerBuddy erstellt.
@@ -183,14 +185,20 @@ MISSING_AXES_DIALOG_TEXT = Fehlende vJoy Achsen!\n\nvJoy Gerät {0,number,intege
COULD_NOT_ACQUIRE_VJOY_DEVICE_DIALOG_TEXT = vJoy Gerät {0,number,integer} konnte nicht erlangt werden!\n\nEs kann nicht fortgefahren werden.
+COULD_NOT_OPEN_UINPUT_DEVICE_DIALOG_TEXT = Ein uinput Gerät konnte nicht geöffnet werden!\n\nEs kann nicht fortgefahren werden.
+
COULD_NOT_RESET_VJOY_DEVICE_DIALOG_TEXT = vJoy Gerät {0,number,integer} konnte nicht zurückgesetzt werden!\n\nEs kann nicht fortgefahren werden.
-TOO_FEW_BUTTONS_DIALOG_TEXT = Zu wenige vJoy Tasten!\n\nvJoy Gerät {0,number,integer} besitzt {1,number,integer} Tasten. Das aktuelle Profil benötigt mindestens {2,number,integer} Tasten.\nBitte erhöhen Sie die Anzahl der Tasten mithilfe der "Configure vJoy" Applikation entsprechend.
+TOO_FEW_VJOY_BUTTONS_DIALOG_TEXT = Zu wenige vJoy Tasten!\n\nvJoy Gerät {0,number,integer} besitzt {1,number,integer} Tasten. Das aktuelle Profil benötigt mindestens {2,number,integer} Tasten.\nBitte erhöhen Sie die Anzahl der Tasten mithilfe der "Configure vJoy" Applikation entsprechend.
+
+TOO_FEW_UINPUT_BUTTONS_DIALOG_TEXT = Zu wenige uinput Tasten!\n\nDas uinput Gerät besitzt nur {0,number,integer} Tasten.\nDas aktuelle Profil benötigt mindestens {1,number,integer} Tasten und ist deshalb nicht auf diesem System nutzbar.
COULD_NOT_LOAD_VJOY_LIBRARY_DIALOG_TEXT = Die vJoy Bibliothek konnte nicht geladen werden!\n\nBitte überprüfen Sie, dass ein korrektes vJoy Verzeichnis unter dem Tab 'Einstellungen' ausgewählt wurde.
COULD_NOT_WRITE_TO_VJOY_DEVICE_DIALOG_TEXT = Ein Schreiben auf das vJoy Gerät ist nicht möglich!\nEs kann nicht fortgefahren werden.\n\nSoll der Feeder neugestartet werden?
+COULD_NOT_WRITE_TO_UINPUT_DEVICE_DIALOG_TEXT = Ein Schreiben auf ein uinput Gerät ist nicht möglich!\nEs kann nicht fortgefahren werden.\n\nSoll der Feeder neugestartet werden?
+
CONTROLLER_DISCONNECTED_DIALOG_TEXT = Das aktuell verwendete Eingabegerät wurde vom Computer getrennt!
INVALID_HOST_ADDRESS_DIALOG_TEXT = Ungültige Host Adresse!\n\n"{0}" ist keine gültige Host Adresse.\nBitte überprüfen Sie, dass eine gültige Host Adresse unter dem Tab 'Einstellungen' eingegeben wurde.\nStellen Sie außerdem sicher, dass der Host über das Netzwerk erreichbar ist.
@@ -277,7 +285,7 @@ DETENT_VALUE = Rast Wert
LONG_PRESS = Verzögerte Aktion
ACTIONS = Aktionen bearbeiten
ON = An
-VIRTUAL_KEY_CODE = Taste
+LOCK_KEY = Taste
TOGGLE = Umschalten
MODE_UUID = Modus
LOCK_KEY = Taste einrasten