home *** CD-ROM | disk | FTP | other *** search
/ ring.yamanashi.ac.jp/pub/pc/freem/action/ / action.zip / spout11.zip / SDL / piece.h < prev    next >
C/C++ Source or Header  |  2002-10-12  |  1KB  |  62 lines

  1. #include "SDL.h"
  2.  
  3. #define ZOOM 2
  4. #define SDL_WIDTH (128 * ZOOM)
  5. #define SDL_HEIGHT (88 * ZOOM)
  6.  
  7. #define PAD_RI 0x01
  8. #define PAD_LF 0x02
  9. #define PAD_DN 0x04
  10. #define PAD_UP 0x08
  11. #define PAD_B  0x10
  12. #define PAD_A  0x20
  13. #define PAD_D  0x40
  14. #define PAD_C  0x80
  15.  
  16. #define TRG_RI 0x0100
  17. #define TRG_LF 0x0200
  18. #define TRG_DN 0x0400
  19. #define TRG_UP 0x0800
  20. #define TRG_B  0x1000
  21. #define TRG_A  0x2000
  22. #define TRG_D  0x4000
  23. #define TRG_C  0x8000
  24.  
  25. #define pcesprintf sprintf
  26.  
  27. #define CPU_SPEED_NORMAL 0
  28. #define pceCPUSetSpeed
  29.  
  30. #define FILEACC int
  31. #define FOMD_RD 0
  32. #define FOMD_WR 1
  33. #define pceFileCreate
  34.  
  35. #define pceTimerGetCount SDL_GetTicks
  36.  
  37. #define PP_MODE_SINGLE 0
  38. #define PP_MODE_REPEAT 1
  39. #define pcePadSetTrigMode
  40.  
  41. int pceFontPrintf(const char *fmt, ... );
  42. void pceFontSetTxColor(int color);
  43. void pceFontSetBkColor(int color);
  44. void pceFontSetPos(int x, int y);
  45. void pceFontSetType(int type);
  46.  
  47. void pceLCDDispStop();
  48. void pceLCDDispStart();
  49. unsigned char *pceLCDSetBuffer(unsigned char *pbuff);
  50. void pceLCDTrans();
  51.  
  52. void pceAppSetProcPeriod(int period);
  53. void pceAppReqExit(int c);
  54.  
  55. int pceFileOpen(FILEACC *pfa, const char *fname, int mode);
  56. int pceFileReadSct(FILEACC *pfa, void *ptr, int sct, int len);
  57. int pceFileWriteSct(FILEACC *pfa, const void *ptr, int sct, int len);
  58. int pceFileClose(FILEACC *pfa);
  59.  
  60. int pcePadGet();
  61.  
  62.