]>
git.saurik.com Git - apple/xnu.git/blob - iokit/Drivers/hidsystem/drvAppleADBDevices/AppleADBMouse.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * 18 June 1998 sdouglas Start IOKit version.
24 * 18 Nov 1998 suurballe port to C++
25 * 4 Oct 1999 decesare Revised for Type 4 support and sub-classed drivers.
28 #include <IOKit/adb/IOADBDevice.h>
29 #include <IOKit/hidsystem/IOHIPointing.h>
34 class AppleADBMouse
: public IOHIPointing
36 OSDeclareDefaultStructors(AppleADBMouse
);
39 IOADBDevice
* adbDevice
;
41 IOItemCount _buttonCount
;
44 virtual IOService
* probe(IOService
* provider
, SInt32
* score
);
45 virtual bool start(IOService
* provider
);
46 virtual UInt32
interfaceID(void);
47 virtual UInt32
deviceType(void);
48 virtual IOFixed
resolution(void);
49 virtual IOItemCount
buttonCount(void);
50 virtual void packet(UInt8 adbCommand
, IOByteCount length
, UInt8
* data
);
54 class AppleADBMouseType1
: public AppleADBMouse
56 OSDeclareDefaultStructors(AppleADBMouseType1
);
59 virtual IOService
* probe(IOService
* provider
, SInt32
* score
);
60 virtual bool start(IOService
* provider
);
64 class AppleADBMouseType2
: public AppleADBMouse
66 OSDeclareDefaultStructors(AppleADBMouseType2
);
69 virtual IOService
* probe(IOService
* provider
, SInt32
* score
);
70 virtual bool start(IOService
* provider
);
74 class AppleADBMouseType4
: public AppleADBMouse
76 OSDeclareDefaultStructors(AppleADBMouseType4
);
79 bool Clicking
, Dragging
, DragLock
, typeTrackpad
;
80 virtual IOReturn
setParamProperties( OSDictionary
* dict
);
81 bool enableEnhancedMode();
84 UInt32 deviceSignature
;
85 UInt16 deviceResolution
;
87 UInt8 deviceNumButtons
;
90 virtual IOService
* probe(IOService
* provider
, SInt32
* score
);
91 virtual bool start(IOService
* provider
);
92 virtual void packet(UInt8 adbCommand
, IOByteCount length
, UInt8
* data
);
93 virtual OSData
* copyAccelerationTable();