mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-12-23 04:08:48 -05:00
Update mouse config; change Makefile.
This commit is contained in:
parent
6dcd3a22dd
commit
f094e2d628
2
Makefile
2
Makefile
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user