summaryrefslogtreecommitdiff
path: root/tvision/include/tv/system.h
blob: 42a0832c803bcf65fa308a9517b5b05982a5b001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 *      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