bool InputConverter::SetBind(std::string action, std::string bind, int key) {
	if (key == -1 || action == "INVALID") {
		return false;
	}
	std::stringstream ss;
	ss << bind << " " << key;
	m_actions.at(StringToAction(action)) = ss.str();
	return true;
}
void eControlManager::Map(const char *action, csKeyEventData &data)
{
    size_t actionInt = StringToAction( action );
    if ( actionInt != (size_t)-1)
    {        
        keyMap[actionInt]->csKey = data;
    }
    else
    {
        ActionKeyMap *newkey = new ActionKeyMap;
        newkey->action = action;
        newkey->csKey  = data;
        keyMap.Push(newkey);
    }
}