/* * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * 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@ */ /****************************************************************************** event_status_driver.h API for the events status driver. This file contains public API. mpaque 11Oct91 Copyright 1991 NeXT Computer, Inc. Modified: ******************************************************************************/ #ifndef _DRIVERS_EVENT_STATUS_DRIVER_ #define _DRIVERS_EVENT_STATUS_DRIVER_ __BEGIN_DECLS #include <mach/port.h> #include <IOKit/hidsystem/IOLLEvent.h> #include <IOKit/hidsystem/IOHIDTypes.h> #include <AvailabilityMacros.h> #include <IOKit/IOKitLib.h> /* * Event System Handle: * * Information used by the system between calls to NXOpenEventSystem and * NXCloseEventSystem. The application should not * access any of the elements of this structure. */ typedef mach_port_t NXEventHandle; /* Open and Close */ NXEventHandle NXOpenEventStatus(void) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); void NXCloseEventStatus(NXEventHandle handle) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); /* Status */ extern NXEventSystemInfoType NXEventSystemInfo(NXEventHandle handle, char *flavor, int *evs_info, unsigned int *evs_info_cnt) __deprecated; /* Keyboard */ extern void NXSetKeyRepeatInterval(NXEventHandle handle, double seconds) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern double NXKeyRepeatInterval(NXEventHandle handle) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern void NXSetKeyRepeatThreshold(NXEventHandle handle, double threshold) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern double NXKeyRepeatThreshold(NXEventHandle handle) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern void NXResetKeyboard(NXEventHandle handle) __deprecated; /* Mouse */ extern void NXSetClickTime(NXEventHandle handle, double seconds)__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern double NXClickTime(NXEventHandle handle) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern void NXSetClickSpace(NXEventHandle handle, _NXSize_ *area) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern void NXGetClickSpace(NXEventHandle handle, _NXSize_ *area) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_12, __IPHONE_NA, __IPHONE_NA); extern void NXResetMouse(NXEventHandle handle) __deprecated; /* * The following functions have been removed. * * NXIdleTime * ÊÊÊÊSee CGEventSourceSecondsSinceLastEventType. * * NXSetKeyMapping * NXKeyMappingLength * NXGetKeyMapping * ÊÊÊÊThese do not have a drop in replacement. ÊSee UCKeyTranslate. * * NXSetMouseScaling * ÊÊÊÊSee IOHIDSetAccelerationWithKey and IOHIDSetMouseAcceleration. * * NXGetMouseScaling * ÊÊÊÊSee IOHIDGetAccelerationWithKey and IOHIDGetMouseAcceleration. * * NXSetAutoDimThreshold * NXSetAutoDimState * ÊÊÊÊSee IOPMSetAggressiveness and kPMMinutesToDim. * * NXAutoDimThreshold * NXAutoDimTime * NXAutoDimState * ÊÊÊÊSee IOPMGetAggressiveness and kPMMinutesToDim. * * NXSetAutoDimBrightness * NXAutoDimBrightness * NXSetScreenBrightness * NXScreenBrightness * ÊÊÊÊThis functionality is unsupported. */ __END_DECLS #endif /*_DRIVERS_EVENT_STATUS_DRIVER_ */