af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 1991-1998 by LCS/Telegraphics
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2002 Patrik Stridvall
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__cplusplus) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WT_CSRCHANGE _WT_CSRCHANGE(WT_DEFBASE) /* 1.1 */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * COMMON DATA DEFS
af062818b47340eef15700d2f0211576ba3506eevboxsync/* WTPKT bits */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PK_SERIAL_NUMBER 0x0010 /* packet serial number */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PK_NORMAL_PRESSURE 0x0400 /* normal or tip pressure */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PK_TANGENT_PRESSURE 0x0800 /* tangential or barrel pressure */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PK_ORIENTATION 0x1000 /* orientation info: tilts */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef DWORD FIX32; /* fixed-point arithmetic type */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ROUND(x) (INT(x) + (FRAC(x) > (WORD)0x8000))
af062818b47340eef15700d2f0211576ba3506eevboxsync /* fraction done bytewise */ \
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * INFO DATA DEFS
af062818b47340eef15700d2f0211576ba3506eevboxsync/* unit specifiers */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* system button assignment values */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* for Pen Windows */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* hardware capabilities */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* cursor capabilities */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* info categories */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* from http://www.wacomeng.com/devsupport/ibmpc/wacomwindevfaq.html */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * CONTEXT DATA DEFS
af062818b47340eef15700d2f0211576ba3506eevboxsync} LOGCONTEXTA, *PLOGCONTEXTA, *NPLOGCONTEXTA, *LPLOGCONTEXTA;
af062818b47340eef15700d2f0211576ba3506eevboxsync} LOGCONTEXTW, *PLOGCONTEXTW, *NPLOGCONTEXTW, *LPLOGCONTEXTW;
af062818b47340eef15700d2f0211576ba3506eevboxsync/* context option values */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* context status values */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* context lock values */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * EVENT DATA DEFS
af062818b47340eef15700d2f0211576ba3506eevboxsync/* For packet structure definition, see pktdef.h */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* packet status values */
af062818b47340eef15700d2f0211576ba3506eevboxsync} ORIENTATION, *PORIENTATION, *NPORIENTATION, *LPORIENTATION;
af062818b47340eef15700d2f0211576ba3506eevboxsync/* grandfather in obsolete member names. */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* relative buttons */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * DEVICE CONFIG CONSTANTS
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * HOOK CONSTANTS
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * PREFERENCE FUNCTION CONSTANTS
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * EXTENSION TAGS AND CONSTANTS
af062818b47340eef15700d2f0211576ba3506eevboxsync/* constants for use with pktdef.h */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Extension tags. */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WTX_CSRMASK 3 /* select input by cursor type; 1.1 */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WTX_XBTNMASK 4 /* Extended button mask; 1.1 */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * Functions
af062818b47340eef15700d2f0211576ba3506eevboxsync/* callback function types */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL (WINAPI * WTENUMPROC)(HCTX, LPARAM); /* changed CALLBACK->WINAPI, 1.1 */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef LRESULT (WINAPI * WTHOOKPROC)(int, WPARAM, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsync/* BASIC FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* VISIBILITY FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* CONTEXT EDITING FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* ADVANCED PACKET AND QUEUE FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsyncint WINAPI WTDataGet(HCTX, UINT, UINT, int, LPVOID, LPINT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint WINAPI WTDataPeek(HCTX, UINT, UINT, int, LPVOID, LPINT);
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER HANDLE FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER CONTEXT FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrContextEnum(HMGR, WTENUMPROC, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsyncHCTX WINAPI WTMgrDefContextEx(HMGR, UINT, BOOL); /* 1.1 */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER CONFIG BOX FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER PACKET HOOK FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* OBSOLETE IN WIN32! */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER PREFERENCE DATA FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrCsrButtonMap(HMGR, UINT, LPBYTE, LPBYTE);
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrCsrPressureBtnMarks(HMGR, UINT, DWORD, DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrCsrPressureResponse(HMGR, UINT, UINT *, UINT *);
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * Win32 replacements for non-portable functions.
af062818b47340eef15700d2f0211576ba3506eevboxsync/* ADVANCED PACKET AND QUEUE FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER CONFIG BOX FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ORD_WTMgrConfigReplaceEx WINELIB_NAME_AW(ORD_WTMgrConfigReplaceEx)
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrConfigReplaceExA(HMGR, BOOL, LPSTR, LPSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrConfigReplaceExW(HMGR, BOOL, LPWSTR, LPSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WTMgrConfigReplaceEx WINELIB_NAME_AW(WTMgrConfigReplaceEx)
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER PACKET HOOK FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ORD_WTMgrPacketHookEx WINELIB_NAME_AW(ORD_WTMgrPacketHookEx)
af062818b47340eef15700d2f0211576ba3506eevboxsyncHWTHOOK WINAPI WTMgrPacketHookExA(HMGR, int, LPSTR, LPSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsyncHWTHOOK WINAPI WTMgrPacketHookExW(HMGR, int, LPWSTR, LPSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WTMgrPacketHookEx WINELIB_NAME_AW(WTMgrPacketHookEx)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLRESULT WINAPI WTMgrPacketHookNext(HWTHOOK, int, WPARAM, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsync/* MANAGER PREFERENCE DATA FUNCTIONS */
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI WTMgrCsrPressureBtnMarksEx(HMGR, UINT, UINT *, UINT *);
af062818b47340eef15700d2f0211576ba3506eevboxsync} /* extern "C" */
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__cplusplus) */
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__WINE_WINTAB_H */