home *** CD-ROM | disk | FTP | other *** search
/ Millennium Time Capsule / AC2000.BIN / disks / ac5_disk / kp_ejp / ejp_defs.h next >
Encoding:
C/C++ Source or Header  |  1997-04-20  |  1.2 KB  |  72 lines

  1. /*
  2. **    ejp_defs.h
  3. **    ==========
  4. **
  5. **    By Xav
  6. **    ======
  7. **
  8. **
  9. **    Contains structure definitions for the following:-
  10. **
  11. **        Joypads    (JOYPAD)
  12. **
  13. */
  14.  
  15.  
  16.  
  17. /*
  18. **    This structure makes it easier to deal with the joypads, as
  19. **    you simply call a function to fill it, then test the variables
  20. **    you're interested in. There's also space for a copy of the old
  21. **    values, as this can often be useful to see if buttons have
  22. **    actually changed state.
  23. */
  24.  
  25. struct JOYPAD
  26. {
  27.     short UP;
  28.     short DOWN;
  29.     short LEFT;
  30.     short RIGHT;
  31.     short FIRE_A;
  32.     short FIRE_B;
  33.     short FIRE_C;
  34.     short PAUSE;
  35.     short OPTION;
  36.     short NUMPAD_0;
  37.     short NUMPAD_1;
  38.     short NUMPAD_2;
  39.     short NUMPAD_3;
  40.     short NUMPAD_4;
  41.     short NUMPAD_5;
  42.     short NUMPAD_6;
  43.     short NUMPAD_7;
  44.     short NUMPAD_8;
  45.     short NUMPAD_9;
  46.     short NUMPAD_STAR;
  47.     short NUMPAD_HASH;
  48.     
  49.     short OLD_UP;
  50.     short OLD_DOWN;
  51.     short OLD_LEFT;
  52.     short OLD_RIGHT;
  53.     short OLD_FIRE_A;
  54.     short OLD_FIRE_B;
  55.     short OLD_FIRE_C;
  56.     short OLD_PAUSE;
  57.     short OLD_OPTION;
  58.     short OLD_NUMPAD_0;
  59.     short OLD_NUMPAD_1;
  60.     short OLD_NUMPAD_2;
  61.     short OLD_NUMPAD_3;
  62.     short OLD_NUMPAD_4;
  63.     short OLD_NUMPAD_5;
  64.     short OLD_NUMPAD_6;
  65.     short OLD_NUMPAD_7;
  66.     short OLD_NUMPAD_8;
  67.     short OLD_NUMPAD_9;
  68.     short OLD_NUMPAD_STAR;
  69.     short OLD_NUMPAD_HASH;
  70. };
  71.  
  72.