diff --git a/src/command.c b/src/command.c
index f47772e570ec37e6d98500dd120964860bebcf5d..f903165f57a113034df735373395a4a5a3d43a7f 100644 (file)
--- a/src/command.c
+++ b/src/command.c
*/
#include "command.h"
-#include "config.h"
-#include "ncmpc.h"
#include "i18n.h"
-#include "mpdclient.h"
-#include "screen.h"
+#include "ncmpc_curses.h"
+#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
return find_key_command(key, cmds);
}
-command_t
-get_keyboard_command(void)
-{
- int key = wgetch(stdscr);
- if (key == ERR || key == '\0')
- return CMD_NONE;
-
-#ifdef HAVE_GETMOUSE
- if (key == KEY_MOUSE)
- return CMD_MOUSE_EVENT;
-#endif
-
- return get_key_command(key);
-}
-
bool
assign_keys(command_t command, int keys[MAX_COMMAND_KEYS])
{