Commit Graph

51 Commits

Author SHA1 Message Date
Ash
0d9b6cdad3 Linux controller filtering and improvements 2017-04-13 12:03:35 +10:00
Ash
63815a3fdd Try to show the name of a HID (if possible) 2017-04-12 21:50:32 +10:00
Ash
3917dbbb0c Avoid showing filters that don't work on a given platform
(cough Windows cough)
2017-04-12 21:44:42 +10:00
Ash
725d23de72 Differentiate usagePage and usageID, fix whitespace bugs 2017-04-12 21:32:17 +10:00
Ash
fdf74a0f55 Basic functionality for Info tab 2017-04-12 17:15:38 +10:00
Ash
a73873e96d Code cleanup, center Options button 2017-04-12 16:21:43 +10:00
Ash
dd9386f0ed Move auto-scan/activate checkboxes into Options window 2017-04-12 16:18:12 +10:00
Ash
d56b344a88 Center Options window 2017-04-12 15:57:32 +10:00
Ash
2a6d61aef5 More GUI work - borders, polish 2017-04-12 15:47:22 +10:00
Ash
fe8398a4c8 Finish up - HID controller filtering backend done 2017-04-12 15:36:36 +10:00
Ash
24bdf92bbc Basic device filtering backend stuff 2017-04-11 20:31:04 +10:00
Ash
a43a45857a Controller filtering GUI stuff (no functionality yet) 2017-04-11 19:48:05 +10:00
Ash
0b2b1777b5 Finish basic InfoTab 2017-04-11 19:10:08 +10:00
Ash
a33c5b5720 Basic functionality 2017-04-11 18:59:20 +10:00
Ash
8bc119d715 Basic window; not much in it yet 2017-04-11 18:59:20 +10:00
Maschell
8197db4d86 Updated the TCP Handshake to also negotiate a protocol version. +Formatting etc. 2017-04-10 15:43:54 +02:00
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
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
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
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
Ash
751d06e97e Refactor messageboxes for cross-thread wonders.
My god, @Maschell.
2017-03-31 22:00:33 +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
4066013e37 Bumped Version and sending now data permanently not only on changes 2017-03-30 17:23:50 +02: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
0120e63dbc Fix for compiling < 1.8 2017-03-24 08:22:42 +01:00
Maschell
316f5366ee Refactoring OS detection and OSX handling 2017-03-23 22:56:32 +01:00
Maschell
968846b3f7 Formatting (Use spaces instead of tabs)
Added a eclipse formatting profile (Window -> Preferences  -> Java ->
Code Style -> Formatter -> Import)
2017-03-23 22:01:46 +01:00
Maschell
abb3b23b44 Auto saving the config on exiting, changing the to config file
- Only save the IP-Address (the end-user shouldn't worry about any of
the other values)
-change the config path to a local path.
2017-03-22 21:31:20 +01:00
Ash
7d00588ecf Load settings from config file instead of hardcoded values 2017-03-22 17:34:49 +11:00
Ash
8dffdb84fa Java 1.6; Mac OSX fixes 2017-03-21 20:42:26 +11:00
Maschell
4a590b9a20 Added support for the new DS4
- send only udp packets if there is a TCP connection
- added .jar creation
2017-03-19 23:54:41 +01:00
Maschell
845cdcb8f2 Added missing submodules, added missing lincense 2017-03-16 19:44:36 +01:00
Maschell
e0a392442d Changed HID backend to purejavahid
moved some magic values to the settings class
2017-03-16 19:33:50 +01:00
Maschell
a479bb14ee Improved the reconnecting and fixes some issues about the connection.
This should be pretty stable now =)
Code is not really beautiful atm, but better commit it before I break it
again!
2017-02-06 20:40:48 +01:00
Maschell
3918a71627 Fixed possible problem with the LinuxDevInputController 2017-02-06 09:17:22 +01:00
Maschell
82a25e0cf4 My approach on improving it, currently not really working
NOTE: I changed the protoctol a bit.
The actual network code is not finished and still under developement.

BUT:
- I simplified the GUI Classes
- Added XInput support
- And changed too much thing, can't list all here.
- Comments etc missing. Just want to have a commited version until I
break stuff.
2017-02-05 22:04:09 +01:00