Commit Graph

90 Commits

Author SHA1 Message Date
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
deadprogram f225a66db9 docs: correct installation instructions to match latest versions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 929dbe05d1 joystick: add needed constants for all PS3 buttons
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 0ed755c6a4 joystick: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 10:00:58 +02:00
Marc-Antoine Ruel 88addd428f Add crude travis check for gofmt; format all sources
The check ensures no gofmt regression occurs. Formatting the code makes everyone happy.
2017-03-27 14:10:37 -04:00
deadprogram 762cb95375 joystick: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 16:24:48 +01:00
deadprogram 885c829a43 license: update license year to include 2017
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:25:17 +01:00
deadprogram 0d21d00ae2 docs: correct Joystick README link
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:52:29 +01:00
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
deadprogram af21d98074 core: update Joystick platform to simply return error
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
deadprogram 900bf1d9ea docs: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:37:10 +02:00
Benjamin Radovsky 6c93f492c7 fixed undefined method errors 2016-10-17 17:43:04 +11:00
deadprogram 458c750f33 core: refactor/rename internal name of Master type
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 20:02:54 +02:00
deadprogram 07f674955b core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:06:37 +02:00
deadprogram f6e655d91f core: Refactor Joystick platform for new Adaptor/Driver creation signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 21:07:36 +02:00
deadprogram 3540ce7bd1 docs: go fmt files that needed it from recent changes
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00