Skip to content
Snippets Groups Projects
Select Git revision
  • next default protected
  • movie
  • softcode-info
  • master protected
  • acs
  • spriteinfo-refactor
  • clipmidtex
  • custom-map-names
  • nogravity-trampolines
  • 2214-pre4
  • 2214-pre3
  • just-in-case
  • fix-opengl-parameter-crash
  • 2214-pre2
  • 2214-pre1
  • delfile2
  • cleanupmusic
  • gametype-refactor-1
  • extra-textures
  • optimize-storewallrange
  • SRB2_release_2.2.15
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
40 results

d_event.h

Blame
  • d_event.h 1.08 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2023 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  d_event.h
    /// \brief Event handling
    
    #ifndef __D_EVENT__
    #define __D_EVENT__
    
    #include "doomtype.h"
    #include "g_state.h"
    
    // Input event types.
    typedef enum
    {
    	ev_keydown,
    	ev_keyup,
    	ev_text,
    	ev_console,
    	ev_mouse,
    	ev_joystick,
    	ev_mouse2,
    	ev_joystick2,
    } evtype_t;
    
    // Event structure.
    typedef struct
    {
    	evtype_t type;
    	INT32 key; // keys/mouse/joystick buttons
    	INT32 x; // mouse/joystick x move
    	INT32 y; // mouse/joystick y move
    	boolean repeated; // key repeat
    } event_t;
    
    //
    // GLOBAL VARIABLES
    //
    #define MAXEVENTS 128
    
    extern event_t events[MAXEVENTS];
    extern INT32 eventhead, eventtail;
    
    #endif