ftp.nice.ch/pub/next/developer/resources/palettesfor2.xx/JS.README

This is the README for JS.N.bs.tar.gz [Download] [Browse] [Up]

A simple Joystick object, written to try out writing an IB pallete. Simply drag it into your application, and add JoyStick.[hm] to the project.

The only methods you need are getXVal and - (float)getXVal:sender;
 and - (float)getYVal:sender;.

The inspector sets up the range of the values returned, and the responsiveness
of the stick (try it and see).

If you wanted to use this in a real game, then the drawing methods should
probably be optimised.

The code may be used/modified for reasonable purposes - provided you mail me
a copy of anything you develop.

Ian Stephenson
ian@ohm.york.ac.uk

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.