Commit graph

236 commits

Author SHA1 Message Date
David Khachaturov
b1fc5267da - Add option to double click sticks to change joycon orientation (split or join) 2021-04-18 10:14:03 +01:00
David Khachaturov
f1996f3864 - Fix application of UseIncrementalLights 2021-04-18 08:56:04 +01:00
David Khachaturov
7444c01adc - fix Hori controllers (thank you bitamind!)
- add default calibration settings (acc/gyro and sticks) that are used for third party controllers automatically
2021-04-17 11:15:38 +01:00
David Khachaturov
e451b95536 Merge branch 'master' of https://github.com/Davidobot/BetterJoy 2021-04-17 10:08:54 +01:00
Casey Fitzpatrick
8d5fd675bd
MotionServer DS4 mapping (#743)
* Fix DS4 button mapping for PS and square buttons

* Use DS4 mapping for UdpServer

Leverage the complex single vs. double joycon vs. pro logic in the
Show as DS4 mapping code so that the MotionServer can properly support
a single joycon with SL and SR buttons available.
2021-03-31 20:37:37 +01:00
Odaem
2ca18ffe19
Fix incorrect mapping to DS4 (#742)
the mapping to ds4 when using combined joycon was faulty; this should be correct but I currently have no way to test it
2021-03-31 20:36:33 +01:00
David Khachaturov
b94203b0ab - fix typo 2021-03-29 09:42:05 +01:00
David Khachaturov
8d14a39ea4 - Update ViGEm 2021-03-29 09:40:15 +01:00
ASleepyCat
19bc9e32c5
Fix 3rdPartyControllers file not being able to be found when launching BetterJoyForCemu from Search/PowerToys Run (#703) 2021-02-23 09:02:08 +00:00
David Khachaturov
b8de5003a4 - Significantly improved gyro-to-mouse accuracy/stability by using a DCM filter. (https://x-io.co.uk/open-source-imu-and-ahrs-algorithms/)
- Gyro Analogue slider accuracy improved as well
2021-02-14 14:52:43 +01:00
ASleepyCat
8c591fd2f2
Fix settings file not being able to be found when launching BetterJoyForCemu from Search/PowerToys Run (#673)
* Explicitly assign settings file path

* Set settings path in Config constructor

* Make settings path readonly
2021-01-22 07:35:44 +01:00
Luca Mazzilli
53a0a272b8
used serial_number to identify and set type to a specific device (#663)
3rd party joycons (tested on joysky "wireless controller for N/SW) reported the same name "wireless gamepad" so i was unable to correcly address the left/right type of joycon. 

By using bluetooth serial number as additional identifier we can target specific device with correct type.

Changes:
- used serial_number as additional condition in "check list of custom controllers specified" block
- SController now incapsulate serial_number and use it for hash, equals, serialize etc
- Read the 5 index of 3rdPartyController file on _3rdPartyControllers
2021-01-13 18:57:09 +01:00
Chris
68f1c476c6
Use incremental lighting to indicate players on Joycons. (#617)
Consolidates LED and other/attached Joycon handling.
2020-11-19 08:54:00 +00:00
Chris
40dce4149c
Do not connect Joycons that are already paired. Fix concurrent modifications on Joycon list with concurrent list implementation. (#612) 2020-11-16 14:46:44 +00:00
David Khachaturov
c0b9240887 - Fix vendor_id/product_id mixup
- Max "calibrate" button non-default
2020-11-15 13:47:59 +00:00
shukenmg
57c1680537
Fix dequeuing (#594) 2020-11-03 16:42:48 +00:00
shukenmg
eda7605739
Expose debugging parameters (#593) 2020-11-03 08:20:42 +00:00
shukenmg
bfdea232cd
Rumble data processing refactor (#591)
* Rumble reimplementation

* Remove white space

* More whitespace

* Remove Update
2020-11-03 08:19:59 +00:00
shukenmg
6f5316d462
Remove unnecessary code (#592) 2020-11-03 08:19:25 +00:00
shukenmg
af3761ab3e
Adds an option to switch between controller calibrated joystick and a predetermined value (#527)
* Fixes an issue some users where having when they enabled Non Original Controller

#524

* Update Joycon.cs

Overwite deadzone 2

* Using enum to switch between

Co-authored-by: Shuken <shukenmg@iuvenisstudios.ga>
Co-authored-by: David Khachaturov <d77777k@gmail.com>
2020-11-02 14:55:23 +00:00
shukenmg
e0e2499f04
New option to calibrate controllers in BetterJoy (#522)
* Inital fix for #521

* Update App.config

* Update App.config

Co-authored-by: Shuken <shukenmg@iuvenisstudios.ga>
2020-11-02 14:52:57 +00:00
german77
f9f1ea4081
Fix accelerometer axis to have correct data for orientation (#563) 2020-10-06 12:33:09 +01:00
shukenmg
36346c1896
Add a mappable shake input
- mappable "shake" input

Co-authored-by: Shuken <shukenmg@iuvenisstudios.ga>
2020-09-22 14:47:26 +01:00
shukenmg
43786c12d9
Automatic switching between 32 and 64-bit hidapi dlls (#542)
- detect bitness of system and change dll appropriately automatically

Co-authored-by: Shuken <shukenmg@iuvenisstudios.ga>
2020-09-22 13:35:54 +01:00
Ceshion
06edcb1be5
🐛 fixes "too many items" when names are null (#543)
* 🐛 avert infinite loop when prod_id not assigned

Without ptr being reassigned in the case of a 0 prod_id, the app would get into an infinite loop on launch, before opening- this should resolve it 😊

* 🐛 fixes "too many items" when names are null

There is an (honestly misleading) OutOfMemoryException with the message "too many items in listbox" that is thrown when there are any items whose ToString() method returns null. This commit (in my maybe-biased opinion) gives a reasonable output in that case instead.
2020-09-22 08:40:10 +01:00
Ceshion
aec0e1d2a8
🐛 avert infinite loop when prod_id not assigned (#539)
Without ptr being reassigned in the case of a 0 prod_id, the app would get into an infinite loop on launch, before opening- this should resolve it 😊
2020-09-21 22:48:46 +01:00
shukenmg
4b30d51b8c
Change the width of the settings menu (#526)
* Change the width of the setings menu

Co-authored-by: Shuken <shukenmg@iuvenisstudios.ga>
2020-09-18 09:01:13 +01:00
shukenmg
c60aa0775f
Fixes #519 (#520)
Make sure to delete the settings file first.
2020-09-18 08:59:58 +01:00
David Khachaturov
99bae0ec2c - Added low battery notification
- Added automatic detection for badly-closed USB connections. Automatically reset the connection in such a case
2020-09-12 09:24:07 +01:00
David Khachaturov
4b181c6aed Merge branch 'master' of https://github.com/Davidobot/BetterJoy 2020-09-10 13:20:39 +01:00
David Khachaturov
2030247716 - Fix program not loading properly for some users 2020-09-10 13:20:35 +01:00
David Khachaturov
3ddd9a7fa0
Update README.md 2020-09-06 17:13:01 +01:00
David Khachaturov
5ea9b05e23
Update README.md 2020-09-06 17:00:42 +01:00
David Khachaturov
a68a2ee424 - Fix rumble (also change default freq values)
- Fix bug on seeing whether a controller is 3rd party
2020-09-06 16:44:49 +01:00
SonicLC
debace5b3a
Fixed button translation error (#425)
Fixed button translation error from OutputControllerDualShock4 to IDualShock4Controller
2020-06-15 19:47:12 +01:00
David Khachaturov
b499db2f0a - Fixed WindowsInput bugs causing the program to close on random key chords. 2020-06-14 10:19:21 +01:00
David Khachaturov
ecfa890c75 - WIP 3rd party controllers 2020-06-12 19:54:13 +01:00
David Khachaturov
e1f3e573fd - WIP Adding support for 3rd party controllers 2020-06-12 16:04:24 +01:00
David Khachaturov
a291f0daf6 - Fixed Subcommands not properly returning.
- all subcommand require a read back from the controller to confirm it has been acknowledged
 - Got rid of the last reminants of "BetterJoyForCemu"
 - Changed GUID to actual GUID of program
2020-06-12 09:26:22 +01:00
David Khachaturov
d894335017 - Added gyro toggle option 2020-06-11 09:27:06 +01:00
David Khachaturov
6d2b4b3918 - Fix LEDs not always being set
- Code clean-up
2020-06-11 09:09:18 +01:00
Robert Borg
f316ade501
avoids some multi threading issues (#418) 2020-06-11 08:03:32 +01:00
David Khachaturov
371346e2a7 Update issue templates 2020-06-09 19:54:25 +01:00
David Khachaturov
9d31a95d90 Update issue templates 2020-06-09 19:53:16 +01:00
David Khachaturov
8af8e581d3 - Changed rumble set_vals to milliseconds 2020-06-09 09:56:35 +01:00
Robert Borg
ff738222c0
Improve fetching subcommand response (#413)
* only send rumble command when rumble data has changed
* don't rerequest data for spi, just wait for response and discard non-related data
2020-06-09 09:26:41 +01:00
David Khachaturov
b0a6a87639
Revert "only send rumble command when rumble data has changed (#408)" (#415)
This reverts commit e9e7cefcdc.
2020-06-09 09:26:23 +01:00
Robert Borg
e9e7cefcdc
only send rumble command when rumble data has changed (#408) 2020-06-09 09:23:15 +01:00
FlaminSarge
c0edb34ec9
Add scrollbar to console log (#366) 2020-06-09 09:21:02 +01:00
David Khachaturov
04055aa97a - implemented inactivity timeout poweroff setting
- updated version
2020-05-22 16:44:43 +01:00