Gamepad for Jog
Hi, I'm looking for information in case someone has tried it before.
I'm trying to integrate a gamepad (for example the xbox one), although any gamepad connected to the pc would work, to handle the movement of the axes manually.
My idea is to use the GAMEPAD API (https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API)
Any similar project that has made progress?
I have seen on the forum some related to hardware connections through the screen port, but my intention is that we do not have to use any additional hardware apart from the gamepad itself.
@scrhall I was thinking of doing this exact same thing as a plugin for DWC 3.2 . I've just been busy with the 3d viewer to get around to it. My idea was to track the gamepad and use the buttons to toggle travel distance. I'd prefer a continuous mode but not sure how well it would work without testing.
Wasn't planning to get to it this weekend but figured it couldn't be that bad.
UI is going to need work but everything is getting set and it is issuing move commands.
I am overlapping my posts sorry ;O
Stopping for the night but wanted to share where I am at for those who may be interested.
Blue indicates that the button or axis is being pressed.
@Sindarius WOW, nice job.
Is the code shared anywhere?
I got a few things I want to button up like custom actions and I’ll build a pluginnfor 3.2-beta3+
I don't know the world of duet too much yet, would this work with duet 2 wifi?
Donpi last edited by
@scrhall dont know if you allready seen this, but here is
@Donpi That's pretty slick I do like the idea of it running on the SBC so that you don't have to be on the webpage but this plugin will allow people who run standalone to the ability to use a gamepad as well.
I have a plugin put together that runs on DWC 3.2 Beta-3.
@Sindarius the plugin only works in DWC 3.2? I use the workbee version (i think is based in 2.0.4)
Sindarius last edited by Sindarius
@scrhall 3.2 beta is the first version of DWC that includes support for plugins so that’s the only way, without making a custom build, that supports 3rd party development.
I run an OpenBuilds Sphinx I plan to put a Duet on so I had plans to make this plugin. Maybe the Workbee group will be updating their DWC at some point when 3.2 releases to support 3rd party plugins.