From a1a68fc7afb414ff08275260f8314ce08e81ae32 Mon Sep 17 00:00:00 2001 From: kyak Date: Sat, 20 Nov 2010 17:57:10 +0300 Subject: [PATCH] enable keymouse --- keymouse/Makefile | 5 +++-- keymouse/files/keymouse.cfg | 37 ++++++++++++++++++++++++++++++++++++ keymouse/files/keymouse.init | 7 +++++++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 keymouse/files/keymouse.cfg create mode 100755 keymouse/files/keymouse.init diff --git a/keymouse/Makefile b/keymouse/Makefile index d127640..3032f2e 100644 --- a/keymouse/Makefile +++ b/keymouse/Makefile @@ -21,7 +21,6 @@ define Package/keymouse SECTION:=utils CATEGORY:=Utilities URL:=http://keymouse.berlios.de - DEPENDS:=@BROKEN endef PKG_BUILD_DIR:=$(BUILD_DIR)/keymouse-$(PKG_VERSION) @@ -35,8 +34,10 @@ define Build/Configure endef define Package/keymouse/install - $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/bin $(1)/etc $(1)/etc/init.d $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/keymouse $(1)/usr/bin/ + $(INSTALL_DATA) $(FILES_DIR)/keymouse.cfg $(1)/etc/ + $(INSTALL_BIN) $(FILES_DIR)/keymouse.ini $(1)/etc/init.d/keymouse endef $(eval $(call BuildPackage,keymouse)) diff --git a/keymouse/files/keymouse.cfg b/keymouse/files/keymouse.cfg new file mode 100644 index 0000000..50c2d8d --- /dev/null +++ b/keymouse/files/keymouse.cfg @@ -0,0 +1,37 @@ +# Keymouse (C) 2008 Francesco Piccinno - BSD License +# Example configuration + +# Global options +device=/dev/input/event1 +udevice=/dev/uinput +debug=0 +#dump=1 +dump=0 +touchscreen=0 + +max accel=200 +max modes=6 + +# 0 no notify 1 blocknum notify 2 exec notify +notify=0 +notify exec= + +# Mapping (see /usr/include/linux/input.h for keycode or use dump option) +modes=100,29,56 +bkeys=103,108,106,105,88,87,25 + +# Actions +# =mod1:mod2 + +up=103:0: +down=108:0: +right=106:0: +left=105:0: +rup=87:0: +rdown=88:0: +#lup=42:2: +#ldown=56:1: +click=88:1: +rclick=87:1: +3click=25:2: +lock=25:1: diff --git a/keymouse/files/keymouse.init b/keymouse/files/keymouse.init new file mode 100755 index 0000000..ce93d17 --- /dev/null +++ b/keymouse/files/keymouse.init @@ -0,0 +1,7 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008 OpenWrt.org +START=43 + +start() { + start-stop-daemon -b -S -x /usr/bin/keymouse -- /etc/keymouse.cfg 0 +}