Colin,
what keys did you select for your corresponding arduino inputs?
what screenset are you using?
The reason why I ask is the keyboard shortcuts are programmed into the screenset (you can change them with a screen editor (I use MachScreen)).
http://www.kd-dietz.com/klausphp/pages/eng/machscreen/description/ms_description.htmlSo If you take my setup (plasma), I can fire my torch with the "F5" key, or the engraver with the "F6" key. Some of the other standard ones are:
Stop = Alt +S
Cycle Start = Alt + R
etc
So basically you will need to ensure that you have programmed the arduino to emulate those keyboard commands (or any others you setup in the screenset)
The joystick, may take a little more thought....(not sure what you intend)
If you move the joystick one direction:
do you want the machine to jog faster in that direction as you move it?
Or do you just want it to move in that direction? (easiest to do)
or do you want a two setting type operation (move it a bit and it moves at one speed, move it all the way over and it moves at a faster speed) (more difficult but not as difficult as the first choice).
Mach likes digital signals, analogue signals can add complexity and then its the plugin route I'd suggest.
Rob