Hello Guest it is April 24, 2024, 03:05:50 AM

Author Topic: mcX360 Plugin for Lua  (Read 45431 times)

0 Members and 1 Guest are viewing this topic.

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #100 on: June 05, 2022, 12:21:55 PM »
Also did you pick the XBOX360 controller just because you had one or was it a technical decision e.g. easier to interface?

thanks

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #101 on: June 05, 2022, 12:30:59 PM »
These are Mach4 specific registers

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #102 on: June 05, 2022, 12:52:07 PM »
These are Mach4 specific registers

DazTheGas
Ah - thank you

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #103 on: June 07, 2022, 03:12:55 PM »
So how are you gathering the input form the USB device? In C++, C# etc etc I have used DirectX for this, is there a USB library including in the Mach4 CoreAPI? as i cannot seem to find anything

thanks 

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #104 on: June 17, 2022, 10:02:39 AM »
I have a problem with the XBOX 360 LUA plugin. Whenever I install it to Mach4, the controller randomly (but consistently) rumbles.

It doesn't stop, just jumbles all the time randomly.

Any ideas? It is a Genuine MS controller and is picked up by the plugin successfully.

thanks

PS this is before I add any LUA code for it.
« Last Edit: June 17, 2022, 10:20:26 AM by Rimmel »

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #105 on: July 28, 2022, 11:13:39 AM »
Treid this on a few machines, basically the Plugin doesn't seem to work properly on Win7.

Could @dazthegaz have a look at this please?

thanks

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #106 on: July 28, 2022, 11:43:59 AM »
This Pugin is no longer maintained as it is now included as a plugin with mach4 and I use a shuttle now.

Sorry I cannot help at this time, but you never know what the future holds. why not use the plugin and for any specific things you want to do use the GCode commands to trigger a lua written M code.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #107 on: July 28, 2022, 12:07:52 PM »
Unfortunately the standard Plugin does not allow any change on the D-Pad or Analogue stick movements. The LUA version was perfect (how they should all be written) but like I say just buzzes/vibrates all the time in Win7.

I can't seem to get acess to the Plugin core files etc or I would have had look at it myself.

thanks anyway.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #108 on: July 28, 2022, 03:36:29 PM »
Here is a quick fix.

1. Undo the 7 screws underneath the controller, one is hidden under the bottom of the label.
2. Disconect the two motors (They are just pluged in).
3. Put back together and enjoy.

I have just tested this and everything in the registry is still working.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Rimmel

*
  •  208 208
    • View Profile
Re: mcX360 Plugin for Lua
« Reply #109 on: July 29, 2022, 11:51:15 AM »
Smashing idea Daz - thank you!!!!  ;)