1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-06-28 22:56:21 +03:00

enable keymouse

This commit is contained in:
kyak 2010-11-20 17:57:10 +03:00
parent 47eda0bc80
commit a1a68fc7af
3 changed files with 47 additions and 2 deletions

View File

@ -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))

View File

@ -0,0 +1,37 @@
# Keymouse (C) 2008 Francesco Piccinno <stack.box@gmail.com> - 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
# <action>=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:

7
keymouse/files/keymouse.init Executable file
View File

@ -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
}