[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iBook: dump/restore does not make it either



>後はUSBに繋いだ3ボタンマウス(wsmouse1)をどうやってXで使うか
>ですが、今これはできるのでしょうか?

こう↓いう乱暴なことしてますから、

	macppcKbdPriv.fd = macppcPtrPriv.fd = -1;
	for (i = 0; i < 8; i++) {
	    char devname[16];

	    sprintf(devname, "/dev/wskbd%d", i);
	    if (macppcKbdPriv.fd == -1)
		macppcKbdPriv.fd = open(devname, O_RDWR);

	    sprintf(devname, "/dev/wsmouse%d", i);
	    if (macppcPtrPriv.fd == -1)
		macppcPtrPriv.fd = open(devname, O_RDWR);
	}

% cat /dev/wsmouse0 > /dev/null &
% xinit

とか。# 試してません。


気が向いたときにいじっている Rage 128 を XFree86-4.x で無理矢理動かす
パッチでは、

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "keyboard"
    Option      "Protocol"      "wskbd"
    Option      "Device"        "/dev/wskbd0"
    ...

EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol"      "wsmouse"
    Option      "Device"        "/dev/wsmouse0"
EndSection

みたいに指定するようにしています。

新しい PowerBook (だけ)では 24bpp も動くらしい…。