comparison libvo/vo_caca.c @ 34272:4074457d5746

caca: for ordinary keys, send key events on press instead of release. This is consistent with how other vos behave. Patch by Paul B. Mahol [onemda gmail com].
author reimar
date Wed, 23 Nov 2011 23:59:01 +0000
parents abe845d0691f
children 3e8cb5ef9ac7
comparison
equal deleted inserted replaced
34271:abe845d0691f 34272:4074457d5746
241 break; 241 break;
242 case CACA_EVENT_MOUSE_RELEASE: 242 case CACA_EVENT_MOUSE_RELEASE:
243 if (!vo_nomouse_input) 243 if (!vo_nomouse_input)
244 mplayer_put_key(MOUSE_BTN0 + cev.data.mouse.button - 1); 244 mplayer_put_key(MOUSE_BTN0 + cev.data.mouse.button - 1);
245 break; 245 break;
246 case CACA_EVENT_KEY_RELEASE: 246 case CACA_EVENT_KEY_PRESS:
247 { 247 {
248 int key = cev.data.key.ch; 248 int key = cev.data.key.ch;
249 const char *msg_name; 249 const char *msg_name;
250 250
251 switch (key) { 251 switch (key) {