Re: Extra keycodes

From: Matthew Garrett
Date: Sun Feb 26 2006 - 11:06:33 EST


On Fri, Feb 24, 2006 at 11:00:58PM -0500, Dmitry Torokhov wrote:

> Just post a patch adding it to input.h and we'll discuss... Who is intended
> user? What interface is expected to be used (evdev)?

Patch included. We have code to pop up battery information in
gnome-power-manager in response to this key being pressed, and evdev is
the current interface for getting the keypress event.

diff --git a/include/linux/input.h b/include/linux/input.h
index 3c58233..1714630 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -344,6 +344,8 @@ struct input_absinfo {
#define KEY_SAVE 234
#define KEY_DOCUMENTS 235

+#define KEY_BATTERY 236
+
#define KEY_UNKNOWN 240

#define BTN_MISC 0x100


--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/