input: change L and R keycodes
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 31 Jan 2010 14:30:47 +0000 (16:30 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 31 Jan 2010 15:13:40 +0000 (17:13 +0200)
Use KEY_KP* (similar to ABXY) to get them picked up by X and SDL.

arch/arm/mach-omap2/board-omap3pandora-input.c
drivers/input/joydev.c

index da82d9e..cf4e21e 100644 (file)
@@ -129,22 +129,22 @@ static struct gpio_keys_button gpio_buttons[] = {
                .active_low             = 1,
                .desc                   = "game 4",
        }, {
-               .code                   = BTN_TL,
+               .code                   = KEY_KP5,
                .gpio                   = 102,
                .active_low             = 1,
                .desc                   = "shoulder l",
        }, {
-               .code                   = BTN_TL2,
+               .code                   = KEY_KP7,
                .gpio                   = 97,
                .active_low             = 1,
                .desc                   = "shoulder l2",
        }, {
-               .code                   = BTN_TR,
+               .code                   = KEY_KP6,
                .gpio                   = 105,
                .active_low             = 1,
                .desc                   = "shoulder r",
        }, {
-               .code                   = BTN_TR2,
+               .code                   = KEY_KP8,
                .gpio                   = 107,
                .active_low             = 1,
                .desc                   = "shoulder r2",
index 7621275..2f9d5e6 100644 (file)
@@ -88,6 +88,10 @@ static const struct {
        { KEY_LEFTCTRL, BTN_SELECT },
        { KEY_LEFTALT,  BTN_START },
        { KEY_MENU,     BTN_MODE },
+       { KEY_KP5,      BTN_TL },
+       { KEY_KP6,      BTN_TR },
+       { KEY_KP7,      BTN_TL2 },
+       { KEY_KP8,      BTN_TR2 },
 };
 
 /* pandora hack 2: convert some normal keys to abs events