summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-08-31 02:44:26 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-08-31 02:44:26 -0300
commit3f66b071b19c2817be029bcce5add52e3f3a896d (patch)
tree9f6862a7409c2b2696430d2120434171c0304a19
parent466cf445ce93217dac3a66fa3bc9b23b45cacecd (diff)
downloadmediapointer-dvb-s2-3f66b071b19c2817be029bcce5add52e3f3a896d.tar.gz
mediapointer-dvb-s2-3f66b071b19c2817be029bcce5add52e3f3a896d.tar.bz2
v4l2-spec: Add keytable.c example to remote controller chapter
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--v4l2-spec/Makefile8
-rw-r--r--v4l2-spec/remote_controllers.sgml12
2 files changed, 19 insertions, 1 deletions
diff --git a/v4l2-spec/Makefile b/v4l2-spec/Makefile
index 73d48d00d..f593faccd 100644
--- a/v4l2-spec/Makefile
+++ b/v4l2-spec/Makefile
@@ -5,6 +5,7 @@ SHELL=/bin/bash
SGMLS = \
biblio.sgml \
capture.c.sgml \
+ keytable.c.sgml \
v4l2grab.c.sgml \
common.sgml \
compat.sgml \
@@ -359,6 +360,13 @@ v4l2grab.c.sgml: ../v4l2-apps/test/v4l2grab.c Makefile
sed 's/i\.e\./&ie;/' >> $@
echo "</programlisting>" >> $@
+keytable.c.sgml: ../v4l2-apps/util/keytable.c Makefile
+ echo "<programlisting>" > $@
+ expand --tabs=8 < $< | \
+ sed $(ESCAPE) $(DOCUMENTED) | \
+ sed 's/i\.e\./&ie;/' >> $@
+ echo "</programlisting>" >> $@
+
videodev2.h.sgml: ../linux/include/linux/videodev2.h Makefile
echo "<programlisting>" > $@
expand --tabs=8 < $< | \
diff --git a/v4l2-spec/remote_controllers.sgml b/v4l2-spec/remote_controllers.sgml
index f0c215b1c..6cbcd5869 100644
--- a/v4l2-spec/remote_controllers.sgml
+++ b/v4l2-spec/remote_controllers.sgml
@@ -157,4 +157,14 @@
</tgroup>
</table>
-</section> \ No newline at end of file
+</section>
+
+<section id="Remote_controllers_table_change">
+<title>Changing default Remote Controller mappings</title>
+<para>The event interface provides two ioctls to be used against
+the /dev/input/event device, to allow changing the default
+keymapping.</para>
+
+<para>This program demonstrates how to replace the keymap tables.</para>
+&sub-keytable-c;
+</section>