Debian Codegraph @

common/nsmtracker_events.h

raw symbols SCIP
1 /* Copyright 2000 Kjetil S. Matheussen
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License
5 as published by the Free Software Foundation; either version 2
6 of the License, or (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
16
17
18 #ifndef TRACKER_EVENTS_DEFINE
19 #define TRACKER_EVENTS_DEFINEcxx . . $ `common/nsmtracker_events.h:19:9`! 1
20
21 #include "keyboard_sub_ids.h"cxx . . $ `<file>/common/keyboard_sub_ids.h`/
22
23 /* Event IDs: */
24
25 #define TR_MOUSEMOVEcxx . . $ `common/nsmtracker_events.h:25:9`! 0
26 #define TR_LEFTMOUSEDOWNcxx . . $ `common/nsmtracker_events.h:26:9`! 1
27 #define TR_LEFTMOUSEUPcxx . . $ `common/nsmtracker_events.h:27:9`! 2
28 #define TR_MIDDLEMOUSEDOWNcxx . . $ `common/nsmtracker_events.h:28:9`! 3
29 #define TR_MIDDLEMOUSEUPcxx . . $ `common/nsmtracker_events.h:29:9`! 4
30 #define TR_RIGHTMOUSEDOWNcxx . . $ `common/nsmtracker_events.h:30:9`! 5
31 #define TR_RIGHTMOUSEUPcxx . . $ `common/nsmtracker_events.h:31:9`! 6
32
33 #define TR_KEYBOARDcxx . . $ `common/nsmtracker_events.h:33:9`! 7
34
35 #define TR_WINDOWMOVEcxx . . $ `common/nsmtracker_events.h:35:9`! 8
36 #define TR_WINDOWRESIZEcxx . . $ `common/nsmtracker_events.h:36:9`! 9
37 #define TR_WINDOWVISIBLEcxx . . $ `common/nsmtracker_events.h:37:9`! 10
38 #define TR_WINDOWNOTVISIBLEcxx . . $ `common/nsmtracker_events.h:38:9`! 11
39 #define TR_WINDOWCLOSEcxx . . $ `common/nsmtracker_events.h:39:9`! 12
40
41 #define TR_KEYBOARDUPcxx . . $ `common/nsmtracker_events.h:41:9`! 13
42
43
44
45
46 /* KEYSWITCHes: */
47
48 #define EVENT_LEFTCTRLcxx . . $ `common/nsmtracker_events.h:48:9`! (1<<EVENT_CTRL_L)
49 #define EVENT_RIGHTCTRLcxx . . $ `common/nsmtracker_events.h:49:9`! (1<<EVENT_CTRL_R)
50 #define EVENT_CAPSLOCKcxx . . $ `common/nsmtracker_events.h:50:9`! (1<<EVENT_CAPS)
51 #define EVENT_LEFTSHIFTcxx . . $ `common/nsmtracker_events.h:51:9`! (1<<EVENT_SHIFT_L)
52 #define EVENT_RIGHTSHIFTcxx . . $ `common/nsmtracker_events.h:52:9`! (1<<EVENT_SHIFT_R)
53 #define EVENT_LEFTALTcxx . . $ `common/nsmtracker_events.h:53:9`! (1<<EVENT_ALT_L)
54 #define EVENT_RIGHTALTcxx . . $ `common/nsmtracker_events.h:54:9`! (1<<EVENT_ALT_R)
55
56 #define EVENT_LEFTEXTRA1cxx . . $ `common/nsmtracker_events.h:56:9`! (1<<EVENT_EXTRA_L) /*Amiga: Amiga, PC: "Meta"/Windows key */
57 #define EVENT_RIGHTEXTRA1cxx . . $ `common/nsmtracker_events.h:57:9`! (1<<EVENT_EXTRA_R) /*Amiga: Amiga, PC: "Meta"/Windows key */
58 #define EVENT_UP2cxx . . $ `common/nsmtracker_events.h:58:9`! (1<<EVENT_UP) /* Up key, i.e. key is released. */
59
60 #define NoSwitchcxx . . $ `common/nsmtracker_events.h:60:9`!(a) (a==0)
61 #define LeftCtrlcxx . . $ `common/nsmtracker_events.h:61:9`!(a) (a&EVENT_LEFTCTRL)
62 #define RightCtrlcxx . . $ `common/nsmtracker_events.h:62:9`!(a) (a&EVENT_RIGHTCTRL)
63 #define CapsLockcxx . . $ `common/nsmtracker_events.h:63:9`!(a) (a&EVENT_CAPSLOCK)
64 #define LeftShiftcxx . . $ `common/nsmtracker_events.h:64:9`!(a) (a&EVENT_LEFTSHIFT)
65 #define RightShiftcxx . . $ `common/nsmtracker_events.h:65:9`!(a) (a&EVENT_RIGHTSHIFT)
66 #define AnyShiftcxx . . $ `common/nsmtracker_events.h:66:9`!(a) (LeftShift(a) | RightShift(a))
67 #define LeftAltcxx . . $ `common/nsmtracker_events.h:67:9`!(a) (a&EVENT_LEFTALT)
68 #define RightAltcxx . . $ `common/nsmtracker_events.h:68:9`!(a) (a&EVENT_RIGHTALT)
69 #define LeftExtracxx . . $ `common/nsmtracker_events.h:69:9`!(a) (a&EVENT_LEFTEXTRA1)
70 #define RightExtracxx . . $ `common/nsmtracker_events.h:70:9`!(a) (a&EVENT_RIGHTEXTRA1)
71
72 #define OnlyLeftShiftcxx . . $ `common/nsmtracker_events.h:72:9`!(a) (a==EVENT_LEFTSHIFT)
73 #define OnlyLeftAltcxx . . $ `common/nsmtracker_events.h:73:9`!(a) (a==EVENT_LEFTALT)
74
75
76
77
78 struct TEventcxx . . $ TEvent#{
79 int IDcxx . . $ TEvent#ID.;
80 int SubIDcxx . . $ TEvent#SubID.;
81 uint32_tcxx . . $ uint32_t# keyswitchcxx . . $ TEvent#keyswitch.;
82 int xcxx . . $ TEvent#x.;
83 int ycxx . . $ TEvent#y.;
84 };
85
86 struct TEventFIFOcxx . . $ TEventFIFO#{
87 struct TEventFIFOcxx . . $ TEventFIFO# *nextcxx . . $ TEventFIFO#next.;
88 struct TEventcxx . . $ TEvent# tcxx . . $ TEventFIFO#t.;
89 };
90
91
92
93
94 struct WrapFuncListcxx . . $ WrapFuncList#{
95 char *funcnamecxx . . $ WrapFuncList#funcname.;
96 void *funccxx . . $ WrapFuncList#func.;
97 };
98
99
100 #endif
101
102
103
104
105
106
107
108
109
110
111