aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-02 21:11:56 +0000
committerKalle Wallin <kaw@linux.se>2004-07-02 21:11:56 +0000
commitb268b9992faa303d6283c5a88ba460b5fd73cef6 (patch)
tree9fb9980bc7b231796b79d5abf0de6153ea8228fe /src/command.c
parent8a22ebb6b68d5696ef853f07de96553e4ae506c4 (diff)
downloadmpd-b268b9992faa303d6283c5a88ba460b5fd73cef6.tar.gz
mpd-b268b9992faa303d6283c5a88ba460b5fd73cef6.tar.xz
mpd-b268b9992faa303d6283c5a88ba460b5fd73cef6.zip
Added basic ncurses mouse support
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1770 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 50dcdf7d7..1d77d0d2d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -175,8 +175,6 @@ static command_definition_t cmds[] =
N_("Clock screen") },
#endif
-
-
{ { -1, -1, -1 }, 0, CMD_NONE, NULL, NULL }
};
@@ -396,6 +394,11 @@ get_keyboard_command_with_timeout(int ms)
if( key==ERR )
return CMD_NONE;
+#ifdef HAVE_GETMOUSE
+ if( key==KEY_MOUSE )
+ return CMD_MOUSE_EVENT;
+#endif
+
return get_key_command(key);
}