Register / Login  |  Desktop view  |  Jump to bottom of page

General website discussion » Use xy analog joystick with menus

Author: tonbor
15/10/2022 13:32:43
I want to use an Arduino Dual-As Xy Joystick Module to switch menus. https://nl.aliexpress.com/item/1005001551592489.html?spm=a2g0o.order_list.0.0.7cc879d2sa2Gio&gatewayAdapt=glo2nld , X and Y analog and digital push. Can not find how to use it. Any help?

Author: davetcc
15/10/2022 15:39:32
At the moment there would be a couple of manual steps, but I think with minimal effort I can get the plugin to do everything, I'll have a go at the plugin today and see if I can get it to do back and next as well. I thought it already did but turns out it doesn't.

If everything is contained in the plugin as I expect, you could probably just drop the xml file in the right place once I fix it up and it would work even before the next release comes out.

Author: tonbor
15/10/2022 16:13:57
thanks for the quick response, see the xml when it is working, have I nice weekend!

Author: davetcc
16/10/2022 14:23:19
I have created a better analog joystick plugin, and a new example to go with it, they'll be fully released in 2.4.1, but the plugin xml is attached, it may complain if you edit the threshold fields, but it should still generate OK. If you wanted to try it:

1. Before starting, make sure the tcMenu designer is closed.
2. Navigate to the following directory from your home directory, in a command prompt: ~/.tcmenu/plugins/core-display
3. Make a full backup of the current contents of any files you change
4. Replace "analogJoystickInput.xml" with the version attached here.
5. Start designer and the new analog plugin should be available as an input plugin from the code generator.

I'm assuming you've gone through the getting started guide already, if not probably the best start. The analog joystick is chosen during the code generation phase, the screenshot shows what settings I used.

[Thumb - analog-joystick-options.png]
Filename analog-joystick-options.png
Description No description given
Filesize 53 Kbytes
Downloaded 348 time(s)
[Disk] Download

Filename analogJoystickInput.xml
Description The plugin XML definition to replace
Filesize 8 Kbytes
Downloaded 342 time(s)
[Disk] Download


Author: tonbor
17/10/2022 09:05:54
thanks, I will try as soon as I receive my new joystick and I have time. I will let you know if it works.

Author: davetcc
26/10/2022 16:49:58
There's now no need for the above steps, 2.5.0 was released today, it has the plugin packaged with it.

Author: tonbor
31/10/2022 17:41:23
Thanks it is working smilie




Register / Login  |  Desktop view  |  Jump to top of page