1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
20 //-----------------------------------------------------------------------------
48 int data1; // char / key / mouse/joystick buttons
49 int data2; // mouse/joystick x move
50 int data3; // mouse/joystick y move
71 // Button/action code definitions.
77 // Use button, to open doors, activate switches.
80 // Flag: game events, not really buttons.
84 // Flag, weapon change pending.
85 // If true, the next 3 bits hold weapon num.
87 // The 3bit weapon mask and shift, convenience.
88 BT_WEAPONMASK = (8+16+32),
93 // Save the game at each console.
96 // Savegame slot numbers
97 // occupy the second byte of buttons.
98 BTS_SAVEMASK = (4+8+16),
111 extern event_t events[MAXEVENTS];
112 extern int eventhead;
113 extern int eventtail;
115 extern gameaction_t gameaction;
119 //-----------------------------------------------------------------------------
123 //-----------------------------------------------------------------------------