Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Keymap for new 45-key hauppauge remote



Here is quickly hacked keymap for cx88-input.c

Insert into appropiate place.

---------------------
/* Hauppauge: still newer 45-key, gray remote */
static IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE] = {
    [ 0x00 ] = KEY_KP0,             // 0
    [ 0x01 ] = KEY_KP1,             // 1
    [ 0x02 ] = KEY_KP2,             // 2
    [ 0x03 ] = KEY_KP3,             // 3
    [ 0x04 ] = KEY_KP4,             // 4
    [ 0x05 ] = KEY_KP5,             // 5
    [ 0x06 ] = KEY_KP6,             // 6
    [ 0x07 ] = KEY_KP7,             // 7
    [ 0x08 ] = KEY_KP8,             // 8
    [ 0x09 ] = KEY_KP9,             // 9
    [ 0x0a ] = KEY_TEXT,            // text
    [ 0x0b ] = KEY_RED,             // red button
    [ 0x0c ] = KEY_RADIO,           // radio
    [ 0x0d ] = KEY_MENU,            // menu
    [ 0x0e ] = KEY_SUBTITLE,        // sub/cc
    [ 0x0f ] = KEY_MUTE,            // mute
    [ 0x10 ] = KEY_VOLUMEUP,        // volume +
    [ 0x11 ] = KEY_VOLUMEDOWN,      // volume -
    [ 0x12 ] = KEY_CHANNEL,         // prev.ch

    [ 0x14 ] = KEY_UP,              // up
    [ 0x15 ] = KEY_DOWN,            // down
    [ 0x16 ] = KEY_LEFT,            // left
    [ 0x17 ] = KEY_RIGHT,           // right
    [ 0x18 ] = KEY_VIDEO,           // videos
    [ 0x19 ] = KEY_MP3,             // music
    [ 0x1a ] = KEY_CAMERA,          // pictures
    [ 0x1b ] = KEY_INFO,            // guide
    [ 0x1c ] = KEY_TV,              // tv

    [ 0x1e ] = KEY_NEXT,            // skip >|
    [ 0x1f ] = KEY_EXIT,            // back/exit
    [ 0x20 ] = KEY_CHANNELUP,       // channel / program +
    [ 0x21 ] = KEY_CHANNELDOWN,     // channel / program -
    [ 0x24 ] = KEY_PREVIOUS,        // replay |<
    [ 0x25 ] = KEY_ENTER,           // OK
    [ 0x29 ] = KEY_BLUE,            // blue key
    [ 0x2e ] = KEY_GREEN,           // green button
    [ 0x30 ] = KEY_PAUSE,           // pause
    [ 0x32 ] = KEY_REWIND,          // backward <<
    [ 0x34 ] = KEY_FASTFORWARD,     // forward >>
    [ 0x35 ] = KEY_PLAY,            // play
    [ 0x36 ] = KEY_STOP,            // stop
    [ 0x37 ] = KEY_RECORD,          // recording
    [ 0x38 ] = KEY_YELLOW,          // yellow key
    [ 0x3b ] = KEY_SELECT,          // go
    [ 0x3d ] = KEY_POWER,           // system power (green button)
};
-----------------------



--
lwgt@iki.fi  * Using HTML-mail is like breaking wind in a church *
60.2N 24.7E  *   it is not illegal, just extremely bad manners   *




Home | Main Index | Thread Index