lkml.org 
[lkml]   [2006]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Extra keycodes
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@srcf.ucam.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-02-26 17:11    [W:0.051 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site