// Emacs style mode select   -*- C++ -*- 
//-----------------------------------------------------------------------------
//
// $Id: c_bind.h 3798 2013-04-24 03:09:33Z dr_sean $
//
// Copyright (C) 1998-2006 by Randy Heit (ZDoom 1.22).
// Copyright (C) 2006-2013 by The Odamex Team.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// DESCRIPTION:
//	C_BIND
//
//-----------------------------------------------------------------------------


#ifndef __C_BINDINGS_H__
#define __C_BINDINGS_H__

#include <string>

#include "doomtype.h"
#include "d_event.h"
#include <stdio.h>

BOOL C_DoKey (event_t *ev);
void C_ArchiveBindings (FILE *f);

// Stuff used by the customize controls menu
int  C_GetKeysForCommand (const char *cmd, int *first, int *second);
std::string C_NameKeys (int first, int second);
void C_UnbindACommand (const char *str);
void C_ChangeBinding (const char *str, int newone);

// Returns string bound to given key (NULL if none)
const char *C_GetBinding (int key);

#endif //__C_BINDINGS_H__

