Link libarchive against libbz2 and libz to be compatible with upstream.
[dragonfly.git] / usr.bin / doscmd / mouse.h
blobba9bb81bcbdf86be39ed75665de6a1856e8bb124
1 /*
2 * Copyright (c) 1992, 1993, 1996
3 * Berkeley Software Design, Inc. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by Berkeley Software
16 * Design, Inc.
18 * THIS SOFTWARE IS PROVIDED BY Berkeley Software Design, Inc. ``AS IS'' AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL Berkeley Software Design, Inc. BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
30 * BSDI mouse.h,v 2.2 1996/04/08 19:32:58 bostic Exp
32 * $FreeBSD: src/usr.bin/doscmd/mouse.h,v 1.2 1999/08/28 01:00:20 peter Exp $
33 * $DragonFly: src/usr.bin/doscmd/mouse.h,v 1.2 2003/06/17 04:29:26 dillon Exp $
36 typedef struct {
37 u_short hardcursor:1;
38 u_short installed:1;
39 u_short cursor:1;
40 u_short show:1;
41 u_short buttons:3;
43 u_short init;
44 u_short start;
45 u_short end;
46 u_short hmickey;
47 u_short vmickey;
48 u_short doubling;
49 u_long handler;
50 u_short mask;
51 u_long althandler[3];
52 u_short altmask[3];
53 struct {
54 u_short x;
55 u_short y;
56 u_short w;
57 u_short h;
58 } range, exclude;
59 u_short x;
60 u_short y;
61 u_short lastx;
62 u_short lasty;
64 u_short downs[3];
65 u_short ups[3];
66 } mouse_t;
68 extern mouse_t mouse_status;
69 extern u_char *mouse_area;