home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / MOUSE / TPASJOY.ZIP / BUTTONS.INC next >
Encoding:
Text File  |  1987-03-26  |  517 b   |  31 lines

  1. {BUTTONS.INC}
  2. {
  3. Author:        David Howorth
  4. Last updated:  March 26,1987
  5. Application:   Functions to read the status of the four joystick buttons.
  6. }
  7.  
  8. function ButtonA1 : boolean;
  9.  
  10. begin
  11.   ButtonA1 := ((port[$201] and $10) = 0);
  12. end;
  13.  
  14. function ButtonA2 : boolean;
  15.  
  16. begin
  17.   ButtonA2 := ((port[$201] and $20) = 0);
  18. end;
  19.  
  20. function ButtonB1 : boolean;
  21.  
  22. begin
  23.   ButtonB1 := ((port[$201] and $40) = 0);
  24. end;
  25.  
  26. function ButtonB2 : boolean;
  27.  
  28. begin
  29.   ButtonB2 := ((port[$201] and $80) = 0);
  30. end;
  31.