/* * * @APPLE_LICENSE_HEADER_START@ * * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this * file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_LICENSE_HEADER_END@ */ #ifndef _IOKIT_HID_IOHIDEVENTTYPES_H #define _IOKIT_HID_IOHIDEVENTTYPES_H /* { */ #include #define IOHIDEventTypeMask(type) (1< Please Note: If you append a child digitizer event to a parent digitizer event, appropriate state will be transfered on to the parent. @constant kIOHIDDigitizerEventRange Issued when the range state has changed. @constant kIOHIDDigitizerEventTouch Issued when the touch state has changed. @constant kIOHIDDigitizerEventPosition Issued when the position has changed. @constant kIOHIDDigitizerEventStop Issued when motion has achieved a state of calculated non-movement. @constant kIOHIDDigitizerEventPeak Issues when new maximum values have been detected. @constant kIOHIDDigitizerEventIdentity Issued when the identity has changed. @constant kIOHIDDigitizerEventAttribute Issued when an attribute has changed. @constant kIOHIDDigitizerEventUpSwipe Issued when an up swipe has been detected. @constant kIOHIDDigitizerEventDownSwipe Issued when an down swipe has been detected. @constant kIOHIDDigitizerEventLeftSwipe Issued when an left swipe has been detected. @constant kIOHIDDigitizerEventRightSwipe Issued when an right swipe has been detected. @constant kIOHIDDigitizerEventSwipeMask Mask used to gather swipe events. */ enum { kIOHIDDigitizerEventRange = 0x00000001, kIOHIDDigitizerEventTouch = 0x00000002, kIOHIDDigitizerEventPosition = 0x00000004, kIOHIDDigitizerEventStop = 0x00000008, kIOHIDDigitizerEventPeak = 0x00000010, kIOHIDDigitizerEventIdentity = 0x00000020, kIOHIDDigitizerEventAttribute = 0x00000040, kIOHIDDigitizerEventCancel = 0x00000080, kIOHIDDigitizerEventStart = 0x00000100, kIOHIDDigitizerEventResting = 0x00000200, kIOHIDDigitizerEventSwipeUp = 0x01000000, kIOHIDDigitizerEventSwipeDown = 0x02000000, kIOHIDDigitizerEventSwipeLeft = 0x04000000, kIOHIDDigitizerEventSwipeRight = 0x08000000, kIOHIDDigitizerEventSwipeMask = 0xFF000000, }; typedef uint32_t IOHIDDigitizerEventMask; enum { kIOHIDEventOptionNone = 0x00000000, kIOHIDEventOptionIsAbsolute = 0x00000001, kIOHIDEventOptionIsCollection = 0x00000002, kIOHIDEventOptionPixelUnits = 0x00000004 }; typedef uint32_t IOHIDEventOptionBits; enum { kIOHIDEventPhaseUndefined = 0x00, kIOHIDEventPhaseBegan = 0x01, kIOHIDEventPhaseChanged = 0x02, kIOHIDEventPhaseEnded = 0x04, kIOHIDEventPhaseCancelled = 0x08, kIOHIDEventPhaseMayBegin = 0x80, kIOHIDEventEventPhaseMask = 0xFF, kIOHIDEventEventOptionPhaseShift = 24, }; typedef uint16_t IOHIDEventPhaseBits; /*! @typedef IOHIDSymbolicHotKey @abstract Enumerted values for sending symbolic hot key events. @constant kIOHIDSymbolicHotKeyDictionaryApp This will get translated into a kCGSDictionaryAppHotKey by CG. @constant kIOHIDSymbolicHotKeyOptionIsCGSHotKey This is an option flag to denote that the SymbolicHotKey value is actually from the enumeration in CGSHotKeys.h. */ enum { kIOHIDSymbolicHotKeyUndefined, kIOHIDSymbolicHotKeyDictionaryApp, }; typedef uint32_t IOHIDSymbolicHotKeyValue; enum { kIOHIDEventSenderIDUndefined = 0x0000000000000000LL, }; typedef uint64_t IOHIDEventSenderID; // must be the same size as that returned from IORegistryEntry::getRegistryEntryID #ifndef KERNEL /*! @typedef IOHIDFloat */ #ifdef __LP64__ typedef double IOHIDFloat; #else typedef float IOHIDFloat; #endif /*! @typedef IOHID3DPoint */ typedef struct _IOHID3DPoint { IOHIDFloat x; IOHIDFloat y; IOHIDFloat z; } IOHID3DPoint; #endif #endif /* _IOKIT_HID_IOHIDEVENTTYPES_H } */