All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add sonypi specific events to the input layer
@ 2004-09-17 10:42 Stelian Pop
  2004-09-21  8:51 ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: Stelian Pop @ 2004-09-17 10:42 UTC (permalink / raw)
  To: Vojtech Pavlik; +Cc: Linux Kernel Mailing List

Hi,

The following patch adds some sonypi specific events to the input
layer. 

When possible (for KEY_BACK, KEY_HELP, KEY_ZOOM, KEY_CAMERA for example)
I used the existing events, but some events just have no mapping.

Once this patch is accepted (if it is :) ), I will follow with a patch
for sonypi adding full input support for (almost) all the Vaio events.

Thanks,

Stelian.

Signed-off-by: Stelian Pop <stelian@popies.net>

===== linux-2.6/include/linux/input.h 1.50 vs edited =====
--- 1.50/include/linux/input.h	2004-06-06 11:08:11 +02:00
+++ edited/linux-2.6/include/linux/input.h	2004-09-17 10:26:15 +02:00
@@ -473,6 +473,28 @@
 #define KEY_INS_LINE		0x1c2
 #define KEY_DEL_LINE		0x1c3
 
+#define KEY_FN			0x1d0
+#define KEY_FN_ESC		0x1d1
+#define KEY_FN_F1		0x1d2
+#define KEY_FN_F2		0x1d3
+#define KEY_FN_F3		0x1d4
+#define KEY_FN_F4		0x1d5
+#define KEY_FN_F5		0x1d6
+#define KEY_FN_F6		0x1d7
+#define KEY_FN_F7		0x1d8
+#define KEY_FN_F8		0x1d9
+#define KEY_FN_F9		0x1da
+#define KEY_FN_F10		0x1db
+#define KEY_FN_F11		0x1dc
+#define KEY_FN_F12		0x1dd
+#define KEY_FN_1		0x1de
+#define KEY_FN_2		0x1df
+#define KEY_FN_D		0x1e0
+#define KEY_FN_E		0x1e1
+#define KEY_FN_F		0x1e2
+#define KEY_FN_S		0x1e3
+#define KEY_FN_B		0x1e4
+
 #define KEY_MAX			0x1ff
 
 /*
-- 
Stelian Pop <stelian@popies.net>    

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add sonypi specific events to the input layer
  2004-09-17 10:42 [PATCH] Add sonypi specific events to the input layer Stelian Pop
@ 2004-09-21  8:51 ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2004-09-21  8:51 UTC (permalink / raw)
  To: Stelian Pop, Linux Kernel Mailing List

On Fri, Sep 17, 2004 at 12:42:27PM +0200, Stelian Pop wrote:
> Hi,
> 
> The following patch adds some sonypi specific events to the input
> layer. 
> 
> When possible (for KEY_BACK, KEY_HELP, KEY_ZOOM, KEY_CAMERA for example)
> I used the existing events, but some events just have no mapping.
> 
> Once this patch is accepted (if it is :) ), I will follow with a patch
> for sonypi adding full input support for (almost) all the Vaio events.
> 
> Thanks,
> 
> Stelian.
> 
> Signed-off-by: Stelian Pop <stelian@popies.net>

Looking at the definitions below - wouldn't it be better to just define
the "FN" key and report everything else as key combinations?

> ===== linux-2.6/include/linux/input.h 1.50 vs edited =====
> --- 1.50/include/linux/input.h	2004-06-06 11:08:11 +02:00
> +++ edited/linux-2.6/include/linux/input.h	2004-09-17 10:26:15 +02:00
> @@ -473,6 +473,28 @@
>  #define KEY_INS_LINE		0x1c2
>  #define KEY_DEL_LINE		0x1c3
>  
> +#define KEY_FN			0x1d0
> +#define KEY_FN_ESC		0x1d1
> +#define KEY_FN_F1		0x1d2
> +#define KEY_FN_F2		0x1d3
> +#define KEY_FN_F3		0x1d4
> +#define KEY_FN_F4		0x1d5
> +#define KEY_FN_F5		0x1d6
> +#define KEY_FN_F6		0x1d7
> +#define KEY_FN_F7		0x1d8
> +#define KEY_FN_F8		0x1d9
> +#define KEY_FN_F9		0x1da
> +#define KEY_FN_F10		0x1db
> +#define KEY_FN_F11		0x1dc
> +#define KEY_FN_F12		0x1dd
> +#define KEY_FN_1		0x1de
> +#define KEY_FN_2		0x1df
> +#define KEY_FN_D		0x1e0
> +#define KEY_FN_E		0x1e1
> +#define KEY_FN_F		0x1e2
> +#define KEY_FN_S		0x1e3
> +#define KEY_FN_B		0x1e4
> +
>  #define KEY_MAX			0x1ff
>  
>  /*
> -- 
> Stelian Pop <stelian@popies.net>    
> 

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-21  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 10:42 [PATCH] Add sonypi specific events to the input layer Stelian Pop
2004-09-21  8:51 ` Vojtech Pavlik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.