view osdep/keycodes.h @ 35412:2de8e26093c4

Don't unconditionally reset AudioChannels after playback. Only do so if no media opened. This will continue displaying the correct audio channel information for the file still being opened after playback.
author ib
date Thu, 29 Nov 2012 11:35:22 +0000
parents c5f6bc8ae2b4
children 6ac59489c815
line wrap: on
line source

/*
 * KEY code definitions for GyS-TermIO v2.0
 *
 * copyright (C) 1999 A'rpi/ESP-team
 *
 * This file is part of MPlayer.
 *
 * MPlayer 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.
 *
 * MPlayer 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.
 *
 * You should have received a copy of the GNU General Public License along
 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef MPLAYER_KEYCODES_H
#define MPLAYER_KEYCODES_H

#define KEY_BASE 0x100

enum {
    KEY_TAB = 9,
    KEY_ENTER = 13,
    /* Control keys */
    KEY_BACKSPACE = KEY_BASE,
    KEY_DELETE,
    KEY_INSERT,
    KEY_HOME,
    KEY_END,
    KEY_PAGE_UP,
    KEY_PAGE_DOWN,
    KEY_ESC,
    /* Cursor movement */
    KEY_RIGHT = KEY_BASE + 16,
    KEY_LEFT,
    KEY_DOWN,
    KEY_UP,
    /* Keypad keys */
    KEY_KP0 = KEY_BASE + 32,
    KEY_KP1,
    KEY_KP2,
    KEY_KP3,
    KEY_KP4,
    KEY_KP5,
    KEY_KP6,
    KEY_KP7,
    KEY_KP8,
    KEY_KP9,
    KEY_KPDEC,
    KEY_KPINS,
    KEY_KPDEL,
    KEY_KPENTER,
    /* Key combination keys */
    KEY_CTRL = KEY_BASE + 48,
    /* Function keys */
    KEY_F = KEY_BASE + 64,
    /* Multimedia keyboard/remote keys */
    KEY_POWER = KEY_BASE+384,
    KEY_MENU,
    KEY_PLAY,
    KEY_PAUSE,
    KEY_PLAYPAUSE,
    KEY_STOP,
    KEY_FORWARD,
    KEY_REWIND,
    KEY_NEXT,
    KEY_PREV,
    KEY_VOLUME_UP,
    KEY_VOLUME_DOWN,
    KEY_MUTE,
    /* Special internal/virtual keys */
    KEY_CLOSE_WIN = 0x1000,
};

/* Control keys short name */
#define KEY_BS KEY_BACKSPACE
#define KEY_DEL KEY_DELETE
#define KEY_INS KEY_INSERT
#define KEY_PGUP KEY_PAGE_UP
#define KEY_PGDOWN KEY_PAGE_DOWN
#define KEY_PGDWN KEY_PAGE_DOWN

#endif /* MPLAYER_KEYCODES_H */