Annotation of 43BSDReno/sys/vaxuba/qevent.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1982, 1986 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  *
        !             6:  *             @(#)qevent.h    1.3  Berkeley  6/3/88
        !             7:  */
        !             8: /************************************************************************
        !             9: *                                                                      *
        !            10: *                      Copyright (c) 1985 by                           *
        !            11: *              Digital Equipment Corporation, Maynard, MA              *
        !            12: *                      All rights reserved.                            *
        !            13: *                                                                      *
        !            14: *   This software is furnished under a license and may be used and     *
        !            15: *   copied  only  in accordance with the terms of such license and     *
        !            16: *   with the  inclusion  of  the  above  copyright  notice.   This     *
        !            17: *   software  or  any  other copies thereof may not be provided or     *
        !            18: *   otherwise made available to any other person.  No title to and     *
        !            19: *   ownership of the software is hereby transferred.                   *
        !            20: *                                                                      *
        !            21: *   The information in this software is subject to change  without     *
        !            22: *   notice  and should not be construed as a commitment by Digital     *
        !            23: *   Equipment Corporation.                                             *
        !            24: *                                                                      *
        !            25: *   Digital assumes no responsibility for the use  or  reliability     *
        !            26: *   of its software on equipment which is not supplied by Digital.     *
        !            27: *                                                                      *
        !            28: ************************************************************************/
        !            29: 
        !            30: /*
        !            31:  * Event queue entries
        !            32:  */
        !            33: 
        !            34: #ifndef _QEVENT_
        !            35: #define _QEVENT_
        !            36: 
        !            37: typedef struct  _vs_event {
        !            38:         unsigned short vse_x;  /* x position */
        !            39:         unsigned short vse_y;  /* y position */
        !            40:         unsigned short vse_time;/* 10 millisecond units (button only) */
        !            41:         char    vse_type;       /* button or motion? */
        !            42:         unsigned char  vse_key;        /* the key (button only) */
        !            43:         char    vse_direction; /* which direction (button only) */
        !            44:         char    vse_device;    /* which device (button only) */
        !            45: } vsEvent;
        !            46: 
        !            47: /* vse_type field */
        !            48: #define VSE_BUTTON      0               /* button moved */
        !            49: #define VSE_MMOTION     1               /* mouse moved */
        !            50: #define VSE_TMOTION     2               /* tablet moved */
        !            51: 
        !            52: /* vse_direction field */
        !            53: #define VSE_KBTUP       0               /* up */
        !            54: #define VSE_KBTDOWN     1               /* down */
        !            55: #define VSE_KBTRAW     2               /* undetermined */
        !            56: 
        !            57: /* vse_device field */
        !            58: #define VSE_NULL       0               /* NULL event (for QD_GETEVENT ret) */
        !            59: #define VSE_MOUSE       1               /* mouse */
        !            60: #define VSE_DKB         2               /* main keyboard */
        !            61: #define VSE_TABLET      3               /* graphics tablet */
        !            62: #define VSE_AUX         4               /* auxiliary */
        !            63: #define VSE_CONSOLE     5               /* console */
        !            64: 
        !            65: /* The event queue */
        !            66: 
        !            67: typedef struct _vs_eventqueue {
        !            68:        vsEvent *events;        /* input event buffer */
        !            69:        int size;               /* size of event buffer */
        !            70:        int head;               /* index into events */
        !            71:        int tail;               /* index into events */
        !            72: } vsEventQueue;
        !            73: 
        !            74: /* mouse cursor position */
        !            75: 
        !            76: typedef struct _vs_cursor {
        !            77:         short x;
        !            78:         short y;
        !            79: } vsCursor;
        !            80: 
        !            81: /* mouse motion rectangle */
        !            82: 
        !            83: typedef struct _vs_box {
        !            84:         short bottom;
        !            85:         short right;
        !            86:         short left;
        !            87:         short top;
        !            88: } vsBox;
        !            89: 
        !            90: #endif /*_QEVENT_*/

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.