📄 pmevent.h
字号:
/* * @(#)pmevent.h 4.1 (ULTRIX) 7/2/90 *//************************************************************************* ** Copyright (c) 1985 by ** Digital Equipment Corporation, Maynard, MA ** All rights reserved. ** ** This software is furnished under a license and may be used and ** copied only in accordance with the terms of such license and ** with the inclusion of the above copyright notice. This ** software or any other copies thereof may not be provided or ** otherwise made available to any other person. No title to and ** ownership of the software is hereby transferred. ** ** The information in this software is subject to change without ** notice and should not be construed as a commitment by Digital ** Equipment Corporation. ** ** Digital assumes no responsibility for the use or reliability ** of its software on equipment which is not supplied by Digital. ** *************************************************************************//* * Event queue entries */# ifndef _PMEVENT_# define _PMEVENT_typedef struct _event { short x; /* x position */ short y; /* y position */ unsigned int time; /* 1 millisecond units */ unsigned char type; /* button up/down/raw or motion */ unsigned char key; /* the key (button only) */ unsigned char index; /* which instance of device */ unsigned char device; /* which device */} pmEvent;/* type field */#define BUTTON_UP_TYPE 0#define BUTTON_DOWN_TYPE 1#define BUTTON_RAW_TYPE 2#define MOTION_TYPE 3/* device field */#define NULL_DEVICE 0 /* NULL event (for QD_GETEVENT ret) */#define MOUSE_DEVICE 1 /* mouse */#define KEYBOARD_DEVICE 2 /* main keyboard */#define TABLET_DEVICE 3 /* graphics tablet */#define AUX_DEVICE 4 /* auxiliary */#define CONSOLE_DEVICE 5 /* console */#define KNOB_DEVICE 8#define JOYSTICK_DEVICE 9#define PMMAXEVQ 64 /* must be power of 2 */#define EVROUND(x) ((x) & (PMMAXEVQ - 1))#define TABLET_RES 2typedef struct _timecoord { unsigned int time; short x, y;} pmTimeCoord;/* * The event queue. This structure is normally included in the info * returned by the device driver. */typedef struct _eventqueue { pmEvent *events; unsigned int eSize; unsigned int eHead; unsigned int eTail; unsigned long timestamp_ms; pmTimeCoord *tcs; /* history of pointer motions */ unsigned int tcSize; unsigned int tcNext; /* simple ring buffer, old events are tossed */} pmEventQueue;/* mouse cursor position */typedef struct _cursor { short x; short y;} pmCursor;/* mouse motion rectangle */typedef struct _box { short bottom; short right; short left; short top;} pmBox;# endif _PMEVENT_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -