Ticket #9591: 010-add-missing-keycodes.patch

File 010-add-missing-keycodes.patch, 900 bytes (added by ack, 7 years ago)

Add keycodes missing in older kernels

  • util/av7110_loadkeys/generate-keynames.sh

    a b echo "#if !defined(KEY_OK)" >> $1 
    1010echo "#include \"input_fake.h\"" >> $1 
    1111echo "#endif" >> $1 
    1212echo >> $1 
     13echo "#if !defined(KEY_10CHANNELSUP)" >> $1 
     14echo "#include \"input_faketoo.h\"" >> $1 
     15echo "#endif" >> $1 
     16echo >> $1 
    1317echo >> $1 
    1418echo "struct input_key_name {" >> $1 
    1519echo "        const char *name;" >> $1 
  • new file util/av7110_loadkeys/input_faketoo.h

    - +  
     1#ifndef _INPUT_FAKETOO_H 
     2#define _INPUT_FAKETOO_H 
     3 
     4#include <linux/input.h> 
     5 
     6 
     7#if !defined(KEY_10CHANNELSUP) 
     8 
     9/** 
     10 *  define some additional remote control keys in case they 
     11 *  were not already defined above in <linux/input.h> 
     12 */ 
     13 
     14#define KEY_10CHANNELSUP        0x1b8 
     15#define KEY_10CHANNELSDOWN  0x1b9 
     16 
     17#endif  /* !defined(KEY_10CHANNELSUP)  */ 
     18#endif  /* _INPUT_FAKETOO_H */