Odamex
Setting the Standard in Multiplayer Doom
client/sdl/i_input.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: i_input.h 1928 2010-09-17 04:39:55Z hypereye $
00005 //
00006 // Copyright (C) 2006-2010 by The Odamex Team.
00007 //
00008 // This program is free software; you can redistribute it and/or
00009 // modify it under the terms of the GNU General Public License
00010 // as published by the Free Software Foundation; either version 2
00011 // of the License, or (at your option) any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // DESCRIPTION:
00019 //      SDL input handler
00020 //
00021 //-----------------------------------------------------------------------------
00022 
00023 
00024 #ifndef __I_INPUT_H__
00025 #define __I_INPUT_H__
00026 
00027 #include "doomtype.h"
00028 
00029 extern int KeyRepeatRate;
00030 extern int KeyRepeatDelay;
00031 
00032 bool I_InitInput (void);
00033 void STACK_ARGS I_ShutdownInput (void);
00034 void I_PauseMouse();
00035 void I_ResumeMouse();
00036 
00037 int I_GetJoystickCount();
00038 std::string I_GetJoystickNameFromIndex (int index);
00039 bool I_OpenJoystick();
00040 void I_CloseJoystick();
00041 
00042 void I_GetEvent (void);
00043 
00044 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends