home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-03-04 | 16.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: MoveMouse.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Mar 4 19:54:23 1996, modified Mon Mar 4 19:54:23 1996, creator 'CWIE', type ASCII, 16464 bytes "MoveMouse.c" , at 0x40d0 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 6f 76 65 4d 6f | 75 73 65 2e 63 00 00 00 |..MoveMo|use.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 40 50 00 | 00 01 9a ad 61 41 3f ad |.....@P.|....aA?.|
|00000060| 61 41 3f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |aA?.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c8 8e 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 4d 6f | 76 65 4d 6f 75 73 65 2e |/*. * Mo|veMouse.|
|00000090| 63 0d 20 2a 0d 20 2a 20 | 42 61 73 65 64 20 6f 6e |c. *. * |Based on|
|000000a0| 20 63 6f 64 65 20 66 72 | 6f 6d 20 4a 6f 6e 20 57 | code fr|om Jon W|
|000000b0| 74 74 65 2c 20 44 65 6e | 69 73 20 50 65 6c 6c 69 |tte, Den|is Pelli|
|000000c0| 2c 20 41 70 70 6c 65 2c | 20 61 6e 64 20 61 20 74 |, Apple,| and a t|
|000000d0| 69 6d 65 6c 79 20 73 75 | 67 67 65 73 74 69 6f 6e |imely su|ggestion|
|000000e0| 0d 20 2a 20 66 72 6f 6d | 20 42 6f 20 4c 69 6e 64 |. * from| Bo Lind|
|000000f0| 62 65 72 67 68 2e 20 20 | 54 68 69 73 20 63 6f 64 |bergh. |This cod|
|00000100| 65 20 63 68 65 63 6b 73 | 20 74 6f 20 73 65 65 20 |e checks| to see |
|00000110| 69 66 20 74 68 65 20 43 | 75 72 73 6f 72 20 44 65 |if the C|ursor De|
|00000120| 76 69 63 65 20 4d 61 6e | 61 67 65 72 20 28 43 44 |vice Man|ager (CD|
|00000130| 4d 29 0d 20 2a 20 69 73 | 20 70 72 65 73 65 6e 74 |M). * is| present|
|00000140| 2e 20 20 49 66 20 69 74 | 20 69 73 2c 20 69 74 20 |. If it| is, it |
|00000150| 75 73 65 73 20 74 68 65 | 20 43 44 4d 20 63 61 6c |uses the| CDM cal|
|00000160| 6c 73 3b 20 6f 74 68 65 | 72 77 69 73 65 2c 20 69 |ls; othe|rwise, i|
|00000170| 74 20 64 69 72 65 63 74 | 6c 79 20 6a 61 62 73 20 |t direct|ly jabs |
|00000180| 6c 6f 77 20 6d 65 6d 6f | 72 79 2c 0d 20 2a 20 69 |low memo|ry,. * i|
|00000190| 6e 20 74 68 65 20 74 72 | 61 64 69 74 69 6f 6e 61 |n the tr|aditiona|
|000001a0| 6c 20 6d 61 6e 6e 65 72 | 2e 0d 20 2a 0d 20 2a 20 |l manner|.. *. * |
|000001b0| 41 6c 73 6f 20 69 6e 63 | 6c 75 64 65 64 20 69 73 |Also inc|luded is|
|000001c0| 20 67 6c 75 65 20 66 6f | 72 20 61 6c 6c 20 6f 66 | glue fo|r all of|
|000001d0| 20 74 68 65 20 43 44 4d | 20 72 6f 75 74 69 6e 65 | the CDM| routine|
|000001e0| 73 2e 20 20 4f 6e 20 74 | 68 65 20 50 6f 77 65 72 |s. On t|he Power|
|000001f0| 50 43 2c 20 74 68 65 20 | 43 44 4d 20 67 6c 75 65 |PC, the |CDM glue|
|00000200| 20 69 73 0d 20 2a 20 63 | 75 72 72 65 6e 74 6c 79 | is. * c|urrently|
|00000210| 20 28 31 31 2f 39 35 29 | 20 6d 69 73 73 69 6e 67 | (11/95)| missing|
|00000220| 20 66 72 6f 6d 20 49 6e | 74 65 72 66 61 63 65 4c | from In|terfaceL|
|00000230| 69 62 2e 20 20 53 69 6e | 63 65 20 49 6e 74 65 72 |ib. Sin|ce Inter|
|00000240| 66 61 63 65 4c 69 62 20 | 69 73 20 61 20 73 68 61 |faceLib |is a sha|
|00000250| 72 65 64 20 6c 69 62 72 | 61 72 79 2c 20 79 6f 75 |red libr|ary, you|
|00000260| 20 63 61 6e 27 74 0d 20 | 2a 20 61 73 73 75 6d 65 | can't. |* assume|
|00000270| 20 74 68 65 20 67 6c 75 | 65 20 77 69 6c 6c 20 62 | the glu|e will b|
|00000280| 65 20 70 72 65 73 65 6e | 74 20 6f 6e 20 61 20 74 |e presen|t on a t|
|00000290| 61 72 67 65 74 20 6d 61 | 63 68 69 6e 65 2e 20 20 |arget ma|chine. |
|000002a0| 53 6f 20 74 68 69 73 20 | 63 6f 64 65 20 69 6e 63 |So this |code inc|
|000002b0| 6c 75 64 65 73 0d 20 2a | 20 69 74 73 20 6f 77 6e |ludes. *| its own|
|000002c0| 20 67 6c 75 65 2c 20 74 | 68 65 20 63 6f 6e 73 74 | glue, t|he const|
|000002d0| 72 75 63 74 69 6f 6e 20 | 6f 66 20 77 68 69 63 68 |ruction |of which|
|000002e0| 20 69 73 20 74 68 61 6e | 6b 73 20 74 6f 20 61 20 | is than|ks to a |
|000002f0| 68 65 6c 70 66 75 6c 20 | 73 75 67 67 65 73 74 69 |helpful |suggesti|
|00000300| 6f 6e 20 66 72 6f 6d 20 | 42 6f 20 4c 69 6e 64 62 |on from |Bo Lindb|
|00000310| 65 72 67 68 2e 0d 20 2a | 0d 20 2a 20 46 6f 72 20 |ergh.. *|. * For |
|00000320| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |document|ation of|
|00000330| 20 74 68 65 20 43 44 4d | 2c 20 73 65 65 20 41 70 | the CDM|, see Ap|
|00000340| 70 6c 65 20 54 65 63 68 | 20 4e 6f 74 65 20 22 48 |ple Tech| Note "H|
|00000350| 57 20 30 31 20 2d 20 41 | 44 42 20 28 54 68 65 20 |W 01 - A|DB (The |
|00000360| 55 6e 74 6f 6c 64 20 53 | 74 6f 72 79 3a 20 53 70 |Untold S|tory: Sp|
|00000370| 61 63 65 20 41 6c 69 65 | 6e 73 0d 20 2a 20 61 74 |ace Alie|ns. * at|
|00000380| 65 20 6d 79 20 6d 6f 75 | 73 65 29 22 2e 0d 20 2a |e my mou|se)".. *|
|00000390| 0d 2a 20 2d 20 44 61 6e | 20 53 65 61 72 73 20 28 |.* - Dan| Sears (|
|000003a0| 73 65 61 72 73 40 6e 65 | 74 63 6f 6d 2e 63 6f 6d |sears@ne|tcom.com|
|000003b0| 29 0d 0d 20 2a 20 46 72 | 6f 6d 20 41 70 70 6c 65 |).. * Fr|om Apple|
|000003c0| 20 44 65 76 65 6c 6f 70 | 65 72 20 53 65 72 76 69 | Develop|er Servi|
|000003d0| 63 65 73 3a 0d 20 2a 0d | 20 2a 20 49 6e 20 74 68 |ces:. *.| * In th|
|000003e0| 65 20 70 61 73 74 2c 20 | 6d 6f 76 69 6e 67 20 74 |e past, |moving t|
|000003f0| 68 65 20 63 75 72 73 6f | 72 20 70 72 6f 67 72 61 |he curso|r progra|
|00000400| 6d 61 74 69 63 61 6c 6c | 79 20 6f 6e 20 74 68 65 |maticall|y on the|
|00000410| 20 4d 61 63 69 6e 74 6f | 73 68 20 68 61 73 0d 20 | Macinto|sh has. |
|00000420| 2a 20 65 6e 74 61 69 6c | 65 64 20 74 68 65 20 6d |* entail|ed the m|
|00000430| 61 6e 69 70 75 6c 61 74 | 69 6f 6e 20 6f 66 20 6c |anipulat|ion of l|
|00000440| 6f 77 20 6d 65 6d 6f 72 | 79 20 67 6c 6f 62 61 6c |ow memor|y global|
|00000450| 73 2e 20 54 68 69 73 20 | 68 61 73 20 77 6f 72 6b |s. This |has work|
|00000460| 65 64 20 66 6f 72 0d 20 | 2a 20 61 6c 6c 20 6d 61 |ed for. |* all ma|
|00000470| 63 73 20 66 6f 72 20 71 | 75 69 74 65 20 73 6f 6d |cs for q|uite som|
|00000480| 65 20 74 69 6d 65 2e 20 | 42 75 74 20 77 69 74 68 |e time. |But with|
|00000490| 20 74 68 65 20 61 64 76 | 65 6e 74 20 6f 66 20 74 | the adv|ent of t|
|000004a0| 68 65 20 70 6f 77 65 72 | 20 62 6f 6f 6b 0d 20 2a |he power| book. *|
|000004b0| 20 73 65 72 69 65 73 20 | 61 6e 64 20 6d 61 6e 79 | series |and many|
|000004c0| 20 33 72 64 20 70 61 72 | 74 79 20 74 72 61 63 6b | 3rd par|ty track|
|000004d0| 20 62 61 6c 6c 73 2c 20 | 69 74 20 68 61 73 20 62 | balls, |it has b|
|000004e0| 65 63 6f 6d 65 20 61 70 | 70 61 72 65 6e 74 20 74 |ecome ap|parent t|
|000004f0| 68 61 74 20 74 68 65 0d | 20 2a 20 6c 6f 77 20 6d |hat the.| * low m|
|00000500| 65 6d 6f 72 79 20 67 6c | 6f 62 61 6c 73 20 6e 6f |emory gl|obals no|
|00000510| 20 6c 6f 6e 67 65 72 20 | 63 6f 6e 74 61 69 6e 65 | longer |containe|
|00000520| 64 20 61 64 65 71 75 61 | 74 65 20 69 6e 66 6f 72 |d adequa|te infor|
|00000530| 6d 61 74 69 6f 6e 20 66 | 6f 72 20 74 68 65 0d 20 |mation f|or the. |
|00000540| 2a 20 73 79 73 74 65 6d | 20 74 6f 20 74 72 75 6c |* system| to trul|
|00000550| 79 20 73 75 70 70 6f 72 | 74 20 61 6c 6c 20 74 79 |y suppor|t all ty|
|00000560| 70 65 73 20 6f 66 20 70 | 6f 73 69 74 69 6f 6e 69 |pes of p|ositioni|
|00000570| 6e 67 20 64 65 76 69 63 | 65 73 2e 20 53 6f 2c 20 |ng devic|es. So, |
|00000580| 77 69 74 68 20 74 68 65 | 0d 20 2a 20 6e 65 77 20 |with the|. * new |
|00000590| 43 65 6e 74 72 69 73 20 | 43 50 55 27 73 2c 20 61 |Centris |CPU's, a|
|000005a0| 6e 64 20 43 50 55 27 73 | 20 66 72 6f 6d 20 61 6c |nd CPU's| from al|
|000005b0| 6c 20 6c 69 6e 65 73 20 | 61 66 74 65 72 20 77 65 |l lines |after we|
|000005c0| 20 61 72 65 20 69 6d 70 | 6c 65 6d 65 6e 74 69 6e | are imp|lementin|
|000005d0| 67 20 61 0d 20 2a 20 6e | 65 77 20 74 6f 6f 6c 20 |g a. * n|ew tool |
|000005e0| 73 65 74 20 74 68 61 74 | 20 70 72 6f 76 69 64 65 |set that| provide|
|000005f0| 73 20 61 20 6d 75 63 68 | 20 6d 6f 72 65 20 63 6f |s a much| more co|
|00000600| 6d 70 72 65 68 65 6e 73 | 69 76 65 20 73 65 74 20 |mprehens|ive set |
|00000610| 6f 66 20 75 74 69 6c 69 | 74 69 65 73 0d 20 2a 20 |of utili|ties. * |
|00000620| 66 6f 72 20 64 65 61 6c | 69 6e 67 20 77 69 74 68 |for deal|ing with|
|00000630| 20 74 68 65 20 63 75 72 | 73 6f 72 20 6c 6f 63 61 | the cur|sor loca|
|00000640| 74 69 6f 6e 20 61 6e 64 | 20 6d 6f 75 73 65 20 62 |tion and| mouse b|
|00000650| 75 74 74 6f 6e 20 73 74 | 61 74 65 2e 20 57 65 20 |utton st|ate. We |
|00000660| 63 61 6c 6c 0d 20 2a 20 | 74 68 69 73 20 6e 65 77 |call. * |this new|
|00000670| 20 6d 61 6e 61 67 65 72 | 20 74 68 65 20 43 75 72 | manager| the Cur|
|00000680| 73 6f 72 20 44 65 76 69 | 63 65 20 4d 61 6e 61 67 |sor Devi|ce Manag|
|00000690| 65 72 2c 20 61 6e 64 20 | 44 54 53 20 77 69 6c 6c |er, and |DTS will|
|000006a0| 20 62 65 20 64 6f 63 75 | 6d 65 6e 74 69 6e 67 0d | be docu|menting.|
|000006b0| 20 2a 20 69 74 20 69 6e | 20 61 20 66 75 74 75 72 | * it in| a futur|
|000006c0| 65 20 74 65 63 68 20 6e | 6f 74 2c 20 62 75 74 20 |e tech n|ot, but |
|000006d0| 73 69 6e 63 65 20 6d 61 | 6e 79 20 6d 61 63 68 69 |since ma|ny machi|
|000006e0| 6e 65 73 20 61 72 65 20 | 6e 6f 77 20 73 68 69 70 |nes are |now ship|
|000006f0| 70 69 6e 67 20 74 68 61 | 74 0d 20 2a 20 64 6f 20 |ping tha|t. * do |
|00000700| 6e 6f 74 20 75 73 65 20 | 74 68 65 20 74 72 61 64 |not use |the trad|
|00000710| 69 74 69 6f 6e 61 6c 20 | 6c 6f 77 20 6d 65 6d 6f |itional |low memo|
|00000720| 72 79 20 67 6c 6f 62 61 | 6c 73 20 74 6f 20 67 65 |ry globa|ls to ge|
|00000730| 74 20 74 68 65 20 6d 6f | 75 73 65 20 6c 6f 63 61 |t the mo|use loca|
|00000740| 74 69 6f 6e 0d 20 2a 20 | 61 6e 64 20 70 6f 73 69 |tion. * |and posi|
|00000750| 74 69 6f 6e 20 74 68 65 | 20 6d 6f 75 73 65 2c 20 |tion the| mouse, |
|00000760| 69 74 20 69 73 20 69 6d | 70 6f 72 74 61 6e 74 20 |it is im|portant |
|00000770| 74 6f 20 22 6c 65 61 6b | 22 20 61 20 6c 69 74 74 |to "leak|" a litt|
|00000780| 6c 65 20 6f 66 20 74 68 | 65 20 74 65 63 68 0d 20 |le of th|e tech. |
|00000790| 2a 20 6e 6f 74 65 20 69 | 6e 66 6f 72 6d 61 74 69 |* note i|nformati|
|000007a0| 6f 6e 20 65 61 72 6c 79 | 2e 0d 20 2a 0d 20 2a 20 |on early|.. *. * |
|000007b0| 46 69 72 73 74 2c 20 74 | 68 65 20 43 44 4d 20 28 |First, t|he CDM (|
|000007c0| 43 75 72 73 6f 72 20 64 | 65 76 69 63 65 20 6d 61 |Cursor d|evice ma|
|000007d0| 6e 61 67 65 72 29 20 68 | 61 73 20 69 74 73 20 6f |nager) h|as its o|
|000007e0| 77 6e 20 74 72 61 70 20 | 28 24 41 41 44 42 29 20 |wn trap |($AADB) |
|000007f0| 61 6e 64 20 79 6f 75 0d | 20 2a 20 63 61 6e 20 64 |and you.| * can d|
|00000800| 65 74 65 72 6d 69 6e 65 | 20 69 66 20 61 20 6d 61 |etermine| if a ma|
|00000810| 63 68 69 6e 65 20 73 75 | 70 70 6f 72 74 73 20 74 |chine su|pports t|
|00000820| 68 65 20 43 44 4d 20 62 | 79 20 75 73 69 6e 67 20 |he CDM b|y using |
|00000830| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 54 72 61 |the stan|dard Tra|
|00000840| 70 41 76 61 69 6c 61 62 | 6c 65 0d 20 2a 20 72 6f |pAvailab|le. * ro|
|00000850| 75 74 69 6e 65 2e 20 28 | 53 65 65 20 69 6e 73 69 |utine. (|See insi|
|00000860| 64 65 20 6d 61 63 20 66 | 6f 72 20 74 68 65 20 73 |de mac f|or the s|
|00000870| 6f 75 72 63 65 20 63 6f | 64 65 20 74 6f 20 54 72 |ource co|de to Tr|
|00000880| 61 70 0d 20 2a 20 41 76 | 61 69 6c 61 62 6c 65 29 |ap. * Av|ailable)|
|00000890| 2e 20 4f 6e 63 65 20 79 | 6f 75 20 68 61 76 65 20 |. Once y|ou have |
|000008a0| 64 65 74 65 72 6d 69 6e | 65 64 20 74 68 61 74 20 |determin|ed that |
|000008b0| 74 68 65 20 43 44 4d 20 | 65 78 69 73 74 73 2c 20 |the CDM |exists, |
|000008c0| 79 6f 75 20 73 68 6f 75 | 6c 64 0d 20 2a 20 74 72 |you shou|ld. * tr|
|000008d0| 79 20 6e 6f 74 20 74 6f | 20 75 73 65 20 74 68 65 |y not to| use the|
|000008e0| 20 6c 6f 77 20 6d 65 6d | 6f 72 79 20 67 6c 6f 62 | low mem|ory glob|
|000008f0| 61 6c 73 20 52 61 77 4d | 6f 75 73 65 20 61 6e 64 |als RawM|ouse and|
|00000900| 20 4d 54 65 6d 70 20 74 | 6f 20 67 65 74 20 74 68 | MTemp t|o get th|
|00000910| 65 0d 20 2a 20 63 75 72 | 72 65 6e 74 20 63 75 72 |e. * cur|rent cur|
|00000920| 73 6f 72 20 6c 6f 63 61 | 74 69 6f 6e 2c 20 6f 72 |sor loca|tion, or|
|00000930| 20 73 65 74 20 61 20 6e | 65 77 20 63 75 72 73 6f | set a n|ew curso|
|00000940| 72 20 6c 6f 63 61 74 69 | 6f 6e 2e 20 49 6e 73 74 |r locati|on. Inst|
|00000950| 65 61 64 20 74 68 65 20 | 43 44 4d 0d 20 2a 20 70 |ead the |CDM. * p|
|00000960| 72 6f 76 69 64 65 73 20 | 33 20 63 61 6c 6c 73 20 |rovides |3 calls |
|00000970| 77 68 69 63 68 20 79 6f | 75 20 63 61 6e 20 75 73 |which yo|u can us|
|00000980| 65 20 74 6f 20 67 65 74 | 20 74 68 69 73 20 69 6e |e to get| this in|
|00000990| 66 6f 2c 20 74 68 65 20 | 66 69 72 73 74 20 69 73 |fo, the |first is|
|000009a0| 0d 20 2a 20 43 72 73 72 | 44 65 76 4e 65 78 74 44 |. * Crsr|DevNextD|
|000009b0| 65 76 69 63 65 20 77 68 | 69 63 68 20 77 69 6c 6c |evice wh|ich will|
|000009c0| 20 67 69 76 65 20 79 6f | 75 20 74 68 65 20 6e 65 | give yo|u the ne|
|000009d0| 78 74 20 63 75 72 73 6f | 72 20 64 65 76 69 63 65 |xt curso|r device|
|000009e0| 20 72 65 63 6f 72 64 20 | 69 6e 0d 20 2a 20 74 68 | record |in. * th|
|000009f0| 65 20 43 44 4d 20 6c 69 | 73 74 2c 20 69 66 20 79 |e CDM li|st, if y|
|00000a00| 6f 75 20 70 61 73 73 20 | 69 74 20 61 20 4e 55 4c |ou pass |it a NUL|
|00000a10| 4c 2c 20 69 74 20 77 69 | 6c 6c 20 67 69 76 65 20 |L, it wi|ll give |
|00000a20| 79 6f 75 20 74 68 65 20 | 68 65 61 64 20 6f 66 20 |you the |head of |
|00000a30| 74 68 65 0d 20 2a 20 6c | 69 73 74 2e 20 4f 6e 63 |the. * l|ist. Onc|
|00000a40| 65 20 79 6f 75 20 68 61 | 76 65 20 74 68 65 20 66 |e you ha|ve the f|
|00000a50| 69 72 73 74 20 63 75 72 | 73 6f 72 20 64 65 76 69 |irst cur|sor devi|
|00000a60| 63 65 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 69 |ce you c|an use i|
|00000a70| 74 20 74 6f 20 67 65 74 | 20 74 68 65 0d 20 2a 20 |t to get| the. * |
|00000a80| 43 75 72 73 6f 72 20 64 | 61 74 61 20 72 65 63 6f |Cursor d|ata reco|
|00000a90| 72 64 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e |rd which| contain|
|00000aa0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 75 |s the cu|rrent cu|
|00000ab0| 72 73 6f 72 20 6c 6f 63 | 61 74 69 6f 6e 20 69 6e |rsor loc|ation in|
|00000ac0| 20 69 74 73 0d 20 2a 20 | 77 68 65 72 65 20 66 69 | its. * |where fi|
|00000ad0| 65 6c 64 2e 20 59 6f 75 | 20 63 61 6e 20 73 65 74 |eld. You| can set|
|00000ae0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 6f 63 | the cur|rent loc|
|00000af0| 61 74 69 6f 6e 20 77 69 | 74 68 20 65 69 74 68 65 |ation wi|th eithe|
|00000b00| 72 20 74 68 65 0d 20 2a | 20 43 72 73 72 44 65 76 |r the. *| CrsrDev|
|00000b10| 4d 6f 76 65 20 28 77 68 | 69 63 68 20 6d 6f 76 65 |Move (wh|ich move|
|00000b20| 73 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 74 68 |s relati|ve to th|
|00000b30| 65 20 63 75 72 72 65 6e | 74 20 6c 6f 63 61 74 69 |e curren|t locati|
|00000b40| 6f 6e 29 20 6f 72 20 74 | 68 65 0d 20 2a 20 43 72 |on) or t|he. * Cr|
|00000b50| 73 72 44 65 76 4d 6f 76 | 65 54 6f 20 28 77 68 69 |srDevMov|eTo (whi|
|00000b60| 63 68 20 6d 6f 76 65 73 | 20 74 6f 20 61 6e 20 61 |ch moves| to an a|
|00000b70| 62 73 6f 6c 75 74 65 20 | 6c 6f 63 61 74 69 6f 6e |bsolute |location|
|00000b80| 29 20 72 6f 75 74 69 6e | 65 73 2e 0d 20 2a 0d 20 |) routin|es.. *. |
|00000b90| 2a 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |* The fo|llowing |
|00000ba0| 69 73 20 73 6f 6d 65 20 | 73 61 6d 70 6c 65 20 63 |is some |sample c|
|00000bb0| 6f 64 65 20 77 68 69 63 | 68 20 69 6d 70 6c 65 6d |ode whic|h implem|
|00000bc0| 65 6e 74 20 73 6f 6d 65 | 20 67 65 6e 65 72 69 63 |ent some| generic|
|00000bd0| 20 72 6f 75 74 69 6e 65 | 73 0d 20 2a 20 74 68 61 | routine|s. * tha|
|00000be0| 74 20 77 6f 72 6b 20 6f | 6e 20 61 6c 6c 20 6d 61 |t work o|n all ma|
|00000bf0| 63 69 6e 74 6f 73 68 65 | 73 2e 20 54 68 65 73 65 |cintoshe|s. These|
|00000c00| 20 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 77 72 | routine|s are wr|
|00000c10| 69 74 74 65 6e 20 6e 6f | 74 20 66 6f 72 20 73 70 |itten no|t for sp|
|00000c20| 65 65 64 0d 20 2a 20 62 | 75 74 20 66 6f 72 20 63 |eed. * b|ut for c|
|00000c30| 6c 61 72 69 74 79 2c 20 | 73 6f 20 69 66 20 79 6f |larity, |so if yo|
|00000c40| 75 20 61 72 65 20 77 72 | 69 74 69 6e 67 20 61 20 |u are wr|iting a |
|00000c50| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 20 6f 72 |device d|river or|
|00000c60| 20 74 69 6d 65 20 63 72 | 69 74 69 63 61 6c 0d 20 | time cr|itical. |
|00000c70| 2a 20 63 6f 64 65 20 74 | 68 65 72 65 20 61 72 65 |* code t|here are|
|00000c80| 20 73 6f 6d 65 20 74 68 | 69 6e 67 73 20 74 68 61 | some th|ings tha|
|00000c90| 74 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 74 6f 20 |t you ca|n do to |
|00000ca0| 73 70 65 65 64 20 75 70 | 20 74 68 65 73 65 20 72 |speed up| these r|
|00000cb0| 6f 75 74 69 6e 65 73 2c | 0d 20 2a 20 6c 69 6b 65 |outines,|. * like|
|00000cc0| 20 70 72 65 64 65 74 65 | 72 6d 69 6e 65 20 61 74 | predete|rmine at|
|00000cd0| 20 74 68 65 20 6f 75 74 | 73 65 74 20 69 66 20 74 | the out|set if t|
|00000ce0| 68 65 20 43 44 4d 20 65 | 78 69 73 74 73 2c 20 74 |he CDM e|xists, t|
|00000cf0| 68 69 73 20 77 61 79 20 | 79 6f 75 0d 20 2a 20 77 |his way |you. * w|
|00000d00| 6f 75 6c 64 6e 27 74 20 | 68 61 76 65 20 74 6f 20 |ouldn't |have to |
|00000d10| 63 68 65 63 6b 20 65 76 | 65 72 79 20 74 69 6d 65 |check ev|ery time|
|00000d20| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 75 73 65 | you wan|t to use|
|00000d30| 20 69 74 2c 20 61 6e 64 | 20 67 65 74 74 69 6e 67 | it, and| getting|
|00000d40| 20 74 68 65 0d 20 2a 20 | 63 75 72 73 6f 72 20 64 | the. * |cursor d|
|00000d50| 65 76 69 63 65 20 6f 6e | 6c 79 20 6f 6e 63 65 20 |evice on|ly once |
|00000d60| 61 6e 64 20 6b 65 65 70 | 69 6e 67 20 74 68 65 20 |and keep|ing the |
|00000d70| 70 6f 69 6e 74 65 72 20 | 74 6f 20 69 74 20 61 72 |pointer |to it ar|
|00000d80| 6f 75 6e 64 20 62 65 74 | 77 65 65 6e 0d 20 2a 20 |ound bet|ween. * |
|00000d90| 63 61 6c 6c 73 2e 0d 20 | 2a 0d 20 2a 20 48 49 53 |calls.. |*. * HIS|
|00000da0| 54 4f 52 59 3a 0d 20 2a | 20 38 2f 39 34 20 64 67 |TORY:. *| 8/94 dg|
|00000db0| 70 20 44 6f 77 6e 6c 6f | 61 64 65 64 20 66 72 6f |p Downlo|aded fro|
|00000dc0| 6d 20 66 74 70 3a 2f 2f | 6e 61 64 61 2e 6b 74 68 |m ftp://|nada.kth|
|00000dd0| 2e 73 65 2f 70 75 62 2f | 68 61 63 6b 73 2f 6d 61 |.se/pub/|hacks/ma|
|00000de0| 63 2d 66 61 71 2f 4d 6f | 76 65 4d 6f 75 73 65 2e |c-faq/Mo|veMouse.|
|00000df0| 63 0d 20 2a 20 31 30 2f | 39 34 20 64 67 70 20 6d |c. * 10/|94 dgp m|
|00000e00| 61 64 65 20 6d 69 6e 69 | 6d 61 6c 20 63 68 61 6e |ade mini|mal chan|
|00000e10| 67 65 73 20 73 6f 20 74 | 68 61 74 20 69 74 20 77 |ges so t|hat it w|
|00000e20| 6f 75 6c 64 20 63 6f 6d | 70 69 6c 65 20 69 6e 20 |ould com|pile in |
|00000e30| 43 6f 64 65 57 61 72 72 | 69 6f 72 20 43 2e 20 55 |CodeWarr|ior C. U|
|00000e40| 6e 74 65 73 74 65 64 2e | 0d 20 2a 20 31 32 2f 39 |ntested.|. * 12/9|
|00000e50| 34 20 64 67 70 20 75 70 | 64 61 74 65 64 20 66 6f |4 dgp up|dated fo|
|00000e60| 72 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |r compat|ibility |
|00000e70| 77 69 74 68 20 55 6e 69 | 76 65 72 73 61 6c 20 48 |with Uni|versal H|
|00000e80| 65 61 64 65 72 20 22 43 | 75 72 73 6f 72 44 65 76 |eader "C|ursorDev|
|00000e90| 69 63 65 73 2e 68 22 2e | 20 55 6e 74 65 73 74 65 |ices.h".| Unteste|
|00000ea0| 64 2e 0d 20 2a 20 31 2f | 35 2f 39 35 20 64 67 70 |d.. * 1/|5/95 dgp|
|00000eb0| 20 75 70 64 61 74 65 64 | 20 66 6f 72 20 63 6f 6d | updated| for com|
|00000ec0| 70 61 74 69 62 6c 69 74 | 79 20 77 69 74 68 20 55 |patiblit|y with U|
|00000ed0| 6e 69 76 65 72 73 61 6c | 20 48 65 61 64 65 72 73 |niversal| Headers|
|00000ee0| 20 32 2c 20 69 6e 20 77 | 68 69 63 68 20 0d 20 2a | 2, in w|hich . *|
|00000ef0| 20 43 75 72 73 6f 72 44 | 65 76 69 63 65 73 2e 68 | CursorD|evices.h|
|00000f00| 20 77 61 73 20 65 78 74 | 65 6e 73 69 76 65 6c 79 | was ext|ensively|
|00000f10| 20 63 68 61 6e 67 65 64 | 2e 20 55 6e 74 65 73 74 | changed|. Untest|
|00000f20| 65 64 2e 0d 20 2a 20 36 | 2f 32 36 2f 39 35 20 64 |ed.. * 6|/26/95 d|
|00000f30| 67 70 20 63 6f 73 6d 65 | 74 69 63 20 63 68 61 6e |gp cosme|tic chan|
|00000f40| 67 65 73 2e 20 53 74 69 | 6c 6c 20 75 6e 74 65 73 |ges. Sti|ll untes|
|00000f50| 74 65 64 2e 0d 20 2a 20 | 31 31 2f 31 30 2f 39 35 |ted.. * |11/10/95|
|00000f60| 20 63 62 73 20 41 64 64 | 65 64 20 6d 69 73 73 69 | cbs Add|ed missi|
|00000f70| 6e 67 20 49 6e 74 65 72 | 66 61 63 65 4c 69 62 20 |ng Inter|faceLib |
|00000f80| 67 6c 75 65 0d 31 31 2f | 31 33 2f 39 35 20 64 67 |glue.11/|13/95 dg|
|00000f90| 70 20 72 65 6e 61 6d 65 | 64 20 67 6c 75 65 20 72 |p rename|d glue r|
|00000fa0| 6f 75 74 69 6e 65 73 20 | 66 72 6f 6d 20 22 67 6c |outines |from "gl|
|00000fb0| 75 65 43 61 6c 6c 43 75 | 72 73 6f 72 44 65 76 69 |ueCallCu|rsorDevi|
|00000fc0| 63 65 2e 2e 2e 22 20 74 | 6f 20 22 43 61 6c 6c 43 |ce..." t|o "CallC|
|00000fd0| 75 72 73 6f 72 44 65 76 | 69 63 65 2e 2e 2e 22 0d |ursorDev|ice...".|
|00000fe0| 31 31 2f 31 33 2f 39 35 | 20 64 67 70 20 72 65 6e |11/13/95| dgp ren|
|00000ff0| 61 6d 65 64 20 67 6c 75 | 65 20 72 6f 75 74 69 6e |amed glu|e routin|
|00001000| 65 73 20 66 72 6f 6d 20 | 22 67 6c 75 65 43 61 6c |es from |"glueCal|
|00001010| 6c 43 75 72 73 6f 72 44 | 65 76 69 63 65 2e 2e 2e |lCursorD|evice...|
|00001020| 22 20 74 6f 20 22 43 61 | 6c 6c 43 75 72 73 6f 72 |" to "Ca|llCursor|
|00001030| 44 65 76 69 63 65 2e 2e | 2e 22 0d 20 2a 2f 0d 0d |Device..|.". */..|
|00001040| 23 69 66 20 55 4e 49 56 | 45 52 53 41 4c 5f 48 45 |#if UNIV|ERSAL_HE|
|00001050| 41 44 45 52 53 3c 32 0d | 09 23 65 72 72 6f 72 20 |ADERS<2.|.#error |
|00001060| 22 43 6f 6d 70 69 6c 69 | 6e 67 20 74 68 69 73 20 |"Compili|ng this |
|00001070| 66 69 6c 65 20 72 65 71 | 75 69 72 65 73 20 61 20 |file req|uires a |
|00001080| 72 65 61 73 6f 6e 61 62 | 6c 79 20 72 65 63 65 6e |reasonab|ly recen|
|00001090| 74 20 28 31 39 39 35 20 | 6f 72 20 6c 61 74 65 72 |t (1995 |or later|
|000010a0| 29 20 63 6f 70 79 20 6f | 66 20 43 75 72 73 6f 72 |) copy o|f Cursor|
|000010b0| 44 65 76 69 63 65 73 2e | 68 22 0d 23 65 6e 64 69 |Devices.|h".#endi|
|000010c0| 66 0d 23 69 66 6e 64 65 | 66 20 5f 5f 43 55 52 53 |f.#ifnde|f __CURS|
|000010d0| 4f 52 44 45 56 49 43 45 | 53 5f 5f 0d 09 23 69 6e |ORDEVICE|S__..#in|
|000010e0| 63 6c 75 64 65 20 3c 43 | 75 72 73 6f 72 44 65 76 |clude <C|ursorDev|
|000010f0| 69 63 65 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |ices.h>.|#endif.#|
|00001100| 69 66 6e 64 65 66 20 5f | 5f 54 52 41 50 53 5f 5f |ifndef _|_TRAPS__|
|00001110| 0d 09 2f 2f 20 74 68 69 | 73 20 69 73 20 6d 75 63 |..// thi|s is muc|
|00001120| 68 20 71 75 69 63 6b 65 | 72 20 74 68 61 6e 20 6c |h quicke|r than l|
|00001130| 6f 6f 6b 69 6e 67 20 66 | 6f 72 20 61 6e 64 20 72 |ooking f|or and r|
|00001140| 65 61 64 69 6e 67 20 74 | 68 65 20 54 72 61 70 73 |eading t|he Traps|
|00001150| 2e 68 20 68 65 61 64 65 | 72 20 66 69 6c 65 2e 0d |.h heade|r file..|
|00001160| 09 23 64 65 66 69 6e 65 | 20 5f 43 75 72 73 6f 72 |.#define| _Cursor|
|00001170| 44 65 76 69 63 65 44 69 | 73 70 61 74 63 68 20 30 |DeviceDi|spatch 0|
|00001180| 78 41 41 44 42 0d 09 23 | 64 65 66 69 6e 65 20 5f |xAADB..#|define _|
|00001190| 55 6e 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 30 78 |Unimplem|ented 0x|
|000011a0| 41 38 39 46 0d 2f 2f 09 | 23 69 6e 63 6c 75 64 65 |A89F.//.|#include|
|000011b0| 20 3c 54 72 61 70 73 2e | 68 3e 0d 23 65 6e 64 69 | <Traps.|h>.#endi|
|000011c0| 66 0d 0d 2f 2a 0d 20 2a | 20 47 6c 75 65 20 72 6f |f../*. *| Glue ro|
|000011d0| 75 74 69 6e 65 73 20 66 | 6f 72 20 74 68 65 20 43 |utines f|or the C|
|000011e0| 75 72 73 6f 72 20 44 65 | 76 69 63 65 20 4d 61 6e |ursor De|vice Man|
|000011f0| 61 67 65 72 0d 20 2a 2f | 0d 4f 53 45 72 72 09 43 |ager. */|.OSErr.C|
|00001200| 61 6c 6c 43 75 72 73 6f | 72 44 65 76 69 63 65 4d |allCurso|rDeviceM|
|00001210| 6f 76 65 28 43 75 72 73 | 6f 72 44 65 76 69 63 65 |ove(Curs|orDevice|
|00001220| 50 74 72 20 6f 75 72 44 | 65 76 69 63 65 2c 20 6c |Ptr ourD|evice, l|
|00001230| 6f 6e 67 20 64 65 6c 74 | 61 58 2c 20 6c 6f 6e 67 |ong delt|aX, long|
|00001240| 20 64 65 6c 74 61 59 29 | 3b 0d 4f 53 45 72 72 09 | deltaY)|;.OSErr.|
|00001250| 43 61 6c 6c 43 75 72 73 | 6f 72 44 65 76 69 63 65 |CallCurs|orDevice|
|00001260| 4d 6f 76 65 54 6f 28 43 | 75 72 73 6f 72 44 65 76 |MoveTo(C|ursorDev|
|00001270| 69 63 65 50 74 72 20 6f | 75 72 44 65 76 69 63 65 |icePtr o|urDevice|
|00001280| 2c 20 6c 6f 6e 67 20 61 | 62 73 58 2c 20 6c 6f 6e |, long a|bsX, lon|
|00001290| 67 20 61 62 73 59 29 3b | 0d 4f 53 45 72 72 09 43 |g absY);|.OSErr.C|
|000012a0| 61 6c 6c 43 75 72 73 6f | 72 44 65 76 69 63 65 46 |allCurso|rDeviceF|
|000012b0| 6c 75 73 68 28 43 75 72 | 73 6f 72 44 65 76 69 63 |lush(Cur|sorDevic|
|000012c0| 65 50 74 72 20 6f 75 72 | 44 65 76 69 63 65 29 3b |ePtr our|Device);|
|000012d0| 0d 4f 53 45 72 72 09 43 | 61 6c 6c 43 75 72 73 6f |.OSErr.C|allCurso|
|000012e0| 72 44 65 76 69 63 65 42 | 75 74 74 6f 6e 73 28 43 |rDeviceB|uttons(C|
|000012f0| 75 72 73 6f 72 44 65 76 | 69 63 65 50 74 72 20 6f |ursorDev|icePtr o|
|00001300| 75 72 44 65 76 69 63 65 | 2c 20 73 68 6f 72 74 20 |urDevice|, short |
|00001310| 62 75 74 74 6f 6e 73 29 | 3b 0d 4f 53 45 72 72 09 |buttons)|;.OSErr.|
|00001320| 43 61 6c 6c 43 75 72 73 | 6f 72 44 65 76 69 63 65 |CallCurs|orDevice|
|00001330| 42 75 74 74 6f 6e 44 6f | 77 6e 28 43 75 72 73 6f |ButtonDo|wn(Curso|
|00001340| 72 44 65 76 69 63 65 50 | 74 72 20 6f 75 72 44 65 |rDeviceP|tr ourDe|
|00001350| 76 69 63 65 29 3b 0d 4f | 53 45 72 72 09 43 61 6c |vice);.O|SErr.Cal|
|00001360| 6c 43 75 72 73 6f 72 44 | 65 76 69 63 65 42 75 74 |lCursorD|eviceBut|
|00001370| 74 6f 6e 55 70 28 43 75 | 72 73 6f 72 44 65 76 69 |tonUp(Cu|rsorDevi|
|00001380| 63 65 50 74 72 20 6f 75 | 72 44 65 76 69 63 65 29 |cePtr ou|rDevice)|
|00001390| 3b 0d 4f 53 45 72 72 09 | 43 61 6c 6c 43 75 72 73 |;.OSErr.|CallCurs|
|000013a0| 6f 72 44 65 76 69 63 65 | 42 75 74 74 6f 6e 4f 70 |orDevice|ButtonOp|
|000013b0| 28 43 75 72 73 6f 72 44 | 65 76 69 63 65 50 74 72 |(CursorD|evicePtr|
|000013c0| 20 6f 75 72 44 65 76 69 | 63 65 2c 20 73 68 6f 72 | ourDevi|ce, shor|
|000013d0| 74 20 62 75 74 74 6f 6e | 4e 75 6d 62 65 72 2c 20 |t button|Number, |
|000013e0| 42 75 74 74 6f 6e 4f 70 | 63 6f 64 65 20 6f 70 63 |ButtonOp|code opc|
|000013f0| 6f 64 65 2c 20 6c 6f 6e | 67 20 64 61 74 61 29 3b |ode, lon|g data);|
|00001400| 0d 4f 53 45 72 72 09 43 | 61 6c 6c 43 75 72 73 6f |.OSErr.C|allCurso|
|00001410| 72 44 65 76 69 63 65 53 | 65 74 42 75 74 74 6f 6e |rDeviceS|etButton|
|00001420| 73 28 43 75 72 73 6f 72 | 44 65 76 69 63 65 50 74 |s(Cursor|DevicePt|
|00001430| 72 20 6f 75 72 44 65 76 | 69 63 65 2c 20 73 68 6f |r ourDev|ice, sho|
|00001440| 72 74 20 6e 75 6d 62 65 | 72 4f 66 42 75 74 74 6f |rt numbe|rOfButto|
|00001450| 6e 73 29 3b 0d 4f 53 45 | 72 72 09 43 61 6c 6c 43 |ns);.OSE|rr.CallC|
|00001460| 75 72 73 6f 72 44 65 76 | 69 63 65 53 65 74 41 63 |ursorDev|iceSetAc|
|00001470| 63 65 6c 65 72 61 74 69 | 6f 6e 28 43 75 72 73 6f |celerati|on(Curso|
|00001480| 72 44 65 76 69 63 65 50 | 74 72 20 6f 75 72 44 65 |rDeviceP|tr ourDe|
|00001490| 76 69 63 65 2c 20 46 69 | 78 65 64 20 61 63 63 65 |vice, Fi|xed acce|
|000014a0| 6c 65 72 61 74 69 6f 6e | 29 3b 0d 4f 53 45 72 72 |leration|);.OSErr|
|000014b0| 09 43 61 6c 6c 43 75 72 | 73 6f 72 44 65 76 69 63 |.CallCur|sorDevic|
|000014c0| 65 44 6f 75 62 6c 65 54 | 69 6d 65 28 43 75 72 73 |eDoubleT|ime(Curs|
|000014d0| 6f 72 44 65 76 69 63 65 | 50 74 72 20 6f 75 72 44 |orDevice|Ptr ourD|
|000014e0| 65 76 69 63 65 2c 20 6c | 6f 6e 67 20 64 75 72 61 |evice, l|ong dura|
|000014f0| 74 69 6f 6e 54 69 63 6b | 73 29 3b 0d 4f 53 45 72 |tionTick|s);.OSEr|
|00001500| 72 09 43 61 6c 6c 43 75 | 72 73 6f 72 44 65 76 69 |r.CallCu|rsorDevi|
|00001510| 63 65 55 6e 69 74 73 50 | 65 72 49 6e 63 68 28 43 |ceUnitsP|erInch(C|
|00001520| 75 72 73 6f 72 44 65 76 | 69 63 65 50 74 72 20 6f |ursorDev|icePtr o|
|00001530| 75 72 44 65 76 69 63 65 | 2c 20 46 69 78 65 64 20 |urDevice|, Fixed |
|00001540| 72 65 73 6f 6c 75 74 69 | 6f 6e 29 3b 0d 4f 53 45 |resoluti|on);.OSE|
|00001550| 72 72 09 43 61 6c 6c 43 | 75 72 73 6f 72 44 65 76 |rr.CallC|ursorDev|
|00001560| 69 63 65 4e 65 78 74 44 | 65 76 69 63 65 28 43 75 |iceNextD|evice(Cu|
|00001570| 72 73 6f 72 44 65 76 69 | 63 65 50 74 72 20 2a 6f |rsorDevi|cePtr *o|
|00001580| 75 72 44 65 76 69 63 65 | 29 3b 0d 4f 53 45 72 72 |urDevice|);.OSErr|
|00001590| 09 43 61 6c 6c 43 75 72 | 73 6f 72 44 65 76 69 63 |.CallCur|sorDevic|
|000015a0| 65 4e 65 77 44 65 76 69 | 63 65 28 43 75 72 73 6f |eNewDevi|ce(Curso|
|000015b0| 72 44 65 76 69 63 65 50 | 74 72 20 2a 6f 75 72 44 |rDeviceP|tr *ourD|
|000015c0| 65 76 69 63 65 29 3b 0d | 4f 53 45 72 72 09 43 61 |evice);.|OSErr.Ca|
|000015d0| 6c 6c 43 75 72 73 6f 72 | 44 65 76 69 63 65 44 69 |llCursor|DeviceDi|
|000015e0| 73 70 6f 73 65 44 65 76 | 69 63 65 28 43 75 72 73 |sposeDev|ice(Curs|
|000015f0| 6f 72 44 65 76 69 63 65 | 50 74 72 20 6f 75 72 44 |orDevice|Ptr ourD|
|00001600| 65 76 69 63 65 29 3b 0d | 0d 2f 2a 0d 20 2a 20 4c |evice);.|./*. * L|
|00001610| 6f 77 20 6d 65 6d 6f 72 | 79 20 67 6c 6f 62 61 6c |ow memor|y global|
|00001620| 73 20 66 6f 72 20 74 68 | 65 20 6d 6f 75 73 65 0d |s for th|e mouse.|
|00001630| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 78 52 61 77 | */.#def|ine xRaw|
|00001640| 4d 6f 75 73 65 09 30 78 | 30 38 32 43 09 09 09 2f |Mouse.0x|082C.../|
|00001650| 2f 20 6c 6f 77 20 6d 65 | 6d 6f 72 79 20 67 6c 6f |/ low me|mory glo|
|00001660| 62 61 6c 20 74 68 61 74 | 20 68 61 73 20 63 75 72 |bal that| has cur|
|00001670| 72 65 6e 74 20 6d 6f 75 | 73 65 20 6c 6f 63 0d 23 |rent mou|se loc.#|
|00001680| 64 65 66 69 6e 65 20 78 | 4d 54 65 6d 70 09 09 30 |define x|MTemp..0|
|00001690| 78 30 38 32 38 09 09 09 | 2f 2f 20 6c 6f 77 20 6d |x0828...|// low m|
|000016a0| 65 6d 6f 72 79 20 67 6c | 6f 62 61 6c 20 74 68 61 |emory gl|obal tha|
|000016b0| 74 20 68 61 73 20 63 75 | 72 72 65 6e 74 20 6d 6f |t has cu|rrent mo|
|000016c0| 75 73 65 20 6c 6f 63 0d | 23 64 65 66 69 6e 65 20 |use loc.|#define |
|000016d0| 78 43 72 73 72 4e 65 77 | 09 30 78 30 38 43 45 09 |xCrsrNew|.0x08CE.|
|000016e0| 09 09 2f 2f 20 73 65 74 | 20 61 66 74 65 72 20 79 |..// set| after y|
|000016f0| 6f 75 20 63 68 61 6e 67 | 65 20 6d 74 65 6d 70 20 |ou chang|e mtemp |
|00001700| 61 6e 64 20 72 61 77 6d | 6f 75 73 65 0d 23 64 65 |and rawm|ouse.#de|
|00001710| 66 69 6e 65 20 78 43 72 | 73 72 43 6f 75 70 6c 65 |fine xCr|srCouple|
|00001720| 09 30 78 30 38 43 46 09 | 09 09 2f 2f 20 74 72 75 |.0x08CF.|..// tru|
|00001730| 65 20 69 66 20 74 68 65 | 20 63 75 72 73 6f 72 20 |e if the| cursor |
|00001740| 69 73 20 74 69 65 64 20 | 74 6f 20 74 68 65 20 6d |is tied |to the m|
|00001750| 6f 75 73 65 0d 0d 76 6f | 69 64 09 09 47 65 74 4d |ouse..vo|id..GetM|
|00001760| 6f 75 73 65 44 65 76 69 | 63 65 50 6f 73 69 74 69 |ouseDevi|cePositi|
|00001770| 6f 6e 28 50 6f 69 6e 74 | 20 2a 63 75 72 72 65 6e |on(Point| *curren|
|00001780| 74 50 6f 69 6e 74 29 3b | 0d 76 6f 69 64 09 09 53 |tPoint);|.void..S|
|00001790| 65 74 4d 6f 75 73 65 44 | 65 76 69 63 65 50 6f 73 |etMouseD|evicePos|
|000017a0| 69 74 69 6f 6e 28 50 6f | 69 6e 74 20 6e 65 77 50 |ition(Po|int newP|
|000017b0| 6f 69 6e 74 29 3b 0d 76 | 6f 69 64 09 09 53 65 74 |oint);.v|oid..Set|
|000017c0| 4d 6f 75 73 65 44 65 76 | 69 63 65 50 6f 73 69 74 |MouseDev|icePosit|
|000017d0| 69 6f 6e 52 65 6c 28 50 | 6f 69 6e 74 20 6e 65 77 |ionRel(P|oint new|
|000017e0| 50 6f 69 6e 74 29 3b 0d | 42 6f 6f 6c 65 61 6e 09 |Point);.|Boolean.|
|000017f0| 09 49 73 43 44 4d 41 76 | 61 69 6c 61 62 6c 65 28 |.IsCDMAv|ailable(|
|00001800| 76 6f 69 64 29 3b 0d 0d | 23 69 66 20 47 45 4e 45 |void);..|#if GENE|
|00001810| 52 41 54 49 4e 47 50 4f | 57 45 52 50 43 0d 65 6e |RATINGPO|WERPC.en|
|00001820| 75 6d 20 7b 0d 09 67 6c | 75 65 55 70 70 43 75 72 |um {..gl|ueUppCur|
|00001830| 73 6f 72 44 65 76 69 63 | 65 4d 6f 76 65 50 72 6f |sorDevic|eMovePro|
|00001840| 63 49 6e 66 6f 20 3d 0d | 09 09 6b 44 30 44 69 73 |cInfo =.|..kD0Dis|
|00001850| 70 61 74 63 68 65 64 50 | 61 73 63 61 6c 53 74 61 |patchedP|ascalSta|
|00001860| 63 6b 42 61 73 65 64 20 | 7c 0d 09 09 44 49 53 50 |ckBased ||...DISP|
|00001870| 41 54 43 48 45 44 5f 53 | 54 41 43 4b 5f 52 4f 55 |ATCHED_S|TACK_ROU|
|00001880| 54 49 4e 45 5f 53 45 4c | 45 43 54 4f 52 5f 53 49 |TINE_SEL|ECTOR_SI|
|00001890| 5a 45 28 6b 54 77 6f 42 | 79 74 65 43 6f 64 65 29 |ZE(kTwoB|yteCode)|
|000018a0| 20 7c 0d 09 09 52 45 53 | 55 4c 54 5f 53 49 5a 45 | |...RES|ULT_SIZE|
|000018b0| 28 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f |(SIZE_CO|DE(sizeo|
|000018c0| 66 20 28 4f 53 45 72 72 | 29 29 29 20 7c 0d 09 09 |f (OSErr|))) |...|
|000018d0| 44 49 53 50 41 54 43 48 | 45 44 5f 53 54 41 43 4b |DISPATCH|ED_STACK|
|000018e0| 5f 52 4f 55 54 49 4e 45 | 5f 50 41 52 41 4d 45 54 |_ROUTINE|_PARAMET|
|000018f0| 45 52 28 31 2c 53 49 5a | 45 5f 43 4f 44 45 28 73 |ER(1,SIZ|E_CODE(s|
|00001900| 69 7a 65 6f 66 20 28 43 | 75 72 73 6f 72 44 65 76 |izeof (C|ursorDev|
|00001910| 69 63 65 50 74 72 29 29 | 29 20 7c 0d 09 09 44 49 |icePtr))|) |...DI|
|00001920| 53 50 41 54 43 48 45 44 | 5f 53 54 41 43 4b 5f 52 |SPATCHED|_STACK_R|
|00001930| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00001940| 28 32 2c 53 49 5a 45 5f | 43 4f 44 45 28 73 69 7a |(2,SIZE_|CODE(siz|
|00001950| 65 6f 66 20 28 6c 6f 6e | 67 29 29 29 20 7c 0d 09 |eof (lon|g))) |..|
|00001960| 09 44 49 53 50 41 54 43 | 48 45 44 5f 53 54 41 43 |.DISPATC|HED_STAC|
|00001970| 4b 5f 52 4f 55 54 49 4e | 45 5f 50 41 52 41 4d 45 |K_ROUTIN|E_PARAME|
|00001980| 54 45 52 28 33 2c 53 49 | 5a 45 5f 43 4f 44 45 28 |TER(3,SI|ZE_CODE(|
|00001990| 73 69 7a 65 6f 66 20 28 | 6c 6f 6e 67 29 29 29 2c |sizeof (|long))),|
|000019a0| 0d 09 67 6c 75 65 55 70 | 70 43 75 72 73 6f 72 44 |..glueUp|pCursorD|
|000019b0| 65 76 69 63 65 4d 6f 76 | 65 54 6f 50 72 6f 63 49 |eviceMov|eToProcI|
|000019c0| 6e 66 6f 20 3d 0d 09 09 | 6b 44 30 44 69 73 70 61 |nfo =...|kD0Dispa|
|000019d0| 74 63 68 65 64 50 61 73 | 63 61 6c 53 74 61 63 6b |tchedPas|calStack|
|000019e0| 42 61 73 65 64 20 7c 0d | 09 09 44 49 53 50 41 54 |Based |.|..DISPAT|
|000019f0| 43 48 45 44 5f 53 54 41 | 43 4b 5f 52 4f 55 54 49 |CHED_STA|CK_ROUTI|
|00001a00| 4e 45 5f 53 45 4c 45 43 | 54 4f 52 5f 53 49 5a 45 |NE_SELEC|TOR_SIZE|
|00001a10| 28 6b 54 77 6f 42 79 74 | 65 43 6f 64 65 29 20 7c |(kTwoByt|eCode) ||
|00001a20| 0d 09 09 52 45 53 55 4c | 54 5f 53 49 5a 45 28 53 |...RESUL|T_SIZE(S|
|00001a30| 49 5a 45 5f 43 4f 44 45 | 28 73 69 7a 65 6f 66 20 |IZE_CODE|(sizeof |
|00001a40| 28 4f 53 45 72 72 29 29 | 29 20 7c 0d 09 09 44 49 |(OSErr))|) |...DI|
|00001a50| 53 50 41 54 43 48 45 44 | 5f 53 54 41 43 4b 5f 52 |SPATCHED|_STACK_R|
|00001a60| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00001a70| 28 31 2c 53 49 5a 45 5f | 43 4f 44 45 28 73 69 7a |(1,SIZE_|CODE(siz|
|00001a80| 65 6f 66 20 28 43 75 72 | 73 6f 72 44 65 76 69 63 |eof (Cur|sorDevic|
|00001a90| 65 50 74 72 29 29 29 20 | 7c 0d 09 09 44 49 53 50 |ePtr))) ||...DISP|
|00001aa0| 41 54 43 48 45 44 5f 53 | 54 41 43 4b 5f 52 4f 55 |ATCHED_S|TACK_ROU|
|00001ab0| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 32 |TINE_PAR|AMETER(2|
|00001ac0| 2c 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f |,SIZE_CO|DE(sizeo|
|00001ad0| 66 20 28 6c 6f 6e 67 29 | 29 29 20 7c 0d 09 09 44 |f (long)|)) |...D|
|00001ae0| 49 53 50 41 54 43 48 45 | 44 5f 53 54 41 43 4b 5f |ISPATCHE|D_STACK_|
|00001af0| 52 4f 55 54 49 4e 45 5f | 50 41 52 41 4d 45 54 45 |ROUTINE_|PARAMETE|
|00001b00| 52 28 33 2c 53 49 5a 45 | 5f 43 4f 44 45 28 73 69 |R(3,SIZE|_CODE(si|
|00001b10| 7a 65 6f 66 20 28 6c 6f | 6e 67 29 29 29 2c 0d 09 |zeof (lo|ng))),..|
|00001b20| 67 6c 75 65 55 70 70 43 | 75 72 73 6f 72 44 65 76 |glueUppC|ursorDev|
|00001b30| 69 63 65 46 6c 75 73 68 | 50 72 6f 63 49 6e 66 6f |iceFlush|ProcInfo|
|00001b40| 20 3d 0d 09 09 6b 44 30 | 44 69 73 70 61 74 63 68 | =...kD0|Dispatch|
|00001b50| 65 64 50 61 73 63 61 6c | 53 74 61 63 6b 42 61 73 |edPascal|StackBas|
|00001b60| 65 64 20 7c 0d 09 09 44 | 49 53 50 41 54 43 48 45 |ed |...D|ISPATCHE|
|00001b70| 44 5f 53 54 41 43 4b 5f | 52 4f 55 54 49 4e 45 5f |D_STACK_|ROUTINE_|
|00001b80| 53 45 4c 45 43 54 4f 52 | 5f 53 49 5a 45 28 6b 54 |SELECTOR|_SIZE(kT|
|00001b90| 77 6f 42 79 74 65 43 6f | 64 65 29 20 7c 0d 09 09 |woByteCo|de) |...|
|00001ba0| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|00001bb0| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 20 28 4f 53 |_CODE(si|zeof (OS|
|00001bc0| 45 72 72 29 29 29 20 7c | 0d 09 09 44 49 53 50 41 |Err))) ||...DISPA|
|00001bd0| 54 43 48 45 44 5f 53 54 | 41 43 4b 5f 52 4f 55 54 |TCHED_ST|ACK_ROUT|
|00001be0| 49 4e 45 5f 50 41 52 41 | 4d 45 54 45 52 28 31 2c |INE_PARA|METER(1,|
|00001bf0| 53 49 5a 45 5f 43 4f 44 | 45 28 73 69 7a 65 6f 66 |SIZE_COD|E(sizeof|
|00001c00| 20 28 43 75 72 73 6f 72 | 44 65 76 69 63 65 50 74 | (Cursor|DevicePt|
|00001c10| 72 29 29 29 2c 0d 09 67 | 6c 75 65 55 70 70 43 75 |r))),..g|lueUppCu|
|00001c20| 72 73 6f 72 44 65 76 69 | 63 65 42 75 74 74 6f 6e |rsorDevi|ceButton|
|00001c30| 73 50 72 6f 63 49 6e 66 | 6f 20 3d 0d 09 09 6b 44 |sProcInf|o =...kD|
|00001c40| 30 44 69 73 70 61 74 63 | 68 65 64 50 61 73 63 61 |0Dispatc|hedPasca|
|00001c50| 6c 53 74 61 63 6b 42 61 | 73 65 64 20 7c 0d 09 09 |lStackBa|sed |...|
|00001c60| 44 49 53 50 41 54 43 48 | 45 44 5f 53 54 41 43 4b |DISPATCH|ED_STACK|
|00001c70| 5f 52 4f 55 54 49 4e 45 | 5f 53 45 4c 45 43 54 4f |_ROUTINE|_SELECTO|
|00001c80| 52 5f 53 49 5a 45 28 6b | 54 77 6f 42 79 74 65 43 |R_SIZE(k|TwoByteC|
|00001c90| 6f 64 65 29 20 7c 0d 09 | 09 52 45 53 55 4c 54 5f |ode) |..|.RESULT_|
|00001ca0| 53 49 5a 45 28 53 49 5a | 45 5f 43 4f 44 45 28 73 |SIZE(SIZ|E_CODE(s|
|00001cb0| 69 7a 65 6f 66 20 28 4f | 53 45 72 72 29 29 29 20 |izeof (O|SErr))) |
|00001cc0| 7c 0d 09 09 44 49 53 50 | 41 54 43 48 45 44 5f 53 ||...DISP|ATCHED_S|
|00001cd0| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 50 41 52 |TACK_ROU|TINE_PAR|
|00001ce0| 41 4d 45 54 45 52 28 31 | 2c 53 49 5a 45 5f 43 4f |AMETER(1|,SIZE_CO|
|00001cf0| 44 45 28 73 69 7a 65 6f | 66 20 28 43 75 72 73 6f |DE(sizeo|f (Curso|
|00001d00| 72 44 65 76 69 63 65 50 | 74 72 29 29 29 20 7c 0d |rDeviceP|tr))) |.|
|00001d10| 09 09 44 49 53 50 41 54 | 43 48 45 44 5f 53 54 41 |..DISPAT|CHED_STA|
|00001d20| 43 4b 5f 52 4f 55 54 49 | 4e 45 5f 50 41 52 41 4d |CK_ROUTI|NE_PARAM|
|00001d30| 45 54 45 52 28 32 2c 53 | 49 5a 45 5f 43 4f 44 45 |ETER(2,S|IZE_CODE|
|00001d40| 28 73 69 7a 65 6f 66 20 | 28 73 68 6f 72 74 29 29 |(sizeof |(short))|
|00001d50| 29 2c 0d 09 67 6c 75 65 | 55 70 70 43 75 72 73 6f |),..glue|UppCurso|
|00001d60| 72 44 65 76 69 63 65 42 | 75 74 74 6f 6e 44 6f 77 |rDeviceB|uttonDow|
|00001d70| 6e 50 72 6f 63 49 6e 66 | 6f 20 3d 0d 09 09 6b 44 |nProcInf|o =...kD|
|00001d80| 30 44 69 73 70 61 74 63 | 68 65 64 50 61 73 63 61 |0Dispatc|hedPasca|
|00001d90| 6c 53 74 61 63 6b 42 61 | 73 65 64 20 7c 0d 09 09 |lStackBa|sed |...|
|00001da0| 44 49 53 50 41 54 43 48 | 45 44 5f 53 54 41 43 4b |DISPATCH|ED_STACK|
|00001db0| 5f 52 4f 55 54 49 4e 45 | 5f 53 45 4c 45 43 54 4f |_ROUTINE|_SELECTO|
|00001dc0| 52 5f 53 49 5a 45 28 6b | 54 77 6f 42 79 74 65 43 |R_SIZE(k|TwoByteC|
|00001dd0| 6f 64 65 29 20 7c 0d 09 | 09 52 45 53 55 4c 54 5f |ode) |..|.RESULT_|
|00001de0| 53 49 5a 45 28 53 49 5a | 45 5f 43 4f 44 45 28 73 |SIZE(SIZ|E_CODE(s|
|00001df0| 69 7a 65 6f 66 20 28 4f | 53 45 72 72 29 29 29 20 |izeof (O|SErr))) |
|00001e00| 7c 0d 09 09 44 49 53 50 | 41 54 43 48 45 44 5f 53 ||...DISP|ATCHED_S|
|00001e10| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 50 41 52 |TACK_ROU|TINE_PAR|
|00001e20| 41 4d 45 54 45 52 28 31 | 2c 53 49 5a 45 5f 43 4f |AMETER(1|,SIZE_CO|
|00001e30| 44 45 28 73 69 7a 65 6f | 66 20 28 43 75 72 73 6f |DE(sizeo|f (Curso|
|00001e40| 72 44 65 76 69 63 65 50 | 74 72 29 29 29 2c 0d 09 |rDeviceP|tr))),..|
|00001e50| 67 6c 75 65 55 70 70 43 | 75 72 73 6f 72 44 65 76 |glueUppC|ursorDev|
|00001e60| 69 63 65 42 75 74 74 6f | 6e 55 70 50 72 6f 63 49 |iceButto|nUpProcI|
|00001e70| 6e 66 6f 20 3d 0d 09 09 | 6b 44 30 44 69 73 70 61 |nfo =...|kD0Dispa|
|00001e80| 74 63 68 65 64 50 61 73 | 63 61 6c 53 74 61 63 6b |tchedPas|calStack|
|00001e90| 42 61 73 65 64 20 7c 0d | 09 09 44 49 53 50 41 54 |Based |.|..DISPAT|
|00001ea0| 43 48 45 44 5f 53 54 41 | 43 4b 5f 52 4f 55 54 49 |CHED_STA|CK_ROUTI|
|00001eb0| 4e 45 5f 53 45 4c 45 43 | 54 4f 52 5f 53 49 5a 45 |NE_SELEC|TOR_SIZE|
|00001ec0| 28 6b 54 77 6f 42 79 74 | 65 43 6f 64 65 29 20 7c |(kTwoByt|eCode) ||
|00001ed0| 0d 09 09 52 45 53 55 4c | 54 5f 53 49 5a 45 28 53 |...RESUL|T_SIZE(S|
|00001ee0| 49 5a 45 5f 43 4f 44 45 | 28 73 69 7a 65 6f 66 20 |IZE_CODE|(sizeof |
|00001ef0| 28 4f 53 45 72 72 29 29 | 29 20 7c 0d 09 09 44 49 |(OSErr))|) |...DI|
|00001f00| 53 50 41 54 43 48 45 44 | 5f 53 54 41 43 4b 5f 52 |SPATCHED|_STACK_R|
|00001f10| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00001f20| 28 31 2c 53 49 5a 45 5f | 43 4f 44 45 28 73 69 7a |(1,SIZE_|CODE(siz|
|00001f30| 65 6f 66 20 28 43 75 72 | 73 6f 72 44 65 76 69 63 |eof (Cur|sorDevic|
|00001f40| 65 50 74 72 29 29 29 2c | 0d 09 67 6c 75 65 55 70 |ePtr))),|..glueUp|
|00001f50| 70 43 75 72 73 6f 72 44 | 65 76 69 63 65 42 75 74 |pCursorD|eviceBut|
|00001f60| 74 6f 6e 4f 70 50 72 6f | 63 49 6e 66 6f 20 3d 0d |tonOpPro|cInfo =.|
|00001f70| 09 09 6b 44 30 44 69 73 | 70 61 74 63 68 65 64 50 |..kD0Dis|patchedP|
|00001f80| 61 73 63 61 6c 53 74 61 | 63 6b 42 61 73 65 64 20 |ascalSta|ckBased |
|00001f90| 7c 0d 09 09 44 49 53 50 | 41 54 43 48 45 44 5f 53 ||...DISP|ATCHED_S|
|00001fa0| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 53 45 4c |TACK_ROU|TINE_SEL|
|00001fb0| 45 43 54 4f 52 5f 53 49 | 5a 45 28 6b 54 77 6f 42 |ECTOR_SI|ZE(kTwoB|
|00001fc0| 79 74 65 43 6f 64 65 29 | 20 7c 0d 09 09 52 45 53 |yteCode)| |...RES|
|00001fd0| 55 4c 54 5f 53 49 5a 45 | 28 53 49 5a 45 5f 43 4f |ULT_SIZE|(SIZE_CO|
|00001fe0| 44 45 28 73 69 7a 65 6f | 66 20 28 4f 53 45 72 72 |DE(sizeo|f (OSErr|
|00001ff0| 29 29 29 20 7c 0d 09 09 | 44 49 53 50 41 54 43 48 |))) |...|DISPATCH|
|00002000| 45 44 5f 53 54 41 43 4b | 5f 52 4f 55 54 49 4e 45 |ED_STACK|_ROUTINE|
|00002010| 5f 50 41 52 41 4d 45 54 | 45 52 28 31 2c 53 49 5a |_PARAMET|ER(1,SIZ|
|00002020| 45 5f 43 4f 44 45 28 73 | 69 7a 65 6f 66 20 28 43 |E_CODE(s|izeof (C|
|00002030| 75 72 73 6f 72 44 65 76 | 69 63 65 50 74 72 29 29 |ursorDev|icePtr))|
|00002040| 29 20 7c 0d 09 09 44 49 | 53 50 41 54 43 48 45 44 |) |...DI|SPATCHED|
|00002050| 5f 53 54 41 43 4b 5f 52 | 4f 55 54 49 4e 45 5f 50 |_STACK_R|OUTINE_P|
|00002060| 41 52 41 4d 45 54 45 52 | 28 32 2c 53 49 5a 45 5f |ARAMETER|(2,SIZE_|
|00002070| 43 4f 44 45 28 73 69 7a | 65 6f 66 20 28 73 68 6f |CODE(siz|eof (sho|
|00002080| 72 74 29 29 29 20 7c 0d | 09 09 44 49 53 50 41 54 |rt))) |.|..DISPAT|
|00002090| 43 48 45 44 5f 53 54 41 | 43 4b 5f 52 4f 55 54 49 |CHED_STA|CK_ROUTI|
|000020a0| 4e 45 5f 50 41 52 41 4d | 45 54 45 52 28 33 2c 53 |NE_PARAM|ETER(3,S|
|000020b0| 49 5a 45 5f 43 4f 44 45 | 28 73 69 7a 65 6f 66 20 |IZE_CODE|(sizeof |
|000020c0| 28 42 75 74 74 6f 6e 4f | 70 63 6f 64 65 29 29 29 |(ButtonO|pcode)))|
|000020d0| 20 7c 0d 09 09 44 49 53 | 50 41 54 43 48 45 44 5f | |...DIS|PATCHED_|
|000020e0| 53 54 41 43 4b 5f 52 4f | 55 54 49 4e 45 5f 50 41 |STACK_RO|UTINE_PA|
|000020f0| 52 41 4d 45 54 45 52 28 | 34 2c 53 49 5a 45 5f 43 |RAMETER(|4,SIZE_C|
|00002100| 4f 44 45 28 73 69 7a 65 | 6f 66 20 28 6c 6f 6e 67 |ODE(size|of (long|
|00002110| 29 29 29 2c 0d 09 67 6c | 75 65 55 70 70 43 75 72 |))),..gl|ueUppCur|
|00002120| 73 6f 72 44 65 76 69 63 | 65 53 65 74 42 75 74 74 |sorDevic|eSetButt|
|00002130| 6f 6e 73 50 72 6f 63 49 | 6e 66 6f 20 3d 0d 09 09 |onsProcI|nfo =...|
|00002140| 6b 44 30 44 69 73 70 61 | 74 63 68 65 64 50 61 73 |kD0Dispa|tchedPas|
|00002150| 63 61 6c 53 74 61 63 6b | 42 61 73 65 64 20 7c 0d |calStack|Based |.|
|00002160| 09 09 44 49 53 50 41 54 | 43 48 45 44 5f 53 54 41 |..DISPAT|CHED_STA|
|00002170| 43 4b 5f 52 4f 55 54 49 | 4e 45 5f 53 45 4c 45 43 |CK_ROUTI|NE_SELEC|
|00002180| 54 4f 52 5f 53 49 5a 45 | 28 6b 54 77 6f 42 79 74 |TOR_SIZE|(kTwoByt|
|00002190| 65 43 6f 64 65 29 20 7c | 0d 09 09 52 45 53 55 4c |eCode) ||...RESUL|
|000021a0| 54 5f 53 49 5a 45 28 53 | 49 5a 45 5f 43 4f 44 45 |T_SIZE(S|IZE_CODE|
|000021b0| 28 73 69 7a 65 6f 66 20 | 28 4f 53 45 72 72 29 29 |(sizeof |(OSErr))|
|000021c0| 29 20 7c 0d 09 09 44 49 | 53 50 41 54 43 48 45 44 |) |...DI|SPATCHED|
|000021d0| 5f 53 54 41 43 4b 5f 52 | 4f 55 54 49 4e 45 5f 50 |_STACK_R|OUTINE_P|
|000021e0| 41 52 41 4d 45 54 45 52 | 28 31 2c 53 49 5a 45 5f |ARAMETER|(1,SIZE_|
|000021f0| 43 4f 44 45 28 73 69 7a | 65 6f 66 20 28 43 75 72 |CODE(siz|eof (Cur|
|00002200| 73 6f 72 44 65 76 69 63 | 65 50 74 72 29 29 29 20 |sorDevic|ePtr))) |
|00002210| 7c 0d 09 09 44 49 53 50 | 41 54 43 48 45 44 5f 53 ||...DISP|ATCHED_S|
|00002220| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 50 41 52 |TACK_ROU|TINE_PAR|
|00002230| 41 4d 45 54 45 52 28 32 | 2c 53 49 5a 45 5f 43 4f |AMETER(2|,SIZE_CO|
|00002240| 44 45 28 73 69 7a 65 6f | 66 20 28 73 68 6f 72 74 |DE(sizeo|f (short|
|00002250| 29 29 29 2c 0d 09 67 6c | 75 65 55 70 70 43 75 72 |))),..gl|ueUppCur|
|00002260| 73 6f 72 44 65 76 69 63 | 65 53 65 74 41 63 63 65 |sorDevic|eSetAcce|
|00002270| 6c 65 72 61 74 69 6f 6e | 50 72 6f 63 49 6e 66 6f |leration|ProcInfo|
|00002280| 20 3d 0d 09 09 6b 44 30 | 44 69 73 70 61 74 63 68 | =...kD0|Dispatch|
|00002290| 65 64 50 61 73 63 61 6c | 53 74 61 63 6b 42 61 73 |edPascal|StackBas|
|000022a0| 65 64 20 7c 0d 09 09 44 | 49 53 50 41 54 43 48 45 |ed |...D|ISPATCHE|
|000022b0| 44 5f 53 54 41 43 4b 5f | 52 4f 55 54 49 4e 45 5f |D_STACK_|ROUTINE_|
|000022c0| 53 45 4c 45 43 54 4f 52 | 5f 53 49 5a 45 28 6b 54 |SELECTOR|_SIZE(kT|
|000022d0| 77 6f 42 79 74 65 43 6f | 64 65 29 20 7c 0d 09 09 |woByteCo|de) |...|
|000022e0| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|000022f0| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 20 28 4f 53 |_CODE(si|zeof (OS|
|00002300| 45 72 72 29 29 29 20 7c | 0d 09 09 44 49 53 50 41 |Err))) ||...DISPA|
|00002310| 54 43 48 45 44 5f 53 54 | 41 43 4b 5f 52 4f 55 54 |TCHED_ST|ACK_ROUT|
|00002320| 49 4e 45 5f 50 41 52 41 | 4d 45 54 45 52 28 31 2c |INE_PARA|METER(1,|
|00002330| 53 49 5a 45 5f 43 4f 44 | 45 28 73 69 7a 65 6f 66 |SIZE_COD|E(sizeof|
|00002340| 20 28 43 75 72 73 6f 72 | 44 65 76 69 63 65 50 74 | (Cursor|DevicePt|
|00002350| 72 29 29 29 20 7c 0d 09 | 09 44 49 53 50 41 54 43 |r))) |..|.DISPATC|
|00002360| 48 45 44 5f 53 54 41 43 | 4b 5f 52 4f 55 54 49 4e |HED_STAC|K_ROUTIN|
|00002370| 45 5f 50 41 52 41 4d 45 | 54 45 52 28 32 2c 53 49 |E_PARAME|TER(2,SI|
|00002380| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 20 28 |ZE_CODE(|sizeof (|
|00002390| 46 69 78 65 64 29 29 29 | 2c 0d 09 67 6c 75 65 55 |Fixed)))|,..glueU|
|000023a0| 70 70 43 75 72 73 6f 72 | 44 65 76 69 63 65 44 6f |ppCursor|DeviceDo|
|000023b0| 75 62 6c 65 54 69 6d 65 | 50 72 6f 63 49 6e 66 6f |ubleTime|ProcInfo|
|000023c0| 20 3d 0d 09 09 6b 44 30 | 44 69 73 70 61 74 63 68 | =...kD0|Dispatch|
|000023d0| 65 64 50 61 73 63 61 6c | 53 74 61 63 6b 42 61 73 |edPascal|StackBas|
|000023e0| 65 64 20 7c 0d 09 09 44 | 49 53 50 41 54 43 48 45 |ed |...D|ISPATCHE|
|000023f0| 44 5f 53 54 41 43 4b 5f | 52 4f 55 54 49 4e 45 5f |D_STACK_|ROUTINE_|
|00002400| 53 45 4c 45 43 54 4f 52 | 5f 53 49 5a 45 28 6b 54 |SELECTOR|_SIZE(kT|
|00002410| 77 6f 42 79 74 65 43 6f | 64 65 29 20 7c 0d 09 09 |woByteCo|de) |...|
|00002420| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|00002430| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 20 28 4f 53 |_CODE(si|zeof (OS|
|00002440| 45 72 72 29 29 29 20 7c | 0d 09 09 44 49 53 50 41 |Err))) ||...DISPA|
|00002450| 54 43 48 45 44 5f 53 54 | 41 43 4b 5f 52 4f 55 54 |TCHED_ST|ACK_ROUT|
|00002460| 49 4e 45 5f 50 41 52 41 | 4d 45 54 45 52 28 31 2c |INE_PARA|METER(1,|
|00002470| 53 49 5a 45 5f 43 4f 44 | 45 28 73 69 7a 65 6f 66 |SIZE_COD|E(sizeof|
|00002480| 20 28 43 75 72 73 6f 72 | 44 65 76 69 63 65 50 74 | (Cursor|DevicePt|
|00002490| 72 29 29 29 20 7c 0d 09 | 09 44 49 53 50 41 54 43 |r))) |..|.DISPATC|
|000024a0| 48 45 44 5f 53 54 41 43 | 4b 5f 52 4f 55 54 49 4e |HED_STAC|K_ROUTIN|
|000024b0| 45 5f 50 41 52 41 4d 45 | 54 45 52 28 32 2c 53 49 |E_PARAME|TER(2,SI|
|000024c0| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 20 28 |ZE_CODE(|sizeof (|
|000024d0| 6c 6f 6e 67 29 29 29 2c | 0d 09 67 6c 75 65 55 70 |long))),|..glueUp|
|000024e0| 70 43 75 72 73 6f 72 44 | 65 76 69 63 65 55 6e 69 |pCursorD|eviceUni|
|000024f0| 74 73 50 65 72 49 6e 63 | 68 50 72 6f 63 49 6e 66 |tsPerInc|hProcInf|
|00002500| 6f 20 3d 0d 09 09 6b 44 | 30 44 69 73 70 61 74 63 |o =...kD|0Dispatc|
|00002510| 68 65 64 50 61 73 63 61 | 6c 53 74 61 63 6b 42 61 |hedPasca|lStackBa|
|00002520| 73 65 64 20 7c 0d 09 09 | 44 49 53 50 41 54 43 48 |sed |...|DISPATCH|
|00002530| 45 44 5f 53 54 41 43 4b | 5f 52 4f 55 54 49 4e 45 |ED_STACK|_ROUTINE|
|00002540| 5f 53 45 4c 45 43 54 4f | 52 5f 53 49 5a 45 28 6b |_SELECTO|R_SIZE(k|
|00002550| 54 77 6f 42 79 74 65 43 | 6f 64 65 29 20 7c 0d 09 |TwoByteC|ode) |..|
|00002560| 09 52 45 53 55 4c 54 5f | 53 49 5a 45 28 53 49 5a |.RESULT_|SIZE(SIZ|
|00002570| 45 5f 43 4f 44 45 28 73 | 69 7a 65 6f 66 20 28 4f |E_CODE(s|izeof (O|
|00002580| 53 45 72 72 29 29 29 20 | 7c 0d 09 09 44 49 53 50 |SErr))) ||...DISP|
|00002590| 41 54 43 48 45 44 5f 53 | 54 41 43 4b 5f 52 4f 55 |ATCHED_S|TACK_ROU|
|000025a0| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 31 |TINE_PAR|AMETER(1|
|000025b0| 2c 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f |,SIZE_CO|DE(sizeo|
|000025c0| 66 20 28 43 75 72 73 6f | 72 44 65 76 69 63 65 50 |f (Curso|rDeviceP|
|000025d0| 74 72 29 29 29 20 7c 0d | 09 09 44 49 53 50 41 54 |tr))) |.|..DISPAT|
|000025e0| 43 48 45 44 5f 53 54 41 | 43 4b 5f 52 4f 55 54 49 |CHED_STA|CK_ROUTI|
|000025f0| 4e 45 5f 50 41 52 41 4d | 45 54 45 52 28 32 2c 53 |NE_PARAM|ETER(2,S|
|00002600| 49 5a 45 5f 43 4f 44 45 | 28 73 69 7a 65 6f 66 20 |IZE_CODE|(sizeof |
|00002610| 28 46 69 78 65 64 29 29 | 29 2c 0d 09 67 6c 75 65 |(Fixed))|),..glue|
|00002620| 55 70 70 43 75 72 73 6f | 72 44 65 76 69 63 65 4e |UppCurso|rDeviceN|
|00002630| 65 78 74 44 65 76 69 63 | 65 50 72 6f 63 49 6e 66 |extDevic|eProcInf|
|00002640| 6f 20 3d 0d 09 09 6b 44 | 30 44 69 73 70 61 74 63 |o =...kD|0Dispatc|
|00002650| 68 65 64 50 61 73 63 61 | 6c 53 74 61 63 6b 42 61 |hedPasca|lStackBa|
|00002660| 73 65 64 20 7c 0d 09 09 | 44 49 53 50 41 54 43 48 |sed |...|DISPATCH|
|00002670| 45 44 5f 53 54 41 43 4b | 5f 52 4f 55 54 49 4e 45 |ED_STACK|_ROUTINE|
|00002680| 5f 53 45 4c 45 43 54 4f | 52 5f 53 49 5a 45 28 6b |_SELECTO|R_SIZE(k|
|00002690| 54 77 6f 42 79 74 65 43 | 6f 64 65 29 20 7c 0d 09 |TwoByteC|ode) |..|
|000026a0| 09 52 45 53 55 4c 54 5f | 53 49 5a 45 28 53 49 5a |.RESULT_|SIZE(SIZ|
|000026b0| 45 5f 43 4f 44 45 28 73 | 69 7a 65 6f 66 20 28 4f |E_CODE(s|izeof (O|
|000026c0| 53 45 72 72 29 29 29 20 | 7c 0d 09 09 44 49 53 50 |SErr))) ||...DISP|
|000026d0| 41 54 43 48 45 44 5f 53 | 54 41 43 4b 5f 52 4f 55 |ATCHED_S|TACK_ROU|
|000026e0| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 31 |TINE_PAR|AMETER(1|
|000026f0| 2c 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f |,SIZE_CO|DE(sizeo|
|00002700| 66 20 28 43 75 72 73 6f | 72 44 65 76 69 63 65 50 |f (Curso|rDeviceP|
|00002710| 74 72 20 2a 29 29 29 2c | 0d 09 67 6c 75 65 55 70 |tr *))),|..glueUp|
|00002720| 70 43 75 72 73 6f 72 44 | 65 76 69 63 65 4e 65 77 |pCursorD|eviceNew|
|00002730| 44 65 76 69 63 65 50 72 | 6f 63 49 6e 66 6f 20 3d |DevicePr|ocInfo =|
|00002740| 0d 09 09 6b 44 30 44 69 | 73 70 61 74 63 68 65 64 |...kD0Di|spatched|
|00002750| 50 61 73 63 61 6c 53 74 | 61 63 6b 42 61 73 65 64 |PascalSt|ackBased|
|00002760| 20 7c 0d 09 09 44 49 53 | 50 41 54 43 48 45 44 5f | |...DIS|PATCHED_|
|00002770| 53 54 41 43 4b 5f 52 4f | 55 54 49 4e 45 5f 53 45 |STACK_RO|UTINE_SE|
|00002780| 4c 45 43 54 4f 52 5f 53 | 49 5a 45 28 6b 54 77 6f |LECTOR_S|IZE(kTwo|
|00002790| 42 79 74 65 43 6f 64 65 | 29 20 7c 0d 09 09 52 45 |ByteCode|) |...RE|
|000027a0| 53 55 4c 54 5f 53 49 5a | 45 28 53 49 5a 45 5f 43 |SULT_SIZ|E(SIZE_C|
|000027b0| 4f 44 45 28 73 69 7a 65 | 6f 66 20 28 4f 53 45 72 |ODE(size|of (OSEr|
|000027c0| 72 29 29 29 20 7c 0d 09 | 09 44 49 53 50 41 54 43 |r))) |..|.DISPATC|
|000027d0| 48 45 44 5f 53 54 41 43 | 4b 5f 52 4f 55 54 49 4e |HED_STAC|K_ROUTIN|
|000027e0| 45 5f 50 41 52 41 4d 45 | 54 45 52 28 31 2c 53 49 |E_PARAME|TER(1,SI|
|000027f0| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 20 28 |ZE_CODE(|sizeof (|
|00002800| 43 75 72 73 6f 72 44 65 | 76 69 63 65 50 74 72 20 |CursorDe|vicePtr |
|00002810| 2a 29 29 29 2c 0d 09 67 | 6c 75 65 55 70 70 43 75 |*))),..g|lueUppCu|
|00002820| 72 73 6f 72 44 65 76 69 | 63 65 44 69 73 70 6f 73 |rsorDevi|ceDispos|
|00002830| 65 44 65 76 69 63 65 50 | 72 6f 63 49 6e 66 6f 20 |eDeviceP|rocInfo |
|00002840| 3d 0d 09 09 6b 44 30 44 | 69 73 70 61 74 63 68 65 |=...kD0D|ispatche|
|00002850| 64 50 61 73 63 61 6c 53 | 74 61 63 6b 42 61 73 65 |dPascalS|tackBase|
|00002860| 64 20 7c 0d 09 09 44 49 | 53 50 41 54 43 48 45 44 |d |...DI|SPATCHED|
|00002870| 5f 53 54 41 43 4b 5f 52 | 4f 55 54 49 4e 45 5f 53 |_STACK_R|OUTINE_S|
|00002880| 45 4c 45 43 54 4f 52 5f | 53 49 5a 45 28 6b 54 77 |ELECTOR_|SIZE(kTw|
|00002890| 6f 42 79 74 65 43 6f 64 | 65 29 20 7c 0d 09 09 52 |oByteCod|e) |...R|
|000028a0| 45 53 55 4c 54 5f 53 49 | 5a 45 28 53 49 5a 45 5f |ESULT_SI|ZE(SIZE_|
|000028b0| 43 4f 44 45 28 73 69 7a | 65 6f 66 20 28 4f 53 45 |CODE(siz|eof (OSE|
|000028c0| 72 72 29 29 29 20 7c 0d | 09 09 44 49 53 50 41 54 |rr))) |.|..DISPAT|
|000028d0| 43 48 45 44 5f 53 54 41 | 43 4b 5f 52 4f 55 54 49 |CHED_STA|CK_ROUTI|
|000028e0| 4e 45 5f 50 41 52 41 4d | 45 54 45 52 28 31 2c 53 |NE_PARAM|ETER(1,S|
|000028f0| 49 5a 45 5f 43 4f 44 45 | 28 73 69 7a 65 6f 66 20 |IZE_CODE|(sizeof |
|00002900| 28 43 75 72 73 6f 72 44 | 65 76 69 63 65 50 74 72 |(CursorD|evicePtr|
|00002910| 29 29 29 0d 7d 3b 0d 23 | 65 6e 64 69 66 0d 0d 23 |))).};.#|endif..#|
|00002920| 69 66 20 21 47 45 4e 45 | 52 41 54 49 4e 47 50 4f |if !GENE|RATINGPO|
|00002930| 57 45 52 50 43 0d 09 70 | 61 73 63 61 6c 20 76 6f |WERPC..p|ascal vo|
|00002940| 69 64 20 43 61 6c 6c 43 | 75 72 73 6f 72 54 61 73 |id CallC|ursorTas|
|00002950| 6b 28 76 6f 69 64 29 0d | 09 09 3d 20 7b 0d 09 09 |k(void).|..= {...|
|00002960| 09 30 78 32 30 37 38 2c | 30 78 30 38 45 45 2c 09 |.0x2078,|0x08EE,.|
|00002970| 09 09 2f 2f 20 4d 4f 56 | 45 2e 4c 20 6a 43 72 73 |..// MOV|E.L jCrs|
|00002980| 72 54 61 73 6b 2c 41 30 | 0d 09 09 09 30 78 34 45 |rTask,A0|....0x4E|
|00002990| 39 30 09 09 09 09 09 2f | 2f 20 4a 53 52 20 28 41 |90...../|/ JSR (A|
|000029a0| 30 29 0d 09 09 7d 3b 0d | 23 65 6e 64 69 66 0d 0d |0)...};.|#endif..|
|000029b0| 76 6f 69 64 0d 47 65 74 | 4d 6f 75 73 65 44 65 76 |void.Get|MouseDev|
|000029c0| 69 63 65 50 6f 73 69 74 | 69 6f 6e 28 0d 09 50 6f |icePosit|ion(..Po|
|000029d0| 69 6e 74 20 2a 63 75 72 | 72 65 6e 74 50 6f 69 6e |int *cur|rentPoin|
|000029e0| 74 29 0d 7b 0d 09 43 75 | 72 73 6f 72 44 65 76 69 |t).{..Cu|rsorDevi|
|000029f0| 63 65 20 2a 66 69 72 73 | 74 4d 6f 75 73 65 3b 0d |ce *firs|tMouse;.|
|00002a00| 09 6c 6f 6e 67 20 64 65 | 6c 61 79 3b 0d 0d 09 69 |.long de|lay;...i|
|00002a10| 66 20 28 49 73 43 44 4d | 41 76 61 69 6c 61 62 6c |f (IsCDM|Availabl|
|00002a20| 65 28 29 29 20 7b 0d 09 | 09 66 69 72 73 74 4d 6f |e()) {..|.firstMo|
|00002a30| 75 73 65 20 3d 20 4e 55 | 4c 4c 3b 09 09 09 09 09 |use = NU|LL;.....|
|00002a40| 09 09 09 2f 2f 20 73 74 | 61 72 74 20 61 74 20 68 |...// st|art at h|
|00002a50| 65 61 64 20 6f 66 20 63 | 75 72 73 6f 72 20 64 65 |ead of c|ursor de|
|00002a60| 76 20 6c 69 73 74 0d 09 | 09 43 61 6c 6c 43 75 72 |v list..|.CallCur|
|00002a70| 73 6f 72 44 65 76 69 63 | 65 4e 65 78 74 44 65 76 |sorDevic|eNextDev|
|00002a80| 69 63 65 28 26 66 69 72 | 73 74 4d 6f 75 73 65 29 |ice(&fir|stMouse)|
|00002a90| 3b 09 09 2f 2f 20 67 65 | 74 20 74 68 65 20 6e 65 |;..// ge|t the ne|
|00002aa0| 78 74 20 63 75 72 73 6f | 72 20 64 65 76 69 63 65 |xt curso|r device|
|00002ab0| 0d 09 09 44 65 6c 61 79 | 28 31 2c 20 26 64 65 6c |...Delay|(1, &del|
|00002ac0| 61 79 29 3b 09 09 09 09 | 09 09 09 09 2f 2f 20 77 |ay);....|....// w|
|00002ad0| 68 79 20 69 73 20 74 68 | 69 73 20 6e 65 63 65 73 |hy is th|is neces|
|00002ae0| 73 61 72 79 3f 21 20 63 | 62 73 0d 09 09 2a 63 75 |sary?! c|bs...*cu|
|00002af0| 72 72 65 6e 74 50 6f 69 | 6e 74 20 3d 20 66 69 72 |rrentPoi|nt = fir|
|00002b00| 73 74 4d 6f 75 73 65 2d | 3e 77 68 69 63 68 43 75 |stMouse-|>whichCu|
|00002b10| 72 73 6f 72 2d 3e 77 68 | 65 72 65 3b 0d 09 7d 20 |rsor->wh|ere;..} |
|00002b20| 65 6c 73 65 0d 09 09 2a | 63 75 72 72 65 6e 74 50 |else...*|currentP|
|00002b30| 6f 69 6e 74 20 3d 20 2a | 28 50 6f 69 6e 74 20 2a |oint = *|(Point *|
|00002b40| 29 20 78 52 61 77 4d 6f | 75 73 65 3b 09 09 09 2f |) xRawMo|use;.../|
|00002b50| 2f 20 75 73 65 20 74 68 | 65 20 6c 6f 77 20 6d 65 |/ use th|e low me|
|00002b60| 6d 6f 72 79 20 67 6c 6f | 62 61 6c 0d 7d 0d 0d 76 |mory glo|bal.}..v|
|00002b70| 6f 69 64 0d 53 65 74 4d | 6f 75 73 65 44 65 76 69 |oid.SetM|ouseDevi|
|00002b80| 63 65 50 6f 73 69 74 69 | 6f 6e 28 0d 09 50 6f 69 |cePositi|on(..Poi|
|00002b90| 6e 74 20 6e 65 77 50 6f | 69 6e 74 29 0d 7b 0d 09 |nt newPo|int).{..|
|00002ba0| 43 75 72 73 6f 72 44 65 | 76 69 63 65 20 2a 66 69 |CursorDe|vice *fi|
|00002bb0| 72 73 74 4d 6f 75 73 65 | 3b 0d 0d 09 69 66 20 28 |rstMouse|;...if (|
|00002bc0| 49 73 43 44 4d 41 76 61 | 69 6c 61 62 6c 65 28 29 |IsCDMAva|ilable()|
|00002bd0| 29 20 7b 0d 09 09 66 69 | 72 73 74 4d 6f 75 73 65 |) {...fi|rstMouse|
|00002be0| 20 3d 20 4e 55 4c 4c 3b | 0d 09 09 43 61 6c 6c 43 | = NULL;|...CallC|
|00002bf0| 75 72 73 6f 72 44 65 76 | 69 63 65 4e 65 78 74 44 |ursorDev|iceNextD|
|00002c00| 65 76 69 63 65 28 26 66 | 69 72 73 74 4d 6f 75 73 |evice(&f|irstMous|
|00002c10| 65 29 3b 0d 09 09 43 61 | 6c 6c 43 75 72 73 6f 72 |e);...Ca|llCursor|
|00002c20| 44 65 76 69 63 65 4d 6f | 76 65 54 6f 28 66 69 72 |DeviceMo|veTo(fir|
|00002c30| 73 74 4d 6f 75 73 65 2c | 20 28 6c 6f 6e 67 29 20 |stMouse,| (long) |
|00002c40| 6e 65 77 50 6f 69 6e 74 | 2e 68 2c 20 28 6c 6f 6e |newPoint|.h, (lon|
|00002c50| 67 29 20 6e 65 77 50 6f | 69 6e 74 2e 76 29 3b 0d |g) newPo|int.v);.|
|00002c60| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 09 2a 28 50 6f |.} else |{...*(Po|
|00002c70| 69 6e 74 20 2a 29 20 78 | 52 61 77 4d 6f 75 73 65 |int *) x|RawMouse|
|00002c80| 20 3d 20 6e 65 77 50 6f | 69 6e 74 3b 0d 09 09 2a | = newPo|int;...*|
|00002c90| 28 50 6f 69 6e 74 20 2a | 29 20 78 4d 54 65 6d 70 |(Point *|) xMTemp|
|00002ca0| 20 3d 20 6e 65 77 50 6f | 69 6e 74 3b 0d 09 09 2a | = newPo|int;...*|
|00002cb0| 28 50 74 72 29 20 78 43 | 72 73 72 4e 65 77 20 3d |(Ptr) xC|rsrNew =|
|00002cc0| 20 2a 28 50 74 72 29 20 | 78 43 72 73 72 43 6f 75 | *(Ptr) |xCrsrCou|
|00002cd0| 70 6c 65 3b 09 09 09 2f | 2f 20 53 65 74 20 43 72 |ple;.../|/ Set Cr|
|00002ce0| 73 72 4e 65 77 20 69 66 | 20 63 6f 75 70 6c 65 64 |srNew if| coupled|
|00002cf0| 0d 23 69 66 20 21 47 45 | 4e 45 52 41 54 49 4e 47 |.#if !GE|NERATING|
|00002d00| 50 4f 57 45 52 50 43 0d | 09 09 43 61 6c 6c 43 75 |POWERPC.|..CallCu|
|00002d10| 72 73 6f 72 54 61 73 6b | 28 29 3b 09 09 09 09 09 |rsorTask|();.....|
|00002d20| 09 09 09 2f 2f 20 6d 75 | 73 74 20 63 61 6c 6c 20 |...// mu|st call |
|00002d30| 6a 43 72 73 72 54 61 73 | 6b 20 74 6f 20 75 70 64 |jCrsrTas|k to upd|
|00002d40| 61 74 65 20 73 79 73 74 | 65 6d 0d 23 65 6e 64 69 |ate syst|em.#endi|
|00002d50| 66 0d 09 7d 0d 7d 0d 0d | 76 6f 69 64 0d 53 65 74 |f..}.}..|void.Set|
|00002d60| 4d 6f 75 73 65 44 65 76 | 69 63 65 50 6f 73 69 74 |MouseDev|icePosit|
|00002d70| 69 6f 6e 52 65 6c 28 0d | 09 50 6f 69 6e 74 20 6e |ionRel(.|.Point n|
|00002d80| 65 77 50 6f 69 6e 74 29 | 0d 7b 0d 09 43 75 72 73 |ewPoint)|.{..Curs|
|00002d90| 6f 72 44 65 76 69 63 65 | 20 2a 66 69 72 73 74 4d |orDevice| *firstM|
|00002da0| 6f 75 73 65 3b 0d 09 50 | 6f 69 6e 74 20 74 65 6d |ouse;..P|oint tem|
|00002db0| 70 50 74 3b 0d 0d 09 69 | 66 20 28 49 73 43 44 4d |pPt;...i|f (IsCDM|
|00002dc0| 41 76 61 69 6c 61 62 6c | 65 28 29 29 20 7b 0d 09 |Availabl|e()) {..|
|00002dd0| 09 66 69 72 73 74 4d 6f | 75 73 65 20 3d 20 4e 55 |.firstMo|use = NU|
|00002de0| 4c 4c 3b 0d 09 09 43 61 | 6c 6c 43 75 72 73 6f 72 |LL;...Ca|llCursor|
|00002df0| 44 65 76 69 63 65 4e 65 | 78 74 44 65 76 69 63 65 |DeviceNe|xtDevice|
|00002e00| 28 26 66 69 72 73 74 4d | 6f 75 73 65 29 3b 0d 09 |(&firstM|ouse);..|
|00002e10| 09 43 61 6c 6c 43 75 72 | 73 6f 72 44 65 76 69 63 |.CallCur|sorDevic|
|00002e20| 65 4d 6f 76 65 28 66 69 | 72 73 74 4d 6f 75 73 65 |eMove(fi|rstMouse|
|00002e30| 2c 20 28 6c 6f 6e 67 29 | 20 6e 65 77 50 6f 69 6e |, (long)| newPoin|
|00002e40| 74 2e 68 2c 20 20 28 6c | 6f 6e 67 29 20 6e 65 77 |t.h, (l|ong) new|
|00002e50| 50 6f 69 6e 74 2e 76 29 | 3b 0d 09 7d 20 65 6c 73 |Point.v)|;..} els|
|00002e60| 65 20 7b 0d 09 09 74 65 | 6d 70 50 74 20 3d 20 2a |e {...te|mpPt = *|
|00002e70| 28 50 6f 69 6e 74 20 2a | 29 20 78 52 61 77 4d 6f |(Point *|) xRawMo|
|00002e80| 75 73 65 3b 0d 09 09 74 | 65 6d 70 50 74 2e 68 20 |use;...t|empPt.h |
|00002e90| 2b 3d 20 6e 65 77 50 6f | 69 6e 74 2e 68 3b 0d 09 |+= newPo|int.h;..|
|00002ea0| 09 74 65 6d 70 50 74 2e | 76 20 2b 3d 20 6e 65 77 |.tempPt.|v += new|
|00002eb0| 50 6f 69 6e 74 2e 76 3b | 0d 09 09 2a 28 50 6f 69 |Point.v;|...*(Poi|
|00002ec0| 6e 74 20 2a 29 20 78 52 | 61 77 4d 6f 75 73 65 20 |nt *) xR|awMouse |
|00002ed0| 3d 20 74 65 6d 70 50 74 | 3b 0d 09 09 2a 28 50 6f |= tempPt|;...*(Po|
|00002ee0| 69 6e 74 20 2a 29 20 78 | 4d 54 65 6d 70 20 3d 20 |int *) x|MTemp = |
|00002ef0| 74 65 6d 70 50 74 3b 0d | 09 09 2a 28 50 74 72 29 |tempPt;.|..*(Ptr)|
|00002f00| 20 78 43 72 73 72 4e 65 | 77 20 3d 20 2a 28 50 74 | xCrsrNe|w = *(Pt|
|00002f10| 72 29 20 78 43 72 73 72 | 43 6f 75 70 6c 65 3b 0d |r) xCrsr|Couple;.|
|00002f20| 23 69 66 20 21 47 45 4e | 45 52 41 54 49 4e 47 50 |#if !GEN|ERATINGP|
|00002f30| 4f 57 45 52 50 43 0d 09 | 09 43 61 6c 6c 43 75 72 |OWERPC..|.CallCur|
|00002f40| 73 6f 72 54 61 73 6b 28 | 29 3b 0d 23 65 6e 64 69 |sorTask(|);.#endi|
|00002f50| 66 0d 09 7d 0d 7d 0d 0d | 42 6f 6f 6c 65 61 6e 20 |f..}.}..|Boolean |
|00002f60| 49 73 43 44 4d 41 76 61 | 69 6c 61 62 6c 65 28 76 |IsCDMAva|ilable(v|
|00002f70| 6f 69 64 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 4e |oid).{..|return N|
|00002f80| 47 65 74 54 72 61 70 41 | 64 64 72 65 73 73 28 5f |GetTrapA|ddress(_|
|00002f90| 43 75 72 73 6f 72 44 65 | 76 69 63 65 44 69 73 70 |CursorDe|viceDisp|
|00002fa0| 61 74 63 68 2c 20 54 6f | 6f 6c 54 72 61 70 29 0d |atch, To|olTrap).|
|00002fb0| 09 09 21 3d 20 4e 47 65 | 74 54 72 61 70 41 64 64 |..!= NGe|tTrapAdd|
|00002fc0| 72 65 73 73 28 5f 55 6e | 69 6d 70 6c 65 6d 65 6e |ress(_Un|implemen|
|00002fd0| 74 65 64 2c 20 54 6f 6f | 6c 54 72 61 70 29 3b 0d |ted, Too|lTrap);.|
|00002fe0| 7d 0d 0d 4f 53 45 72 72 | 20 43 61 6c 6c 43 75 72 |}..OSErr| CallCur|
|00002ff0| 73 6f 72 44 65 76 69 63 | 65 4d 6f 76 65 28 0d 09 |sorDevic|eMove(..|
|00003000| 43 75 72 73 6f 72 44 65 | 76 69 63 65 50 74 72 20 |CursorDe|vicePtr |
|00003010| 6f 75 72 44 65 76 69 63 | 65 2c 0d 09 6c 6f 6e 67 |ourDevic|e,..long|
|00003020| 20 64 65 6c 74 61 58 2c | 0d 09 6c 6f 6e 67 20 64 | deltaX,|..long d|
|00003030| 65 6c 74 61 59 29 0d 7b | 0d 23 69 66 20 47 45 4e |eltaY).{|.#if GEN|
|00003040| 45 52 41 54 49 4e 47 50 | 4f 57 45 52 50 43 0d 09 |ERATINGP|OWERPC..|
|00003050| 72 65 74 75 72 6e 20 43 | 61 6c 6c 55 6e 69 76 65 |return C|allUnive|
|00003060| 72 73 61 6c 50 72 6f 63 | 28 0d 09 09 47 65 74 54 |rsalProc|(...GetT|
|00003070| 6f 6f 6c 62 6f 78 54 72 | 61 70 41 64 64 72 65 73 |oolboxTr|apAddres|
|00003080| 73 28 5f 43 75 72 73 6f | 72 44 65 76 69 63 65 44 |s(_Curso|rDeviceD|
|00003090| 69 73 70 61 74 63 68 29 | 2c 0d 09 09 67 6c 75 65 |ispatch)|,...glue|
|000030a0| 55 70 70 43 75 72 73 6f | 72 44 65 76 69 63 65 4d |UppCurso|rDeviceM|
|000030b0| 6f 76 65 54 6f 50 72 6f | 63 49 6e 66 6f 2c 0d 09 |oveToPro|cInfo,..|
|000030c0| 09 30 2c 20 6f 75 72 44 | 65 76 69 63 65 2c 20 64 |.0, ourD|evice, d|
|000030d0| 65 6c 74 61 58 2c 20 64 | 65 6c 74 61 59 29 3b 0d |eltaX, d|eltaY);.|
|000030e0| 23 65 6c 73 65 0d 09 72 | 65 74 75 72 6e 20 43 75 |#else..r|eturn Cu|
|000030f0| 72 73 6f 72 44 65 76 69 | 63 65 4d 6f 76 65 28 6f |rsorDevi|ceMove(o|
|00003100| 75 72 44 65 76 69 63 65 | 2c 20 64 65 6c 74 61 58 |urDevice|, deltaX|
|00003110| 2c 20 64 65 6c 74 61 59 | 29 3b 0d 23 65 6e 64 69 |, deltaY|);.#endi|
|00003120| 66 0d 7d 0d 0d 4f 53 45 | 72 72 0d 43 61 6c 6c 43 |f.}..OSE|rr.CallC|
|00003130| 75 72 73 6f 72 44 65 76 | 69 63 65 4d 6f 76 65 54 |ursorDev|iceMoveT|
|00003140| 6f 28 0d 09 43 75 72 73 | 6f 72 44 65 76 69 63 65 |o(..Curs|orDevice|
|00003150| 50 74 72 20 6f 75 72 44 | 65 76 69 63 65 2c 0d 09 |Ptr ourD|evice,..|
|00003160| 6c 6f 6e 67 20 61 62 73 | 58 2c 0d 09 6c 6f 6e 67 |long abs|X,..long|
|00003170| 20 61 62 73 59 29 0d 7b | 0d 23 69 66 20 47 45 4e | absY).{|.#if GEN|
|00003180| 45 52 41 54 49 4e 47 50 | 4f 57 45 52 50 43 0d 09 |ERATINGP|OWERPC..|
|00003190| 72 65 74 75 72 6e 20 43 | 61 6c 6c 55 6e 69 76 65 |return C|allUnive|
|000031a0| 72 73 61 6c 50 72 6f 63 | 28 0d 09 09 47 65 74 54 |rsalProc|(...GetT|
|000031b0| 6f 6f 6c 62 6f 78 54 72 | 61 70 41 64 64 72 65 73 |oolboxTr|apAddres|
|000031c0| 73 28 5f 43 75 72 73 6f | 72 44 65 76 69 63 65 44 |s(_Curso|rDeviceD|
|000031d0| 69 73 70 61 74 63 68 29 | 2c 0d 09 09 67 6c 75 65 |ispatch)|,...glue|
|000031e0| 55 70 70 43 75 72 73 6f | 72 44 65 76 69 63 65 4d |UppCurso|rDeviceM|
|000031f0| 6f 76 65 54 6f 50 72 6f | 63 49 6e 66 6f 2c 0d 09 |oveToPro|cInfo,..|
|00003200| 09 31 2c 20 6f 75 72 44 | 65 76 69 63 65 2c 20 61 |.1, ourD|evice, a|
|00003210| 62 73 58 2c 20 61 62 73 | 59 29 3b 0d 23 65 6c 73 |bsX, abs|Y);.#els|
|00003220| 65 0d 09 72 65 74 75 72 | 6e 20 43 75 72 73 6f 72 |e..retur|n Cursor|
|00003230| 44 65 76 69 63 65 4d 6f | 76 65 54 6f 28 6f 75 72 |DeviceMo|veTo(our|
|00003240| 44 65 76 69 63 65 2c 20 | 61 62 73 58 2c 20 61 62 |Device, |absX, ab|
|00003250| 73 59 29 3b 0d 23 65 6e | 64 69 66 0d 7d 0d 0d 4f |sY);.#en|dif.}..O|
|00003260| 53 45 72 72 0d 43 61 6c | 6c 43 75 72 73 6f 72 44 |SErr.Cal|lCursorD|
|00003270| 65 76 69 63 65 46 6c 75 | 73 68 28 0d 09 43 75 72 |eviceFlu|sh(..Cur|
|00003280| 73 6f 72 44 65 76 69 63 | 65 50 74 72 20 6f 75 72 |sorDevic|ePtr our|
|00003290| 44 65 76 69 63 65 29 0d | 7b 0d 23 69 66 20 47 45 |Device).|{.#if GE|
|000032a0| 4e 45 52 41 54 49 4e 47 | 50 4f 57 45 52 50 43 0d |NERATING|POWERPC.|
|000032b0| 09 72 65 74 75 72 6e 20 | 43 61 6c 6c 55 6e 69 76 |.return |CallUniv|
|000032c0| 65 72 73 61 6c 50 72 6f | 63 28 0d 09 09 47 65 74 |ersalPro|c(...Get|
|000032d0| 54 6f 6f 6c 62 6f 78 54 | 72 61 70 41 64 64 72 65 |ToolboxT|rapAddre|
|000032e0| 73 73 28 5f 43 75 72 73 | 6f 72 44 65 76 69 63 65 |ss(_Curs|orDevice|
|000032f0| 44 69 73 70 61 74 63 68 | 29 2c 0d 09 09 67 6c 75 |Dispatch|),...glu|
|00003300| 65 55 70 70 43 75 72 73 | 6f 72 44 65 76 69 63 65 |eUppCurs|orDevice|
|00003310| 46 6c 75 73 68 50 72 6f | 63 49 6e 66 6f 2c 0d 09 |FlushPro|cInfo,..|
|00003320| 09 30 78 32 2c 20 6f 75 | 72 44 65 76 69 63 65 29 |.0x2, ou|rDevice)|
|00003330| 3b 0d 23 65 6c 73 65 0d | 09 72 65 74 75 72 6e 20 |;.#else.|.return |
|00003340| 43 75 72 73 6f 72 44 65 | 76 69 63 65 46 6c 75 73 |CursorDe|viceFlus|
|00003350| 68 28 6f 75 72 44 65 76 | 69 63 65 29 3b 0d 23 65 |h(ourDev|ice);.#e|
|00003360| 6e 64 69 66 0d 7d 0d 0d | 4f 53 45 72 72 0d 43 61 |ndif.}..|OSErr.Ca|
|00003370| 6c 6c 43 75 72 73 6f 72 | 44 65 76 69 63 65 42 75 |llCursor|DeviceBu|
|00003380| 74 74 6f 6e 73 28 0d 09 | 43 75 72 73 6f 72 44 65 |ttons(..|CursorDe|
|00003390| 76 69 63 65 50 74 72 20 | 6f 75 72 44 65 76 69 63 |vicePtr |ourDevic|
|000033a0| 65 2c 0d 09 73 68 6f 72 | 74 20 62 75 74 74 6f 6e |e,..shor|t button|
|000033b0| 73 29 0d 7b 0d 23 69 66 | 20 47 45 4e 45 52 41 54 |s).{.#if| GENERAT|
|000033c0| 49 4e 47 50 4f 57 45 52 | 50 43 0d 09 72 65 74 75 |INGPOWER|PC..retu|
|000033d0| 72 6e 20 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |rn CallU|niversal|
|000033e0| 50 72 6f 63 28 0d 09 09 | 47 65 74 54 6f 6f 6c 62 |Proc(...|GetToolb|
|000033f0| 6f 78 54 72 61 70 41 64 | 64 72 65 73 73 28 5f 43 |oxTrapAd|dress(_C|
|00003400| 75 72 73 6f 72 44 65 76 | 69 63 65 44 69 73 70 61 |ursorDev|iceDispa|
|00003410| 74 63 68 29 2c 0d 09 09 | 67 6c 75 65 55 70 70 43 |tch),...|glueUppC|
|00003420| 75 72 73 6f 72 44 65 76 | 69 63 65 42 75 74 74 6f |ursorDev|iceButto|
|00003430| 6e 73 50 72 6f 63 49 6e | 66 6f 2c 0d 09 09 30 78 |nsProcIn|fo,...0x|
|00003440| 33 2c 20 6f 75 72 44 65 | 76 69 63 65 2c 20 62 75 |3, ourDe|vice, bu|
|00003450| 74 74 6f 6e 73 29 3b 0d | 23 65 6c 73 65 0d 09 72 |ttons);.|#else..r|
|00003460| 65 74 75 72 6e 20 43 75 | 72 73 6f 72 44 65 76 69 |eturn Cu|rsorDevi|
|00003470| 63 65 42 75 74 74 6f 6e | 73 28 6f 75 72 44 65 76 |ceButton|s(ourDev|
|00003480| 69 63 65 2c 20 62 75 74 | 74 6f 6e 73 29 3b 0d 23 |ice, but|tons);.#|
|00003490| 65 6e 64 69 66 0d 7d 0d | 0d 4f 53 45 72 72 0d 43 |endif.}.|.OSErr.C|
|000034a0| 61 6c 6c 43 75 72 73 6f | 72 44 65 76 69 63 65 42 |allCurso|rDeviceB|
|000034b0| 75 74 74 6f 6e 44 6f 77 | 6e 28 0d 09 43 75 72 73 |uttonDow|n(..Curs|
|000034c0| 6f 72 44 65 76 69 63 65 | 50 74 72 20 6f 75 72 44 |orDevice|Ptr ourD|
|000034d0| 65 76 69 63 65 29 0d 7b | 0d 23 69 66 20 47 45 4e |evice).{|.#if GEN|
|000034e0| 45 52 41 54 49 4e 47 50 | 4f 57 45 52 50 43 0d 09 |ERATINGP|OWERPC..|
|000034f0| 72 65 74 75 72 6e 20 43 | 61 6c 6c 55 6e 69 76 65 |return C|allUnive|
|00003500| 72 73 61 6c 50 72 6f 63 | 28 0d 09 09 47 65 74 54 |rsalProc|(...GetT|
|00003510| 6f 6f 6c 62 6f 78 54 72 | 61 70 41 64 64 72 65 73 |oolboxTr|apAddres|
|00003520| 73 28 5f 43 75 72 73 6f | 72 44 65 76 69 63 65 44 |s(_Curso|rDeviceD|
|00003530| 69 73 70 61 74 63 68 29 | 2c 0d 09 09 67 6c 75 65 |ispatch)|,...glue|
|00003540| 55 70 70 43 75 72 73 6f | 72 44 65 76 69 63 65 42 |UppCurso|rDeviceB|
|00003550| 75 74 74 6f 6e 44 6f 77 | 6e 50 72 6f 63 49 6e 66 |uttonDow|nProcInf|
|00003560| 6f 2c 0d 09 09 30 78 34 | 2c 20 6f 75 72 44 65 76 |o,...0x4|, ourDev|
|00003570| 69 63 65 29 3b 0d 23 65 | 6c 73 65 0d 09 72 65 74 |ice);.#e|lse..ret|
|00003580| 75 72 6e 20 43 75 72 73 | 6f 72 44 65 76 69 63 65 |urn Curs|orDevice|
|00003590| 42 75 74 74 6f 6e 44 6f | 77 6e 28 6f 75 72 44 65 |ButtonDo|wn(ourDe|
|000035a0| 76 69 63 65 29 3b 0d 23 | 65 6e 64 69 66 0d 7d 0d |vice);.#|endif.}.|
|000035b0| 0d 4f 53 45 72 72 0d 43 | 61 6c 6c 43 75 72 73 6f |.OSErr.C|allCurso|
|000035c0| 72 44 65 76 69 63 65 42 | 75 74 74 6f 6e 55 70 28 |rDeviceB|uttonUp(|
|000035d0| 0d 09 43 75 72 73 6f 72 | 44 65 76 69 63 65 50 74 |..Cursor|DevicePt|
|000035e0| 72 20 6f 75 72 44 65 76 | 69 63 65 29 0d 7b 0d 23 |r ourDev|ice).{.#|
|000035f0| 69 66 20 47 45 4e 45 52 | 41 54 49 4e 47 50 4f 57 |if GENER|ATINGPOW|
|00003600| 45 52 50 43 0d 09 72 65 | 74 75 72 6e 20 43 61 6c |ERPC..re|turn Cal|
|00003610| 6c 55 6e 69 76 65 72 73 | 61 6c 50 72 6f 63 28 0d |lUnivers|alProc(.|
|00003620| 09 09 47 65 74 54 6f 6f | 6c 62 6f 78 54 72 61 70 |..GetToo|lboxTrap|
|00003630| 41 64 64 72 65 73 73 28 | 5f 43 75 72 73 6f 72 44 |Address(|_CursorD|
|00003640| 65 76 69 63 65 44 69 73 | 70 61 74 63 68 29 2c 0d |eviceDis|patch),.|
|00003650| 09 09 67 6c 75 65 55 70 | 70 43 75 72 73 6f 72 44 |..glueUp|pCursorD|
|00003660| 65 76 69 63 65 42 75 74 | 74 6f 6e 55 70 50 72 6f |eviceBut|tonUpPro|
|00003670| 63 49 6e 66 6f 2c 0d 09 | 09 30 78 35 2c 20 6f 75 |cInfo,..|.0x5, ou|
|00003680| 72 44 65 76 69 63 65 29 | 3b 0d 23 65 6c 73 65 0d |rDevice)|;.#else.|
|00003690| 09 72 65 74 75 72 6e 20 | 43 75 72 73 6f 72 44 65 |.return |CursorDe|
|000036a0| 76 69 63 65 42 75 74 74 | 6f 6e 55 70 28 6f 75 72 |viceButt|onUp(our|
|000036b0| 44 65 76 69 63 65 29 3b | 0d 23 65 6e 64 69 66 0d |Device);|.#endif.|
|000036c0| 7d 0d 0d 4f 53 45 72 72 | 0d 43 61 6c 6c 43 75 72 |}..OSErr|.CallCur|
|000036d0| 73 6f 72 44 65 76 69 63 | 65 42 75 74 74 6f 6e 4f |sorDevic|eButtonO|
|000036e0| 70 28 0d 09 43 75 72 73 | 6f 72 44 65 76 69 63 65 |p(..Curs|orDevice|
|000036f0| 50 74 72 20 6f 75 72 44 | 65 76 69 63 65 2c 0d 09 |Ptr ourD|evice,..|
|00003700| 73 68 6f 72 74 20 62 75 | 74 74 6f 6e 4e 75 6d 62 |short bu|ttonNumb|
|00003710| 65 72 2c 0d 09 42 75 74 | 74 6f 6e 4f 70 63 6f 64 |er,..But|tonOpcod|
|00003720| 65 20 6f 70 63 6f 64 65 | 2c 0d 09 6c 6f 6e 67 20 |e opcode|,..long |
|00003730| 64 61 74 61 29 0d 7b 0d | 23 69 66 20 47 45 4e 45 |data).{.|#if GENE|
|00003740| 52 41 54 49 4e 47 50 4f | 57 45 52 50 43 0d 09 72 |RATINGPO|WERPC..r|
|00003750| 65 74 75 72 6e 20 43 61 | 6c 6c 55 6e 69 76 65 72 |eturn Ca|llUniver|
|00003760| 73 61 6c 50 72 6f 63 28 | 0d 09 09 47 65 74 54 6f |salProc(|...GetTo|
|00003770| 6f 6c 62 6f 78 54 72 61 | 70 41 64 64 72 65 73 73 |olboxTra|pAddress|
|00003780| 28 5f 43 75 72 73 6f 72 | 44 65 76 69 63 65 44 69 |(_Cursor|DeviceDi|
|00003790| 73 70 61 74 63 68 29 2c | 0d 09 09 67 6c 75 65 55 |spatch),|...glueU|
|000037a0| 70 70 43 75 72 73 6f 72 | 44 65 76 69 63 65 42 75 |ppCursor|DeviceBu|
|000037b0| 74 74 6f 6e 4f 70 50 72 | 6f 63 49 6e 66 6f 2c 0d |ttonOpPr|ocInfo,.|
|000037c0| 09 09 30 78 36 2c 20 6f | 75 72 44 65 76 69 63 65 |..0x6, o|urDevice|
|000037d0| 2c 20 62 75 74 74 6f 6e | 4e 75 6d 62 65 72 2c 20 |, button|Number, |
|000037e0| 6f 70 63 6f 64 65 2c 20 | 64 61 74 61 29 3b 0d 23 |opcode, |data);.#|
|000037f0| 65 6c 73 65 0d 09 72 65 | 74 75 72 6e 20 43 75 72 |else..re|turn Cur|
|00003800| 73 6f 72 44 65 76 69 63 | 65 42 75 74 74 6f 6e 4f |sorDevic|eButtonO|
|00003810| 70 28 6f 75 72 44 65 76 | 69 63 65 2c 20 62 75 74 |p(ourDev|ice, but|
|00003820| 74 6f 6e 4e 75 6d 62 65 | 72 2c 20 6f 70 63 6f 64 |tonNumbe|r, opcod|
|00003830| 65 2c 20 64 61 74 61 29 | 3b 0d 23 65 6e 64 69 66 |e, data)|;.#endif|
|00003840| 0d 7d 0d 0d 4f 53 45 72 | 72 0d 43 61 6c 6c 43 75 |.}..OSEr|r.CallCu|
|00003850| 72 73 6f 72 44 65 76 69 | 63 65 53 65 74 42 75 74 |rsorDevi|ceSetBut|
|00003860| 74 6f 6e 73 28 0d 09 43 | 75 72 73 6f 72 44 65 76 |tons(..C|ursorDev|
|00003870| 69 63 65 50 74 72 20 6f | 75 72 44 65 76 69 63 65 |icePtr o|urDevice|
|00003880| 2c 0d 09 73 68 6f 72 74 | 20 6e 75 6d 62 65 72 4f |,..short| numberO|
|00003890| 66 42 75 74 74 6f 6e 73 | 29 0d 7b 0d 23 69 66 20 |fButtons|).{.#if |
|000038a0| 47 45 4e 45 52 41 54 49 | 4e 47 50 4f 57 45 52 50 |GENERATI|NGPOWERP|
|000038b0| 43 0d 09 72 65 74 75 72 | 6e 20 43 61 6c 6c 55 6e |C..retur|n CallUn|
|000038c0| 69 76 65 72 73 61 6c 50 | 72 6f 63 28 0d 09 09 47 |iversalP|roc(...G|
|000038d0| 65 74 54 6f 6f 6c 62 6f | 78 54 72 61 70 41 64 64 |etToolbo|xTrapAdd|
|000038e0| 72 65 73 73 28 5f 43 75 | 72 73 6f 72 44 65 76 69 |ress(_Cu|rsorDevi|
|000038f0| 63 65 44 69 73 70 61 74 | 63 68 29 2c 0d 09 09 67 |ceDispat|ch),...g|
|00003900| 6c 75 65 55 70 70 43 75 | 72 73 6f 72 44 65 76 69 |lueUppCu|rsorDevi|
|00003910| 63 65 53 65 74 42 75 74 | 74 6f 6e 73 50 72 6f 63 |ceSetBut|tonsProc|
|00003920| 49 6e 66 6f 2c 0d 09 09 | 30 78 37 2c 20 6f 75 72 |Info,...|0x7, our|
|00003930| 44 65 76 69 63 65 2c 20 | 6e 75 6d 62 65 72 4f 66 |Device, |numberOf|
|00003940| 42 75 74 74 6f 6e 73 29 | 3b 0d 23 65 6c 73 65 0d |Buttons)|;.#else.|
|00003950| 09 72 65 74 75 72 6e 20 | 43 75 72 73 6f 72 44 65 |.return |CursorDe|
|00003960| 76 69 63 65 53 65 74 42 | 75 74 74 6f 6e 73 28 6f |viceSetB|uttons(o|
|00003970| 75 72 44 65 76 69 63 65 | 2c 20 6e 75 6d 62 65 72 |urDevice|, number|
|00003980| 4f 66 42 75 74 74 6f 6e | 73 29 3b 0d 23 65 6e 64 |OfButton|s);.#end|
|00003990| 69 66 0d 7d 0d 0d 4f 53 | 45 72 72 0d 43 61 6c 6c |if.}..OS|Err.Call|
|000039a0| 43 75 72 73 6f 72 44 65 | 76 69 63 65 53 65 74 41 |CursorDe|viceSetA|
|000039b0| 63 63 65 6c 65 72 61 74 | 69 6f 6e 28 0d 09 43 75 |ccelerat|ion(..Cu|
|000039c0| 72 73 6f 72 44 65 76 69 | 63 65 50 74 72 20 6f 75 |rsorDevi|cePtr ou|
|000039d0| 72 44 65 76 69 63 65 2c | 0d 09 46 69 78 65 64 20 |rDevice,|..Fixed |
|000039e0| 61 63 63 65 6c 65 72 61 | 74 69 6f 6e 29 0d 7b 0d |accelera|tion).{.|
|000039f0| 23 69 66 20 47 45 4e 45 | 52 41 54 49 4e 47 50 4f |#if GENE|RATINGPO|
|00003a00| 57 45 52 50 43 0d 09 72 | 65 74 75 72 6e 20 43 61 |WERPC..r|eturn Ca|
|00003a10| 6c 6c 55 6e 69 76 65 72 | 73 61 6c 50 72 6f 63 28 |llUniver|salProc(|
|00003a20| 0d 09 09 47 65 74 54 6f | 6f 6c 62 6f 78 54 72 61 |...GetTo|olboxTra|
|00003a30| 70 41 64 64 72 65 73 73 | 28 5f 43 75 72 73 6f 72 |pAddress|(_Cursor|
|00003a40| 44 65 76 69 63 65 44 69 | 73 70 61 74 63 68 29 2c |DeviceDi|spatch),|
|00003a50| 0d 09 09 67 6c 75 65 55 | 70 70 43 75 72 73 6f 72 |...glueU|ppCursor|
|00003a60| 44 65 76 69 63 65 53 65 | 74 41 63 63 65 6c 65 72 |DeviceSe|tAcceler|
|00003a70| 61 74 69 6f 6e 50 72 6f | 63 49 6e 66 6f 2c 0d 09 |ationPro|cInfo,..|
|00003a80| 09 30 78 38 2c 20 6f 75 | 72 44 65 76 69 63 65 2c |.0x8, ou|rDevice,|
|00003a90| 20 61 63 63 65 6c 65 72 | 61 74 69 6f 6e 29 3b 0d | acceler|ation);.|
|00003aa0| 23 65 6c 73 65 0d 09 72 | 65 74 75 72 6e 20 43 75 |#else..r|eturn Cu|
|00003ab0| 72 73 6f 72 44 65 76 69 | 63 65 53 65 74 41 63 63 |rsorDevi|ceSetAcc|
|00003ac0| 65 6c 65 72 61 74 69 6f | 6e 28 6f 75 72 44 65 76 |eleratio|n(ourDev|
|00003ad0| 69 63 65 2c 20 61 63 63 | 65 6c 65 72 61 74 69 6f |ice, acc|eleratio|
|00003ae0| 6e 29 3b 0d 23 65 6e 64 | 69 66 0d 7d 0d 0d 4f 53 |n);.#end|if.}..OS|
|00003af0| 45 72 72 0d 43 61 6c 6c | 43 75 72 73 6f 72 44 65 |Err.Call|CursorDe|
|00003b00| 76 69 63 65 44 6f 75 62 | 6c 65 54 69 6d 65 28 0d |viceDoub|leTime(.|
|00003b10| 09 43 75 72 73 6f 72 44 | 65 76 69 63 65 50 74 72 |.CursorD|evicePtr|
|00003b20| 20 6f 75 72 44 65 76 69 | 63 65 2c 0d 09 6c 6f 6e | ourDevi|ce,..lon|
|00003b30| 67 20 64 75 72 61 74 69 | 6f 6e 54 69 63 6b 73 29 |g durati|onTicks)|
|00003b40| 0d 7b 0d 23 69 66 20 47 | 45 4e 45 52 41 54 49 4e |.{.#if G|ENERATIN|
|00003b50| 47 50 4f 57 45 52 50 43 | 0d 09 72 65 74 75 72 6e |GPOWERPC|..return|
|00003b60| 20 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 | CallUni|versalPr|
|00003b70| 6f 63 28 0d 09 09 47 65 | 74 54 6f 6f 6c 62 6f 78 |oc(...Ge|tToolbox|
|00003b80| 54 72 61 70 41 64 64 72 | 65 73 73 28 5f 43 75 72 |TrapAddr|ess(_Cur|
|00003b90| 73 6f 72 44 65 76 69 63 | 65 44 69 73 70 61 74 63 |sorDevic|eDispatc|
|00003ba0| 68 29 2c 0d 09 09 67 6c | 75 65 55 70 70 43 75 72 |h),...gl|ueUppCur|
|00003bb0| 73 6f 72 44 65 76 69 63 | 65 44 6f 75 62 6c 65 54 |sorDevic|eDoubleT|
|00003bc0| 69 6d 65 50 72 6f 63 49 | 6e 66 6f 2c 0d 09 09 30 |imeProcI|nfo,...0|
|00003bd0| 78 39 2c 20 6f 75 72 44 | 65 76 69 63 65 2c 20 64 |x9, ourD|evice, d|
|00003be0| 75 72 61 74 69 6f 6e 54 | 69 63 6b 73 29 3b 0d 23 |urationT|icks);.#|
|00003bf0| 65 6c 73 65 0d 09 72 65 | 74 75 72 6e 20 43 75 72 |else..re|turn Cur|
|00003c00| 73 6f 72 44 65 76 69 63 | 65 44 6f 75 62 6c 65 54 |sorDevic|eDoubleT|
|00003c10| 69 6d 65 28 6f 75 72 44 | 65 76 69 63 65 2c 20 64 |ime(ourD|evice, d|
|00003c20| 75 72 61 74 69 6f 6e 54 | 69 63 6b 73 29 3b 0d 23 |urationT|icks);.#|
|00003c30| 65 6e 64 69 66 0d 7d 0d | 0d 4f 53 45 72 72 0d 43 |endif.}.|.OSErr.C|
|00003c40| 61 6c 6c 43 75 72 73 6f | 72 44 65 76 69 63 65 55 |allCurso|rDeviceU|
|00003c50| 6e 69 74 73 50 65 72 49 | 6e 63 68 28 0d 09 43 75 |nitsPerI|nch(..Cu|
|00003c60| 72 73 6f 72 44 65 76 69 | 63 65 50 74 72 20 6f 75 |rsorDevi|cePtr ou|
|00003c70| 72 44 65 76 69 63 65 2c | 0d 09 46 69 78 65 64 20 |rDevice,|..Fixed |
|00003c80| 72 65 73 6f 6c 75 74 69 | 6f 6e 29 0d 7b 0d 23 69 |resoluti|on).{.#i|
|00003c90| 66 20 47 45 4e 45 52 41 | 54 49 4e 47 50 4f 57 45 |f GENERA|TINGPOWE|
|00003ca0| 52 50 43 0d 09 72 65 74 | 75 72 6e 20 43 61 6c 6c |RPC..ret|urn Call|
|00003cb0| 55 6e 69 76 65 72 73 61 | 6c 50 72 6f 63 28 0d 09 |Universa|lProc(..|
|00003cc0| 09 47 65 74 54 6f 6f 6c | 62 6f 78 54 72 61 70 41 |.GetTool|boxTrapA|
|00003cd0| 64 64 72 65 73 73 28 5f | 43 75 72 73 6f 72 44 65 |ddress(_|CursorDe|
|00003ce0| 76 69 63 65 44 69 73 70 | 61 74 63 68 29 2c 0d 09 |viceDisp|atch),..|
|00003cf0| 09 67 6c 75 65 55 70 70 | 43 75 72 73 6f 72 44 65 |.glueUpp|CursorDe|
|00003d00| 76 69 63 65 55 6e 69 74 | 73 50 65 72 49 6e 63 68 |viceUnit|sPerInch|
|00003d10| 50 72 6f 63 49 6e 66 6f | 2c 0d 09 09 30 78 41 2c |ProcInfo|,...0xA,|
|00003d20| 20 6f 75 72 44 65 76 69 | 63 65 2c 20 72 65 73 6f | ourDevi|ce, reso|
|00003d30| 6c 75 74 69 6f 6e 29 3b | 0d 23 65 6c 73 65 0d 09 |lution);|.#else..|
|00003d40| 72 65 74 75 72 6e 20 43 | 75 72 73 6f 72 44 65 76 |return C|ursorDev|
|00003d50| 69 63 65 55 6e 69 74 73 | 50 65 72 49 6e 63 68 28 |iceUnits|PerInch(|
|00003d60| 6f 75 72 44 65 76 69 63 | 65 2c 20 72 65 73 6f 6c |ourDevic|e, resol|
|00003d70| 75 74 69 6f 6e 29 3b 0d | 23 65 6e 64 69 66 0d 7d |ution);.|#endif.}|
|00003d80| 0d 0d 4f 53 45 72 72 0d | 43 61 6c 6c 43 75 72 73 |..OSErr.|CallCurs|
|00003d90| 6f 72 44 65 76 69 63 65 | 4e 65 78 74 44 65 76 69 |orDevice|NextDevi|
|00003da0| 63 65 28 0d 09 43 75 72 | 73 6f 72 44 65 76 69 63 |ce(..Cur|sorDevic|
|00003db0| 65 50 74 72 20 2a 6f 75 | 72 44 65 76 69 63 65 29 |ePtr *ou|rDevice)|
|00003dc0| 0d 7b 0d 23 69 66 20 47 | 45 4e 45 52 41 54 49 4e |.{.#if G|ENERATIN|
|00003dd0| 47 50 4f 57 45 52 50 43 | 0d 09 72 65 74 75 72 6e |GPOWERPC|..return|
|00003de0| 20 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 | CallUni|versalPr|
|00003df0| 6f 63 28 0d 09 09 47 65 | 74 54 6f 6f 6c 62 6f 78 |oc(...Ge|tToolbox|
|00003e00| 54 72 61 70 41 64 64 72 | 65 73 73 28 5f 43 75 72 |TrapAddr|ess(_Cur|
|00003e10| 73 6f 72 44 65 76 69 63 | 65 44 69 73 70 61 74 63 |sorDevic|eDispatc|
|00003e20| 68 29 2c 0d 09 09 67 6c | 75 65 55 70 70 43 75 72 |h),...gl|ueUppCur|
|00003e30| 73 6f 72 44 65 76 69 63 | 65 4e 65 78 74 44 65 76 |sorDevic|eNextDev|
|00003e40| 69 63 65 50 72 6f 63 49 | 6e 66 6f 2c 0d 09 09 30 |iceProcI|nfo,...0|
|00003e50| 78 42 2c 20 6f 75 72 44 | 65 76 69 63 65 29 3b 0d |xB, ourD|evice);.|
|00003e60| 23 65 6c 73 65 0d 09 72 | 65 74 75 72 6e 20 43 75 |#else..r|eturn Cu|
|00003e70| 72 73 6f 72 44 65 76 69 | 63 65 4e 65 78 74 44 65 |rsorDevi|ceNextDe|
|00003e80| 76 69 63 65 28 6f 75 72 | 44 65 76 69 63 65 29 3b |vice(our|Device);|
|00003e90| 0d 23 65 6e 64 69 66 0d | 7d 0d 0d 4f 53 45 72 72 |.#endif.|}..OSErr|
|00003ea0| 0d 43 61 6c 6c 43 75 72 | 73 6f 72 44 65 76 69 63 |.CallCur|sorDevic|
|00003eb0| 65 4e 65 77 44 65 76 69 | 63 65 28 0d 09 43 75 72 |eNewDevi|ce(..Cur|
|00003ec0| 73 6f 72 44 65 76 69 63 | 65 50 74 72 20 2a 6f 75 |sorDevic|ePtr *ou|
|00003ed0| 72 44 65 76 69 63 65 29 | 0d 7b 0d 23 69 66 20 47 |rDevice)|.{.#if G|
|00003ee0| 45 4e 45 52 41 54 49 4e | 47 50 4f 57 45 52 50 43 |ENERATIN|GPOWERPC|
|00003ef0| 0d 09 72 65 74 75 72 6e | 20 43 61 6c 6c 55 6e 69 |..return| CallUni|
|00003f00| 76 65 72 73 61 6c 50 72 | 6f 63 28 0d 09 09 47 65 |versalPr|oc(...Ge|
|00003f10| 74 54 6f 6f 6c 62 6f 78 | 54 72 61 70 41 64 64 72 |tToolbox|TrapAddr|
|00003f20| 65 73 73 28 5f 43 75 72 | 73 6f 72 44 65 76 69 63 |ess(_Cur|sorDevic|
|00003f30| 65 44 69 73 70 61 74 63 | 68 29 2c 0d 09 09 67 6c |eDispatc|h),...gl|
|00003f40| 75 65 55 70 70 43 75 72 | 73 6f 72 44 65 76 69 63 |ueUppCur|sorDevic|
|00003f50| 65 4e 65 77 44 65 76 69 | 63 65 50 72 6f 63 49 6e |eNewDevi|ceProcIn|
|00003f60| 66 6f 2c 0d 09 09 30 78 | 43 2c 20 6f 75 72 44 65 |fo,...0x|C, ourDe|
|00003f70| 76 69 63 65 29 3b 0d 23 | 65 6c 73 65 0d 09 72 65 |vice);.#|else..re|
|00003f80| 74 75 72 6e 20 43 75 72 | 73 6f 72 44 65 76 69 63 |turn Cur|sorDevic|
|00003f90| 65 4e 65 77 44 65 76 69 | 63 65 28 6f 75 72 44 65 |eNewDevi|ce(ourDe|
|00003fa0| 76 69 63 65 29 3b 0d 23 | 65 6e 64 69 66 0d 7d 0d |vice);.#|endif.}.|
|00003fb0| 0d 4f 53 45 72 72 0d 43 | 61 6c 6c 43 75 72 73 6f |.OSErr.C|allCurso|
|00003fc0| 72 44 65 76 69 63 65 44 | 69 73 70 6f 73 65 44 65 |rDeviceD|isposeDe|
|00003fd0| 76 69 63 65 28 0d 09 43 | 75 72 73 6f 72 44 65 76 |vice(..C|ursorDev|
|00003fe0| 69 63 65 50 74 72 20 6f | 75 72 44 65 76 69 63 65 |icePtr o|urDevice|
|00003ff0| 29 0d 7b 0d 23 69 66 20 | 47 45 4e 45 52 41 54 49 |).{.#if |GENERATI|
|00004000| 4e 47 50 4f 57 45 52 50 | 43 0d 09 72 65 74 75 72 |NGPOWERP|C..retur|
|00004010| 6e 20 43 61 6c 6c 55 6e | 69 76 65 72 73 61 6c 50 |n CallUn|iversalP|
|00004020| 72 6f 63 28 0d 09 09 47 | 65 74 54 6f 6f 6c 62 6f |roc(...G|etToolbo|
|00004030| 78 54 72 61 70 41 64 64 | 72 65 73 73 28 5f 43 75 |xTrapAdd|ress(_Cu|
|00004040| 72 73 6f 72 44 65 76 69 | 63 65 44 69 73 70 61 74 |rsorDevi|ceDispat|
|00004050| 63 68 29 2c 0d 09 09 67 | 6c 75 65 55 70 70 43 75 |ch),...g|lueUppCu|
|00004060| 72 73 6f 72 44 65 76 69 | 63 65 44 69 73 70 6f 73 |rsorDevi|ceDispos|
|00004070| 65 44 65 76 69 63 65 50 | 72 6f 63 49 6e 66 6f 2c |eDeviceP|rocInfo,|
|00004080| 0d 09 09 30 78 44 2c 20 | 6f 75 72 44 65 76 69 63 |...0xD, |ourDevic|
|00004090| 65 29 3b 0d 23 65 6c 73 | 65 0d 09 72 65 74 75 72 |e);.#els|e..retur|
|000040a0| 6e 20 43 75 72 73 6f 72 | 44 65 76 69 63 65 44 69 |n Cursor|DeviceDi|
|000040b0| 73 70 6f 73 65 44 65 76 | 69 63 65 28 6f 75 72 44 |sposeDev|ice(ourD|
|000040c0| 65 76 69 63 65 29 3b 0d | 23 65 6e 64 69 66 0d 7d |evice);.|#endif.}|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00004110| 6e 00 00 1b 52 01 00 00 | 00 02 65 00 00 02 4f 6e |n...R...|..e...On|
|00004120| 00 00 1b 53 01 00 00 00 | 01 65 00 00 02 26 6e 00 |...S....|.e...&n.|
|00004130| 0b 4d 6f 76 65 4d 6f 75 | 73 65 2e 63 02 00 00 00 |.MoveMou|se.c....|
|00004140| 54 45 58 54 43 57 49 45 | 01 00 00 00 03 c0 00 00 |TEXTCWIE|........|
|00004150| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 03 c0 |..TEXTCW|IE......|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 ac cd 31 22 00 00 | 40 50 00 00 01 9a 01 ff |....1"..|@P......|
|00004180| ff ff 33 65 00 00 01 e0 | 6c 00 00 1b 5a 00 00 1b |..3e....|l...Z...|
|00004190| 5b 03 00 00 01 03 46 00 | 01 00 01 68 00 03 70 00 |[.....F.|...h..p.|
|000041a0| 00 73 00 00 00 00 00 00 | 01 4b 00 00 00 70 00 00 |.s......|.K...p..|
|000041b0| 68 00 00 00 00 6c 00 00 | 1b 5c 00 00 1b 5d 03 00 |h....l..|.\...]..|
|000041c0| 00 01 03 46 00 01 00 01 | 68 00 05 68 00 00 00 6c |...F....|h..h...l|
|000041d0| 00 00 00 70 00 00 43 00 | 00 01 4b 00 00 00 70 00 |...p..C.|..K...p.|
|000041e0| 00 68 00 00 00 00 6c 00 | 00 1b 5e 00 00 1b 5f 03 |.h....l.|..^..._.|
|000041f0| 00 00 01 03 46 00 01 00 | 01 68 00 03 70 00 00 43 |....F...|.h..p..C|
|00004200| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00004210| 6e 61 63 6f 00 00 00 00 | 00 00 00 00 00 00 00 00 |naco....|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|00004230| 00 04 00 29 00 03 02 6d | 03 3d 00 29 00 03 02 6d |...)...m|.=.)...m|
|00004240| 03 3d ad 61 09 08 00 00 | 0f fd 00 00 0f fd 00 00 |.=.a....|........|
|00004250| 00 00 00 00 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00004260| 00 00 00 46 01 84 58 d0 | 1a d0 00 00 00 1c 00 46 |...F..X.|.......F|
|00004270| 00 01 4d 57 42 42 00 00 | 00 12 4d 50 53 52 00 00 |..MWBB..|..MPSR..|
|00004280| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |........|........|
|00004290| ff ff 00 00 00 08 01 84 | 56 cc 00 00 00 00 00 00 |........|V.......|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+