Update mouse config; change Makefile.

This commit is contained in:
Merlijn Wajer 2012-12-12 16:02:08 +01:00
parent 6dcd3a22dd
commit f094e2d628
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ default: map
def_keys.h:
echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define KEY_' | cut -f2 -d" " | sed 's/KEY_.*/DEF_KEY(&)/' > def_keys.h
map: map.c def_keys.h config.h
map: map.c def_keys.h config.h config_functions.h
$(CC) map.c $(CFLAGS) -o map
clean:

View File

@ -57,11 +57,11 @@ JOYSTICK_ADD_KEY(REL_Y, UI_SET_RELBIT, 0)
#ifndef H_JOYMAP_SEEN
#define H_JOYMAP_SEEN
KEYMAP(EV_KEY, KEY_3, BTN_LEFT, EV_KEY, 0, +)
KEYMAP(EV_KEY, KEY_M, REL_X, EV_REL, 0, 10*)
KEYMAP(EV_KEY, KEY_N, REL_X, EV_REL, 0, -10*)
KEYMAP(EV_KEY, KEY_J, REL_Y, EV_REL, 0, 10*)
KEYMAP(EV_KEY, KEY_K, REL_Y, EV_REL, 0, -10*)
KEYMAP(EV_KEY, KEY_3, BTN_LEFT, EV_KEY, 0, -1, +)
KEYMAP(EV_KEY, KEY_M, REL_X, EV_REL, 0, -1, 10*)
KEYMAP(EV_KEY, KEY_N, REL_X, EV_REL, 0, -1, -10*)
KEYMAP(EV_KEY, KEY_J, REL_Y, EV_REL, 0, -1, 10*)
KEYMAP(EV_KEY, KEY_K, REL_Y, EV_REL, 0, -1, -10*)
#endif
#endif