|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this 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 OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved.
26: *
27: * EventSrcPCPointer.h - PC Pointer EventSrc subclass definition
28: *
29: * HISTORY
30: * 28 Aug 1992 Joe Pasqua
31: * Created.
32: */
33:
34: #ifdef DRIVER_PRIVATE
35:
36: #import <driverkit/IOEventSource.h>
37: #import <driverkit/eventProtocols.h>
38: #import <bsd/dev/ev_types.h>
39: #import <bsd/dev/ppc/PCPointer.h>
40: #import <bsd/dev/ppc/PCPointerDefs.h>
41:
42: @interface EventSrcPCPointer : IOEventSource <ADBPointerTarget>
43: {
44: @private
45: id deviceLock; // Locks access to this device
46: id pointerDevice; // Underlying PC pointer device
47: unsigned lastPointerEvent; // Time of last pointer event (ticks)
48: unsigned resolution; // Pointer resolution
49: NXMouseButton buttonMode; // The "handedness" of the pointer
50: NXMouseScaling pointerScaling; // Scaling table
51: }
52:
53: + probe; // Our factory method
54: - init;
55: - free;
56: - (IOReturn)getIntValues:(unsigned *)parameterArray
57: forParameter:(IOParameterName)parameterName
58: count:(unsigned int *)count;
59: - (IOReturn)setIntValues:(unsigned *)parameterArray
60: forParameter:(IOParameterName)parameterName
61: count:(unsigned int)count;
62:
63: @end
64:
65: #endif /* DRIVER_PRIVATE */
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.