home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / info / uforce.lzh / Uforce.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-25  |  823 b   |  44 lines

  1. /*
  2.  
  3. NES.h - definitions for any NES device
  4.  
  5. Ethan Dicks  <erd@kumiss.UUCP>
  6.  
  7. Version 1.0  24-Mar-1992
  8.  
  9. */
  10.  
  11. #ifndef UFORCE_H_INCLUDE
  12. #define UFORCE_H_INCLUDE
  13.  
  14. #ifdef AMIGA
  15. #include <exec/types.h>
  16. #endif
  17.  
  18. #include "NES.h"
  19.  
  20.  
  21. /* The flag byte format is %111111xx where the low bits are the buttons */
  22. #define U_FLAG_HI 255
  23. #define U_FLAG_LO 252
  24.  
  25. /* The select and start buttons are the low two bits of the flag byte */
  26. #define U_SELECT 2
  27. #define U_START 1
  28.  
  29. /* A valid sample value must be between 1 and 251 */
  30. #define U_SAMPLE_HI 251
  31. #define U_SAMPLE_LO 1
  32.  
  33. /* A zero return from the U-Force indicates aquisition is still in progress */
  34. #define U_SAMPLING 0
  35.  
  36. typedef struct _Uforce_data {
  37.     UBYTE f0,a0,a1,a2,a3,a4,a5,a6,a7;
  38. } Uforce_data;
  39.  
  40. void init_device(void);
  41. void query_device(Uforce_data *);
  42.  
  43. #endif /* UFORCE_H_INCLUDE */
  44.