linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input - Move KEY_{EURO, DOLLAR} to lower keycodes
@ 2007-11-16 13:41 Carlos Corbacho
  2007-11-16 13:47 ` Dmitry Torokhov
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Corbacho @ 2007-11-16 13:41 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

From: Carlos Corbacho <cathectic@gmail.com>

These keys are used on PS/2 controllers, so their current values are too
high to map the scancodes to. Move them to the < 256 range.

Signed-off-by: Carlos Corbacho <cathectic@gmail.com>
---
This is one solution to my previously posted problem - just move the keycodes
to ones that can be used by setkeycodes.

 include/linux/input.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/input.h b/include/linux/input.h
index d423cf1..94c3c4b 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -371,6 +371,9 @@ struct input_absinfo {
 #define KEY_BRIGHTNESS_ZERO	244	/* brightness off, use ambient */
 #define KEY_DISPLAY_OFF		245	/* display device to off state */
 
+#define KEY_DOLLAR		246
+#define KEY_EURO		247
+
 #define BTN_MISC		0x100
 #define BTN_0			0x100
 #define BTN_1			0x101
@@ -527,9 +530,6 @@ struct input_absinfo {
 #define KEY_SPELLCHECK		0x1b0   /* AL Spell Check */
 #define KEY_LOGOFF		0x1b1   /* AL Logoff */
 
-#define KEY_DOLLAR		0x1b2
-#define KEY_EURO		0x1b3
-
 #define KEY_DEL_EOL		0x1c0
 #define KEY_DEL_EOS		0x1c1
 #define KEY_INS_LINE		0x1c2
-- 
1.5.3.3


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

end of thread, other threads:[~2008-05-30 21:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16 13:41 [PATCH] Input - Move KEY_{EURO, DOLLAR} to lower keycodes Carlos Corbacho
2007-11-16 13:47 ` Dmitry Torokhov
2007-11-16 13:49   ` Carlos Corbacho
2007-12-11 19:28     ` Carlos Corbacho
2008-05-30 19:39       ` Carlos Corbacho
2008-05-30 20:28         ` Dmitry Torokhov
2008-05-30 21:55           ` Carlos Corbacho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).