|
Line
Link Here
|
| 0 |
-- mouseemu-0.12.orig/Makefile |
0 |
++ mouseemu-0.12/Makefile |
|
Lines 1-6
Link Here
|
| 1 |
all: |
1 |
all: |
| 2 |
gcc -Wall -I/usr/src/linux/include -g -o mouseemu mouseemu.c |
2 |
gcc -Wall -g -o mouseemu mouseemu.c |
| 3 |
clean: |
3 |
clean: |
| 4 |
rm -f *.o core* mouseemu |
4 |
rm -f *.o core* mouseemu |
| 5 |
install: |
5 |
install: |
| 6 |
cp -f mouseemu /usr/sbin/ |
6 |
cp -f mouseemu $(DESTDIR)/usr/sbin/ |
| 7 |
-- mouseemu-0.12.orig/mouseemu.conf |
7 |
++ mouseemu-0.12/mouseemu.conf |
|
Line 0
Link Here
|
| 0 |
-- mouseemu-0.12.orig/mouseemu.c |
1 |
# Mouseemu Configuration File |
|
|
2 |
# Each uncommented line is read by the mouseemu initscript |
| 3 |
# (/etc/init.d/mouseemu). If you use mouseemu without the |
| 4 |
# initscript, source this file in your .bashrc/.cshrc/.zshrc |
| 5 |
# Keycodes can be found using the "showkey" program. |
| 6 |
|
| 7 |
#MID_CLICK="-middle 0 68" # F10 with no modifier |
| 8 |
#RIGHT_CLICK="-right 0 87" # F11 with no modifier |
| 9 |
#SCROLL="-scroll 56" # Alt key |
| 10 |
#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress |
|
|
11 |
++ mouseemu-0.12/mouseemu.c |
|
Lines 428-434
Link Here
|
| 428 |
"\t[-nofork]\n", |
428 |
"\t[-nofork]\n", |
| 429 |
argv[0]); |
429 |
argv[0]); |
| 430 |
printf("Key codes can be found in " |
430 |
printf("Key codes can be found in " |
| 431 |
"/usr/src/linux/include/linux.h,\n" |
431 |
"/usr/src/linux/include/linux/input.h,\n" |
| 432 |
"or by using `showkey` in console.\n" |
432 |
"or by using `showkey` in console.\n" |
| 433 |
"Use decimal values. BTN_LEFT(272) is usable as " |
433 |
"Use decimal values. BTN_LEFT(272) is usable as " |
| 434 |
"B2_KEY or B3_KEY.\n\n"); |
434 |
"B2_KEY or B3_KEY.\n\n"); |
| 435 |
-- mouseemu-0.12.orig/mouseemu.init.gentoo.old |
435 |
++ mouseemu-0.12/mouseemu.init.gentoo |
|
Lines 13-18
Link Here
|
| 13 |
|
13 |
|
| 14 |
start() { |
14 |
start() { |
| 15 |
ebegin "Starting mouseemu" |
15 |
ebegin "Starting mouseemu" |
|
|
16 |
# Source configuration file /etc/mouseemu.conf |
| 17 |
if [ -f /etc/mouseemu.conf ] ; then |
| 18 |
. /etc/mouseemu.conf |
| 19 |
fi |
| 16 |
start-stop-daemon --start --quiet \ |
20 |
start-stop-daemon --start --quiet \ |
| 17 |
--exec /usr/sbin/mouseemu -- \ |
21 |
--exec /usr/sbin/mouseemu -- \ |
| 18 |
$MID_CLICK $RIGHT_CLICK $SCROLL $TYPING_BLOCK > /var/log/mouseemu.log |
22 |
$MID_CLICK $RIGHT_CLICK $SCROLL $TYPING_BLOCK > /var/log/mouseemu.log |