Commit Graph

105 Commits

Author SHA1 Message Date
Thomas Kohler 7f78edefcd
lint(all): fix issues of errorlint etc (#1037) 2023-11-15 20:51:52 +01:00
Thomas Kohler aee81436c9
lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
Thomas Kohler 002c75ce88
test(all): substitude assert.Nil by assert.NoError if useful (#1016) 2023-10-26 20:34:19 +02:00
Thomas Kohler a4a8d1079c
build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
Thomas Kohler 3039b2c7cb
test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
Ron Evans cd653e9ea1
joystick(core): replace sdl with 0xcafed00d/joystick package (#988) 2023-09-23 12:32:31 +02:00
Thomas Kohler 1e2a4d8d10
build(linters): list of linter todo's (#962) 2023-06-18 18:10:46 +02:00
Thomas Kohler f5d8d5c601
all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
dlstjq7685 8b20c453e0
all: substitute deprecated ioutil methods (#923) 2023-06-10 19:25:01 +02:00
Thomas Kohler 0d0a508c60
core(build): CLI removed (#946)
* core(build): CLI removed
* adjust install instructions in doc and README
* fix master_test and remove useless/duplicated tests examples_test.go
2023-06-04 18:36:55 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 949392d8a7
Fix(core): Semantic Import Versioning for v2 (#921) 2023-05-20 14:25:21 +02:00
Thomas Kohler fcdf286f1d
Fix(build): linter findings of "gosimple", "govet" and "staticcheck" (#917)
Fix also encoder and dps overflow in gopigo3 "GetMotorStatus()". Problem found by "staticcheck".
2023-05-19 14:16:22 +02:00
Andrew Regner c9a91720ea
Add configuration for Nintendo Switch controllers (#903) 2023-03-23 19:14:02 +01:00
Jordi Íñigo Griera b6f70b3e8b
Added support for Dualsense joystick (PlayStation 5) (#880)
* Dualsense base files copied from Dualshock4
* Buttons and axis corrected for Sony Dualsense
2022-11-09 18:24:58 +01:00
Thomas Kohler 65d06fc961 Joystick add Xbox-One controller 2022-10-21 18:57:27 +02:00
MrARM 2588b58237 Add definitions to controller class too
Website documentation did not make this immediately obvious
2022-09-25 16:27:05 +02:00
MrARM 14c3bde651 Add diagonal hat directions
Diagonal directions are simply the 2 buttons hit added. 
Tested on a PowerA Xbox controller
2022-09-25 16:27:05 +02:00
Mikael Manukyan 8cbd0eacf3 Add configuration for Nvidia Shield Controller 2020-11-28 00:38:44 +01:00
Ron Evans 261400d325 joystick: provide constant values for existing joystick configurations
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-25 18:02:01 +02:00
Ron Evans 54c6f4fae1 joystick: mention need to be running a Linux kernel v4.14+ for controller mappings to work as expected
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-17 10:37:05 +02:00
Ron Evans 605e6e216a joystick: add some additional test coverage for file-based config
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-14 10:47:02 +02:00
dandua98 21088b5ef0 [#574] added error handling for config loading in joystick driver 2018-08-04 23:07:02 -04:00
Ron Evans a4d54794e0 joystick: add config file for Magicsee R1 contributed by @carl-ranson
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-07-10 11:22:23 +02:00
Ron Evans 748cb2bb16 joystick: update scanner to match go-sdl 0.3 API changes
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-30 13:58:27 +02:00
Ron Evans e7e5fcaf66 joystick: correct test issue
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-25 12:42:29 +02:00
Ron Evans 0eb9efc4bf joystick: add instructions to README on how to install SDL on Linux from source
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-25 12:27:16 +02:00
Ron Evans 615cd71863 joystick: full corrected ds3 and ds4 mappings plus examples to match for latest sdl 2.0.8
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-25 12:19:22 +02:00
Ron Evans ed867b98b9
Merge pull request #555 from imathno/fix-DPAD
Fix joystick driver to detect dpad input for xbox controllers
2018-05-25 11:12:43 +02:00
Issa Mathno 7beb0ec8c3 Update the joystick driver test to read DPAD properly 2018-05-25 01:07:07 -07:00
Issa Mathno 9edbf547c8 Fix joystick_driver to detect dpad input for xbox controllers 2018-05-23 23:56:58 -07:00
Stephen Merrony c2df2e2590 Update dualshock4.json to match joystick_dualshock4.go 2018-05-20 10:23:19 +01:00
Stephen Merrony a5de5f64e5 Correct Dualshock4 controller mappings and add ps/left/right buttons 2018-05-20 10:10:24 +01:00
Ron Evans 64c96eea1e joystick: add new contributions to README
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-09 12:39:18 +02:00
Ron Evans 4b85f0c3fa joystick: exclude scanner from test builds
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-09 12:36:48 +02:00
Ron Evans 441a35093f
Merge pull request #525 from SMerrony/add-tflight-hotas-x-controller
Add tflight hotas x controller
2018-05-09 12:34:05 +02:00
Stephen Merrony 48c6cd4297 Add T-Flight Hotas X flight controoller 2018-05-08 07:25:37 +01:00
morfeo8marc 43be66e02d Revert "joystick: add missing type conversion"
This reverts commit 0fd6cf480a.
2018-05-08 00:41:50 +02:00
morfeo8marc f66139346d joystick: add xbox360 rock band drums controller
Signed-off-by: morfeo8marc <morfeo8marc@gmail.com>
2018-05-07 23:46:17 +02:00
morfeo8marc 0fd6cf480a joystick: add missing type conversion
Signed-off-by: morfeo8marc <morfeo8marc@gmail.com>
2018-05-07 22:47:18 +02:00
Ron Evans 3c4c15b6d9 joystick: correct events used by gamepad-style up/down/left/right buttons
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-18 12:12:07 +02:00
Ron Evans 026d3000d5 Merge branch 'feature/fileless-joystick' into dev 2018-04-14 13:35:12 +02:00
Ron Evans f9bb5a3ae6 joystick: able to configure joysticks without external json file
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-14 13:34:28 +02:00
Jordi Íñigo 4ddb2b9089 joystick: removed double release event
Signed-off-by: Jordi Íñigo <jig@safelayer.com>
2018-04-14 12:33:38 +02:00
Ron Evans b9dedf09b0 joystick: correct scanner error from ID
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-12 16:03:01 +02:00
Ron Evans b96b3a59cc joystick: correct error in scanning script
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-03-31 09:15:57 -07:00
Ron Evans 7ca9db598f docs: update copyright date to 2018
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-02-14 08:24:39 +01:00
deadprogram cf35f0e692 joystick: add CLI utilty to scan display events to make it easier to add new joyticks
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-09-12 21:07:53 +02:00
deadprogram 1312c20d4b joystick: update README to address #441
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-07-25 21:45:26 +02:00