[PATCH] XKeysymDB: Add XF86WebCamFocus.

Rami Ylimaki ext-rami.ylimaki at nokia.com
Wed Jan 27 01:17:00 PST 2010

Some camera devices contain a two level camera button. When the button
is half way down, the camera is focused. When the button is fully
pressed, a picture is taken.

Two related key codes are defined in latest Linux kernel:
KEY_CAMERA         212

By default, KEY_CAMERA is mapped to XF86WebCam. However, there isn't a
good symbol for camera focus yet.

Signed-off-by: Rami Ylimaki <ext-rami.ylimaki at nokia.com>
The keycode of KEY_CAMERA_FOCUS is currently higher than 255 so it
won't get through X server. However, this is a separate issue and I'd
like to be able to use this new symbol with other keycodes until high
keycode support is added into X.

 src/XKeysymDB |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/XKeysymDB b/src/XKeysymDB
index 45d8929..484d50d 100644
--- a/src/XKeysymDB
+++ b/src/XKeysymDB
@@ -352,6 +352,7 @@ XF86Blue             	:1008FFA6
 XF86Suspend		:1008FFA7
 XF86Hibernate		:1008FFA8
 XF86TouchpadToggle	:1008FFA9
+XF86WebCamFocus		:1008FFAA
 ! XFree86 special action keys
 XF86_Switch_VT_1	:1008FE01

More information about the xorg-devel mailing list