home *** CD-ROM | disk | FTP | other *** search
- {JOYPRSNT.INC}
-
- {
- Author: David Howorth
- Last updated: March 29, 1987
- Application: Just a function to determine whether a joystick is present.
- }
-
- function JoystickPresent : boolean;
-
- var
- Result : record
- ax,bx,cx,dx,bp,si,di,ds,es,flags : integer;
- end;
-
- begin
- intr($11,Result);
- JoystickPresent := ((Result.ax and $1000) <> 0);
- end;