home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / devices / inputevent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.6 KB  |  90 lines

  1. #ifndef DEVICES_INPUTEVENT_H
  2. #define DEVICES_INPUTEVENT_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef DEVICES_TIMER_H
  12. #include <devices/timer.h>
  13. #endif
  14. #ifndef UTILITY_HOOKS_H
  15. #include <utility/hooks.h>
  16. #endif
  17. #ifndef UTILITY_TAGITEM_H
  18. #include <utility/tagitem.h>
  19. #endif
  20. #ifndef __INC_POS_DEVICE_IEVENT_H
  21. #include <p:Device/IEvent.h>
  22. #endif
  23.  
  24.  
  25.  
  26. struct IEPointerPixel
  27. {
  28.   struct Screen *iepp_Screen;
  29.   struct {
  30.     SLONG X;
  31.     SLONG Y;
  32.   } iepp_Position;
  33. };
  34.  
  35. struct IEPointerTablet
  36. {
  37.   struct {
  38.     ULONG X;
  39.     ULONG Y;
  40.   } iept_Range;
  41.  
  42.   struct {
  43.     ULONG X;
  44.     ULONG Y;
  45.   } iept_Value;
  46.  
  47.   SWORD iept_Pressure;
  48. };
  49.  
  50.  
  51. struct IENewTablet
  52. {
  53.   struct Hook *ient_CallBack;
  54.   UWORD ient_ScaledX, ient_ScaledY;
  55.   UWORD ient_ScaledXFraction, ient_ScaledYFraction;
  56.   ULONG ient_TabletX, ient_TabletY;
  57.   ULONG ient_RangeX, ient_RangeY;
  58.   struct TagItem *ient_TagList;
  59. };
  60.  
  61.  
  62. struct InputEvent
  63. {
  64.   struct  InputEvent *ie_NextEvent;
  65.   UBYTE   ie_Class;
  66.   UBYTE   ie_SubClass;
  67.   ULONG   ie_Code;
  68.   UWORD   ie_Qualifier;
  69.   UBYTE   ie_Reserved1[8];
  70.   union {
  71.     UBYTE   ie_Reserved2[8];
  72.     struct {
  73.         WORD  ie_x;
  74.         WORD  ie_y;
  75.     } ie_xy;
  76.     APTR    ie_addr;
  77.     struct {
  78.         UBYTE ie_prev1DownCode;
  79.         UBYTE ie_prev1DownQual;
  80.         UBYTE ie_prev2DownCode;
  81.         UBYTE ie_prev2DownQual;
  82.     } ie_dead;
  83.   } ie_position;
  84.   struct timeval ie_TimeStamp;
  85.   ULONG          ie_Data;
  86.   UBYTE          ie_Reserved3[8];
  87. };
  88.  
  89. #endif    /* DEVICES_INPUTEVENT_H */
  90.