From 3f66b071b19c2817be029bcce5add52e3f3a896d Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 31 Aug 2009 02:44:26 -0300 Subject: v4l2-spec: Add keytable.c example to remote controller chapter From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- v4l2-spec/Makefile | 8 ++++++++ v4l2-spec/remote_controllers.sgml | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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 "" >> $@ +keytable.c.sgml: ../v4l2-apps/util/keytable.c Makefile + echo "" > $@ + expand --tabs=8 < $< | \ + sed $(ESCAPE) $(DOCUMENTED) | \ + sed 's/i\.e\./&ie;/' >> $@ + echo "" >> $@ + videodev2.h.sgml: ../linux/include/linux/videodev2.h Makefile echo "" > $@ 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 @@ - \ No newline at end of file + + +
+Changing default Remote Controller mappings +The event interface provides two ioctls to be used against +the /dev/input/event device, to allow changing the default +keymapping. + +This program demonstrates how to replace the keymap tables. +&sub-keytable-c; +
-- cgit v1.2.3