home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / stepcounter-1.3.tar.gz / stepcounter-1.3.tar / stepcounter-1.3 / tilt_p3 / tilt.h < prev    next >
C/C++ Source or Header  |  1999-10-27  |  627b  |  24 lines

  1. /*
  2.    tilt.h  -  (c) 1999 Till Harbaum
  3.  
  4.    palm tilt sensor interface
  5.  
  6.    t.harbaum@tu-bs.de
  7. */
  8.  
  9. #ifndef __TILT_H__
  10. #define __TILT_H__
  11.  
  12. #define TILT_WRONG_OS  3
  13. #define TILT_NO_SENSOR 4
  14.  
  15. /* tilt interface function declarations */
  16. Err TiltLibOpen(UInt refNum)                     SYS_TRAP(sysLibTrapOpen);
  17. Err TiltLibClose(UInt refNum, UIntPtr numappsP)  SYS_TRAP(sysLibTrapClose);
  18. Err TiltLibZero(UInt refNum)                     SYS_TRAP(sysLibTrapCustom+0);
  19. Err TiltLibGet(UInt refNum, Word *x, Word *y)    SYS_TRAP(sysLibTrapCustom+1);
  20. Err TiltLibGetAbs(UInt refNum, Word *x, Word *y) SYS_TRAP(sysLibTrapCustom+2);
  21.  
  22. #endif
  23.  
  24.