1/* 2 * 3 * @APPLE_LICENSE_HEADER_START@ 4 * 5 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. 6 * 7 * This file contains Original Code and/or Modifications of Original Code 8 * as defined in and that are subject to the Apple Public Source License 9 * Version 2.0 (the 'License'). You may not use this file except in 10 * compliance with the License. Please obtain a copy of the License at 11 * http://www.opensource.apple.com/apsl/ and read it before using this 12 * file. 13 * 14 * The Original Code and all software distributed under the License are 15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 19 * Please see the License for the specific language governing rights and 20 * limitations under the License. 21 * 22 * @APPLE_LICENSE_HEADER_END@ 23 */ 24 25#ifndef _IOKIT_HID_EMBEDDEDHIDKEYS_H_ 26#define _IOKIT_HID_EMBEDDEDHIDKEYS_H_ 27 28#include <sys/cdefs.h> 29 30__BEGIN_DECLS 31 32#define kIOHIDThresholdXKey "ThresholdX" 33#define kIOHIDThresholdYKey "ThresholdY" 34#define kIOHIDThresholdZKey "ThresholdZ" 35#define kIOHIDThresholdPeriodKey "ThresholdPeriod" 36 37 38#define kIOHIDAccelerometerShakeKey "Shake" 39#define kIOHIDGyroShakeKey "Shake" 40 41#define kIOHIDOrientationKey "Orientation" 42 43/*! 44 @typedef IOHIDOrientationType 45 @abstract Orientation of event triggered. 46 @discussion 47 @constant kIOHIDOrientationTypeUndefined 48 @constant kIOHIDOrientationTypeNorth 49 @constant kIOHIDOrientationTypeSouth 50 @constant kIOHIDOrientationTypeEast 51 @constant kIOHIDOrientationTypeWest 52 @constant kIOHIDOrientationTypeNorthEast 53 @constant kIOHIDOrientationTypeNorthWest 54 @constant kIOHIDOrientationTypeSoutEast 55 @constant kIOHIDOrientationTypeSouthWest 56 */ 57enum { 58 kIOHIDOrientationTypeUndefined = 0, 59 kIOHIDOrientationTypeNorth = 1, 60 kIOHIDOrientationTypeSouth = 2, 61 kIOHIDOrientationTypeEast = 3, 62 kIOHIDOrientationTypeWest = 4, 63 kIOHIDOrientationTypeNorthEast = 5, 64 kIOHIDOrientationTypeNorthWest = 6, 65 kIOHIDOrientationTypeSouthEast = 7, 66 kIOHIDOrientationTypeSouthWest = 8 67}; 68typedef uint32_t IOHIDOrientationType; 69 70#define kIOHIDPlacementKey "Placement" 71/*! 72 @typedef IOHIDPlacementType 73 @abstract Placement of event triggered. 74 @discussion 75 @constant kIOHIDPlacementTypeUndefined 76 @constant kIOHIDPlacementTypeTop 77 @constant kIOHIDPlacementTypeBottom 78 */ 79enum { 80 kIOHIDPlacementTypeUndefined = 0, 81 kIOHIDPlacementTypeTop = 1, 82 kIOHIDPlacementTypeBottom = 2 83}; 84typedef uint32_t IOHIDPlacementType; 85 86 87 88__END_DECLS 89 90#endif /* !_IOKIT_HID_EMBEDDEDHIDKEYS_H_ */ 91