You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.6 KiB
76 lines
1.6 KiB
/*
|
|
* Turbo Vision - Version 2.0
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
|
|
Modified by Robert H”hne to be used for RHIDE.
|
|
|
|
*
|
|
*
|
|
*/
|
|
|
|
#if !defined( __EVENT_CODES )
|
|
#define __EVENT_CODES
|
|
|
|
/* If this variable is set to nonzero, TV uses for the screen
|
|
output the monochrome monitor. All attempts to set an video
|
|
mode are ignored, the user screen is not saved and/or restored
|
|
and there is checking done, if the monochrome monitor is
|
|
valid. That means, you have to set this variable ONLY if you
|
|
know what you do.
|
|
*/
|
|
|
|
extern int dual_display;
|
|
|
|
/* Event codes */
|
|
|
|
const ushort evMouseDown = 0x0001;
|
|
const ushort evMouseUp = 0x0002;
|
|
const ushort evMouseMove = 0x0004;
|
|
const ushort evMouseAuto = 0x0008;
|
|
const ushort evKeyDown = 0x0010;
|
|
const ushort evCommand = 0x0100;
|
|
const ushort evBroadcast = 0x0200;
|
|
|
|
/* Event masks */
|
|
|
|
const ushort evNothing = 0x0000;
|
|
const ushort evMouse = 0x000f;
|
|
const ushort evKeyboard = 0x0010;
|
|
const ushort evMessage = 0xFF00;
|
|
|
|
/* Mouse button state masks */
|
|
/* SET: Note that I redefined them to make it coherent with most UNIX systems
|
|
where the left button is the first, the middle one the second, etc. But safe
|
|
code shouldn't rely on it. */
|
|
const ushort mbLeftButton = 0x01;
|
|
const ushort mbMiddleButton= 0x02;
|
|
const ushort mbRightButton = 0x04;
|
|
const ushort mbButton4 = 0x08;
|
|
const ushort mbButton5 = 0x10;
|
|
|
|
#endif // __EVENT_CODES
|
|
|
|
|
|
#if defined( Uses_TEvent )
|
|
|
|
#include <tv/event.h>
|
|
|
|
#endif
|
|
|
|
#if defined( Uses_TEventQueue )
|
|
|
|
#include <tv/eventqu.h>
|
|
|
|
#endif
|
|
|
|
#if defined( Uses_TScreen )
|
|
|
|
#include <tv/screen.h>
|
|
|
|
#endif
|
|
|
|
|
|
|