mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
Compiles on most platforms, starts. Not really tested.
Conflicts:
acinclude.m4
lib/libdvbsub/Makefile.am
lib/libtriple/Makefile.am
lib/libtuxtxt/Makefile.am
src/Makefile.am
src/create_rcsim_h.sh
src/daemonc/Makefile.am
src/driver/Makefile.am
src/driver/audiodec/Makefile.am
src/driver/pictureviewer/Makefile.am
src/eitd/Makefile.am
src/gui/Makefile.am
src/gui/bouquetlist.cpp
src/gui/channellist.cpp
src/gui/scan_setup.cpp
src/gui/streaminfo2.cpp
src/gui/streaminfo2.h
src/gui/update.cpp
src/gui/widget/Makefile.am
src/gui/widget/listbox.cpp
src/neutrino.cpp
src/nhttpd/tuxboxapi/coolstream/Makefile.am
src/rcsim.c
src/system/Makefile.am
src/zapit/src/Makefile.am
src/zapit/src/frontend.cpp
src/zapit/src/zapit.cpp
Origin commit data
------------------
Commit: d244a5991a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-10-21 (Mon, 21 Oct 2013)
69 lines
1.3 KiB
Bash
69 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#
|
|
# create a rcsim.h file from the rcinput header
|
|
# (C) 2011 Stefan Seyfried
|
|
# License: GPL v2
|
|
#
|
|
# usage: sh ./create_rcsim_h.sh > rcsim.h
|
|
|
|
cat << EOF
|
|
// rcsim.h - automatically created from driver/rcinput.h
|
|
|
|
#ifndef KEY_GAMES
|
|
#define KEY_GAMES 0x1a1 /* Media Select Games */
|
|
#endif
|
|
|
|
#ifndef KEY_TOPLEFT
|
|
#define KEY_TOPLEFT 0x1a2
|
|
#endif
|
|
|
|
#ifndef KEY_TOPRIGHT
|
|
#define KEY_TOPRIGHT 0x1a3
|
|
#endif
|
|
|
|
#ifndef KEY_BOTTOMLEFT
|
|
#define KEY_BOTTOMLEFT 0x1a4
|
|
#endif
|
|
|
|
#ifndef KEY_BOTTOMRIGHT
|
|
#define KEY_BOTTOMRIGHT 0x1a5
|
|
#endif
|
|
|
|
#define KEY_POWERON KEY_FN_F1
|
|
#define KEY_POWEROFF KEY_FN_F2
|
|
#define KEY_STANDBYON KEY_FN_F3
|
|
#define KEY_STANDBYOFF KEY_FN_F4
|
|
#define KEY_MUTEON KEY_FN_F5
|
|
#define KEY_MUTEOFF KEY_FN_F6
|
|
#define KEY_ANALOGON KEY_FN_F7
|
|
#define KEY_ANALOGOFF KEY_FN_F8
|
|
|
|
enum {
|
|
EOF
|
|
sed -n '/^[[:space:]]*RC_0/,/^[[:space:]]*RC_analog_off/s/^[[:space:]]*/ /p' driver/rcinput.h
|
|
cat << EOF
|
|
};
|
|
|
|
enum { // not defined in input.h but used like that, at least in 2.4.22
|
|
KEY_RELEASED = 0,
|
|
KEY_PRESSED,
|
|
KEY_AUTOREPEAT
|
|
};
|
|
|
|
struct key{
|
|
const char *name;
|
|
const unsigned long code;
|
|
};
|
|
|
|
static const struct key keyname[] = {
|
|
EOF
|
|
sed -n '/^[[:space:]]*RC_0/,/^[[:space:]]*RC_analog_off/ s/^.*=[[:space:]]*\(KEY_.*\),.*/ { "\1", \1 },/p' driver/rcinput.h
|
|
cat << EOF
|
|
/* to stay backward compatible */
|
|
{ "KEY_SETUP", KEY_MENU },
|
|
{ "KEY_HOME", KEY_EXIT },
|
|
};
|
|
|
|
EOF
|
|
|