1 #ifndef CLIB_TOUCHPAD_PROTOS_H
    2 #define CLIB_TOUCHPAD_PROTOS_H
    3 
    4 /*
    5 	touchpad.library C prototypes
    6 
    7 	Copyright (c) 2009-2010 The MorphOS Development Team / Jacek Piszczek,  All Rights Reserved.
    8 */
    9 
   10 #ifndef EXEC_TYPES_H
   11 #include <exec/types.h>
   12 #endif
   13 
   14 #ifndef UTILITY_TAGITEM_H
   15 #include <utility/tagitem.h>
   16 #endif
   17 
   18 #ifdef __cplusplus
   19 extern "C" {
   20 #endif /* __cplusplus */
   21 
   22 APTR AddTouchpad(struct TagItem *taglist);
   23 void RemoveTouchpad(APTR touchpad, struct TagItem *taglist);
   24 void FeedTouchpad(APTR touchpad, UBYTE *xarray, UBYTE *yarray, ULONG buttonmask, struct TagItem *taglist);
   25 APTR ObtainTouchpad(struct TagItem *taglist);
   26 void ReleaseTouchpad(APTR touchpad, struct TagItem *taglist);
   27 ULONG GetTouchpadAttr(APTR touchpad, struct TagItem *taglist);
   28 ULONG SetTouchpadAttr(APTR touchpad, struct TagItem *taglist);
   29 
   30 #ifndef USE_INLINE_STDARG
   31 
   32 APTR AddTouchpadTags(Tag tag1, ...);
   33 void RemoveTouchpadTags(APTR touchpad, Tag tag1, ...);
   34 void FeedTouchpadTags(APTR touchpad, UBYTE *xarray, UBYTE *yarray, ULONG buttonmask, Tag tag1, ...);
   35 APTR ObtainTouchpadTags(Tag tag1, ...);
   36 void ReleaseTouchpadTags(APTR touchpad, Tag tag1, ...);
   37 ULONG GetTouchpadAttrTags(APTR touchpad, Tag tag1, ...);
   38 ULONG SetTouchpadAttrTags(APTR touchpad, Tag tag1, ...);
   39 
   40 #endif
   41 
   42 #ifdef __cplusplus
   43 }
   44 #endif /* __cplusplus */
   45 
   46 #endif /* CLIB_TOUCHPAD_PROTOS_H */