svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
696 stars 176 forks source link

Gamepad cross-buttons support #181

Closed sedovserge closed 3 years ago

sedovserge commented 3 years ago

Can You add gamepad cross-buttons support?

The main basic joystick on the gamepad sometimes behaves unpredictably...

изображение

svenhb commented 3 years ago

Are the cross keys different from keys 0 to 15? image

sedovserge commented 3 years ago

Are the cross keys different from keys 0 to 15? image

Looks like yes, don't light up when pressed.

sedovserge commented 3 years ago

I will add the description, check these buttons on the gamepad and what will be written in the line "Message from Gamepad" when I press these buttons.

svenhb commented 3 years ago

Good idea, thanks

sedovserge commented 3 years ago

изображение

left : 27000 right : 9000 up : 0 down : 18000 neutral : -1

left-up : 31500 right-up: 4500 right-down: 13500 left-down: 22500

svenhb commented 3 years ago

For each direction the first word is "PointOfViewControllers0"? Unfortunatly my gamepad doesn't send this value, just Buttons and X,Y,Z,RotationZ.

sedovserge commented 3 years ago

For each direction the first word is "PointOfViewControllers0"? Unfortunatly my gamepad doesn't send this value, just Buttons and X,Y,Z,RotationZ.

Yep, for all directions "PointOfViewControllers0".

https://user-images.githubusercontent.com/6526798/106929435-69b73f80-6725-11eb-85d8-125b71c474ec.mp4

svenhb commented 3 years ago

And they should act like X,Y on full scale, or are individual commands ok, like for the buttons?

sedovserge commented 3 years ago

There are combinations of buttons, such as up and left. It is probably better to set jogging on all buttons with current feed or with adjustable feed.

sedovserge commented 3 years ago

For example to use them for more accurate supply to a point of

svenhb commented 3 years ago

Check new release: https://github.com/svenhb/GRBL-Plotter/releases

sedovserge commented 3 years ago

It works! Tnx

svenhb commented 3 years ago

Thanks for testing