Does anyone have a good example of a HAL file for a joypad that I can  
build on.

Here's what I want to do with a basic Logitech usb gamepad..

Use the left stick to control x axis, the right stick to control the y  
axis,  and the Hat to control the z axis.  (I want one stick, one  
axis, 'cause it's too easy to get 2 moving when you don't want them to)

Use the various buttons to control how fast the axes jog when the  
appropriate stick is moved.

Program the 4 buttons on the right to enable certain functions like  
spindle start/stop, coolant on/off, Home All, go to a predefined  
position (i.e. 0,0,0) etc..


I've used the first script in the knowledgebase as a initial attempt,  
but am having a slight problem.  When I let go of the stick on the pad  
the axis keeps going.. UHOH! ;-)

I've looked at the other scripts in the knowledgebase and noticed a  
setting called a "deadzone".  Would this solve my problem?

Any useful tips?

Thanks

- Micahel

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to