home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
Palettes
/
JoyStick
/
README
< prev
Wrap
Text File
|
1992-11-03
|
597b
|
17 lines
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