Odamex
Setting the Standard in Multiplayer Doom
client/src/c_bind.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: c_bind.h 1788 2010-08-24 04:42:57Z russellrice $
00005 //
00006 // Copyright (C) 1998-2006 by Randy Heit (ZDoom 1.22).
00007 // Copyright (C) 2006-2010 by The Odamex Team.
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // DESCRIPTION:
00020 //      C_BIND
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __C_BINDINGS_H__
00026 #define __C_BINDINGS_H__
00027 
00028 #include <string>
00029 
00030 #include "doomtype.h"
00031 #include "d_event.h"
00032 #include <stdio.h>
00033 
00034 BOOL C_DoKey (event_t *ev);
00035 void C_ArchiveBindings (FILE *f);
00036 
00037 // Stuff used by the customize controls menu
00038 int  C_GetKeysForCommand (const char *cmd, int *first, int *second);
00039 std::string C_NameKeys (int first, int second);
00040 void C_UnbindACommand (const char *str);
00041 void C_ChangeBinding (const char *str, int newone);
00042 
00043 // Returns string bound to given key (NULL if none)
00044 const char *C_GetBinding (int key);
00045 
00046 #endif //__C_BINDINGS_H__
00047 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends