This is JoyStick.h in view mode; [Download] [Up]
#import <appkit/appkit.h>
@interface JoyStick:View
{
float x,y;
id myView;
float xmax,ymax;
DPSTimedEntry timer;
int track;
float tracktime;
float fadetime;
}
- (float)getYVal:sender;
- (float)getXVal:sender;
-setXMax:(float)val;
-setYMax:(float)val;
-(float)xMax;
-(float)yMax;
-setTrackTime:(float)val;
-setFadeTime:(float)val;
-(float)trackTime;
-(float)fadeTime;
- drawSelf:(const NXRect *)rects :(int)rectCount;
- initFrame:(const NXRect *)frameRect;
-sizeTo:(NXCoord)width:(NXCoord)height;
- reSet;
-free;
- trackMouse;
-mouseDown:(NXEvent *)theEvent;
-mouseUp:(NXEvent *)theEvent;
- (BOOL)acceptsFirstMouse;
- setPos:(NXPoint)mouseLoc;
-write:(NXTypedStream *)stream;
-read:(NXTypedStream *)stream;
- (const char*) inspectorName;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.