Commit Graph

76 Commits

Author SHA1 Message Date
Maschell
857c5d397d Updated Gui, HidManager refactoring, documentation,logs
- Improved the GUI a bit
- Changed HidManagerBackend to be an interface instead of an abstract
class. The methods were moved to HidManager
- simple documentation of the HidDevice interface (realls need more
polishing though, very basic atm)
- added logging for the current platform and backend being used
2017-04-05 20:38:03 +02:00
Maschell
2eaab5a211 Merge pull request #9 from QuarkTheAwesome/untested_both_hid_libs
Adding an abstract HID-Layer to be able to use different HID-Implementations + various other fixes.

"With this extra abstraction we can use two different HID-APIs. Currently we use purejavahidapi for Windows (supports more devices) and hid4java for OSX and Unix (hopefully better support).
This will also enable the auto scanning for OSX and change some Debug messages.
HIDTest should now also run (a bit better)."
2017-04-05 20:14:03 +02:00
Maschell
92baf6ebeb Added Auto-Scanning for OSX and changed some debug messages 2017-04-05 11:07:02 -07:00
Maschell
2a5dcddd69 Giving the Thread proper names. Using getUsage instead of getUsagePage 2017-04-05 19:40:16 +02:00
Maschell
367d2c79b6 removed the HidDeviceInfo class and added more methods to the HidDevice interface
(still untested)
2017-04-05 18:14:58 +02:00
Maschell
e71d760cde Added an abstract HID-Layer, this way we can change the actual HID-Backend easily
Currently Winows still uses purejavahidapi and Unix uses hid4java. This
is currently untested.
2017-04-05 11:44:21 +02:00
Maschell
25e8bc6faf Added option for disable auto-scanning for controllers
Alternative: buttons for scanning manually.
- Change the OSX implementation. You need to scan for controller
manually to get it working.
- OSX doesn’t check is a connection is still open when sending. Added a
PING response to check if the client is still connected.
!!!!!!!!!
- Changed the protocol! For this network client, you’ll need the newest
nighty of HIDtoVPAD!
!!!!!!!!!
2017-04-03 07:55:39 -07:00
Maschell
79f4d738de Skip Xbox pads when scanning for HID-Devices on windows. (We have XInput!) 2017-04-02 19:12:39 +02:00
Maschell
07443bca8a Now it has it's own support thread on gbatemp.net! 2017-04-02 00:32:05 +02:00
Maschell
ad73c904be Changed the filename of the generated .jar files 2017-04-01 20:20:27 +02:00
Maschell
559b5679d5 Added one more usage page to the list of accecpted HID devices
- added a really simple HIDTest tool to see inputs
2017-04-01 20:12:52 +02:00
Maschell
964cd999fe Updated the JNA version 2017-04-01 17:15:32 +02:00
Maschell
d0e7928ed2 Fixed the equals methods + more refactoring 2017-03-31 16:47:06 +02:00
Maschell
1c98eaffbb Even more refactoring (and fixing the build..) 2017-03-31 16:01:52 +02:00
Maschell
4c814a2aaf Some Code-Refactoring 2017-03-31 15:31:41 +02:00
Maschell
ebe03a23c6 Changed the AccessLevel of the classes in the network package and improved
the MessageBox system. Now it's threadsafe and multiple consumers are
possible.
- Added a message box when connecting fails.
- Change the version of the used purejavahidapi
2017-03-31 14:34:09 +02:00
Maschell
3a0261e3d5 Merge pull request #8 from QuarkTheAwesome/msgbox
Refactor messageboxes for cross-thread wonders
2017-03-31 13:11:07 +02:00
Ash
751d06e97e Refactor messageboxes for cross-thread wonders.
My god, @Maschell.
2017-03-31 22:00:33 +11:00
Ash
24864ebf43 Change releases to be from bot account 2017-03-31 16:55:39 +11:00
Ash
0db397c2d2 Create special case for missing C++ redistributables
Error first spotted at https://gbatemp.net/posts/7211285 - hopefully
this error will lead people in the right direction.
2017-03-31 16:41:50 +11:00
Ash
faf13d91d0 Minor code cleanup, remove some Eclipse warnings 2017-03-31 16:27:34 +11:00
Maschell
1a27dfea42 Update README.md 2017-03-30 17:31:11 +02:00
Maschell
fc838c7366 Bumped the version in the circle.yml 2017-03-30 17:29:59 +02:00
Maschell
4066013e37 Bumped Version and sending now data permanently not only on changes 2017-03-30 17:23:50 +02:00
Ash
8b6e53ed7a Revert "Try adding commit messages to nightlies, because why not?"
This reverts commit fcfc7e2873.
2017-03-29 09:44:13 +11:00
Ash
20cfdb6428 Revert "Try adding commit messages to nightlies, because why not? 2"
This reverts commit f1d31c5ac0.
2017-03-29 09:43:43 +11:00
Ash
f1d31c5ac0 Try adding commit messages to nightlies, because why not? 2 2017-03-29 09:39:20 +11:00
Ash
fcfc7e2873 Try adding commit messages to nightlies, because why not? 2017-03-29 09:35:35 +11:00
Maschell
5f9da81af9 Fixed bug with the connecting when auto activating is enabled
- Force the controller to send their data once after they connected.
- Limiting the maximum handle size to (2^15)-1.
2017-03-27 22:06:31 +02:00
Maschell
72fd042a3a Formatting code, removed TODO and imports. 2017-03-27 20:40:44 +02:00
Maschell
e7fc629bec Added setting option for automatically activating controller.
This is useful when attaching/detaching controller while running then
client and want to active them anyway.
2017-03-27 20:37:22 +02:00
Maschell
e05d96f9b2 Changed handle foundry to only create positve values 2017-03-27 20:10:22 +02:00
Maschell
59c328c194 Improved behaviour if no valid config file is found.
It should show a message and deactivate the controller, but sometimes it
also disconnects.
I don't know if it's currently worth it to fix the disconnecting
problem, as you reconnect without any problems (and need to add/create
the config anyway).
2017-03-26 23:00:23 +02:00
Maschell
7914c8d633 Changed the protocol (simplified the handshake) and ..
Disabled the driver destroving after controller is set inactive. This
fixes reactivating the controller.
changed remaining println to log.info
2017-03-26 22:35:23 +02:00
Maschell
6626adf4a9 Changed the used purejavahidapi version to a specific one
... for compatibilty reason.
2017-03-25 15:01:37 +01:00
Maschell
d901da33e0 This doesn't make any sense. 2017-03-24 13:59:49 +01:00
Maschell
d1c1d7fed8 This _should_ fix it 2017-03-24 13:55:03 +01:00
Maschell
5d9f19e2b1 Hopefully a fix 2017-03-24 13:42:09 +01:00
Maschell
004cf5f674 Fixing the name of the nightly releases 2017-03-24 13:37:08 +01:00
Maschell
a65fbe6f9a Updated the README.md 2017-03-24 13:02:06 +01:00
Ash
4442471dbe Update circle.yml 2017-03-24 19:38:39 +11:00
Ash
bb7d0ce57f Update circle.yml 2017-03-24 19:34:52 +11:00
Ash
2c4d9842a6 Change release text, bump up to 14.04 2017-03-24 19:28:38 +11:00
Ash
223b3c31e4 Merge pull request #6 from QuarkTheAwesome/ci-testing
Tell CI to make GitHub releases on each build
2017-03-24 19:22:40 +11:00
Ash
5c167b414f Fix indentation 2017-03-24 19:17:56 +11:00
Ash
172597712f Try GitHub releases with CircleCI 2017-03-24 19:15:13 +11:00
Maschell
0120e63dbc Fix for compiling < 1.8 2017-03-24 08:22:42 +01:00
Ash
7e23d28ab8 DEBUG LOGGING TIME 2017-03-24 15:18:29 +11:00
Ash
eb20d367fe Commit to swap to Ubuntu 12.04. Fingers crossed. 2017-03-24 14:05:06 +11:00
Ash
6388061de0 I should really be doing this on another branch 2017-03-24 13:34:33 +11:00