<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>retujyou.com どうにもならない劣情の種子を植え付けられたばかりに &#187; mouse</title>
	<atom:link href="http://retujyou.com/tag/mouse/feed/" rel="self" type="application/rss+xml" />
	<link>http://retujyou.com</link>
	<description>どうにもならない劣情の種子を植え付けられたばかりに</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:29:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu Linuxで FireFox の左右スクロールする（チルトホイールを使う）方法</title>
		<link>http://retujyou.com/2008/05/22/howto-ubuntu-tilt-wheel-mouse/</link>
		<comments>http://retujyou.com/2008/05/22/howto-ubuntu-tilt-wheel-mouse/#comments</comments>
		<pubDate>Wed, 21 May 2008 19:50:06 +0000</pubDate>
		<dc:creator>rui_mashita</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[evdev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://retujyou.com/?p=393</guid>
		<description><![CDATA[Ubuntu 8.04 Hardy でチルトホイールを使う方法。チルトホイールってのは上下でなく左右に傾かせて使うホイールで、これ使うとFireFoxの左右スクロールが簡単に出来て便利。
Logicool(Logitec [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 8.04 Hardy でチルトホイールを使う方法。チルトホイールってのは上下でなく左右に傾かせて使うホイールで、これ使うとFireFoxの左右スクロールが簡単に出来て便利。</p>
<p>Logicool(Logitech) MX-400 で試しました。evdevのバージョンは1.1.2 (xserver-xorg-input-evdev 1:1.1.2-0ubuntu2）でXorgは7.3(xserver-xorg 1:7.3+10ubuntu10) です。</p>

<div class="riderAmazon"><div class="hreview">
<div class="item item-B000FHSW9E"><div class="fn"><a href="http://www.amazon.co.jp/o/ASIN/B000FHSW9E/retujyou-22" class="url">Logicool MX-400SV パフォーマンスレーザーマウス</a></div>
<div class="image"><a href="http://www.amazon.co.jp/o/ASIN/B000FHSW9E/retujyou-22" class="url" title="Amazon.co.jp: "><img src="http://retujyou.com/wp-content/plugins/RiderAmazon/cache/img/B/B000FHSW9E.jpg" width="183" height="240"class="photo" alt="Logicool MX-400SV パフォーマンスレーザーマウス - cover art" /></a></div>
<div class="reports"><div class="clicks"><img src="http://retujyou.com/wp-content/plugins/RiderAmazon/images/clicks.png" width="16" height="16" alt="クリック数" /> このサイトで<em>36人</em>がクリック</div>
 </div>
<div class="buttons"><a href="http://www.amazon.co.jp/o/ASIN/B000FHSW9E/retujyou-22" title="Amazon.co.jp:Logicool MX-400SV パフォーマンスレーザーマウス" class="showdetailbutton" ><img src="http://retujyou.com/wp-content/plugins/RiderAmazon/images/showdetail119.png" title="amazon.co.jpで詳細情報を見る" alt="amazon.co.jpで詳細情報を見る"/></a><form class="showaddcartbutton" action="http://www.amazon.co.jp/gp/aws/cart/add.html" method="post"><input name="ASIN.1" value="B000FHSW9E" type="hidden" /><input name="Quantity.1" value="1" type="hidden" /><input name="AssociateTag" value="retujyou-22" type="hidden" /><input name="SubscriptionId" value="1P1KJSTVRDMR2FA0ZGG2" type="hidden" /><input name="submit.add-to-cart" type="image" src="http://retujyou.com/wp-content/plugins/RiderAmazon/images/gocart119.png" alt="Take this item into your cart in amazon.co.jp" title="Take this item into your cart in amazon.co.jp" /></form></div>
<table >
<tbody>
<tr><th>Manufacturer</th><td><a href="http://www.amazon.co.jp/gp/search?ie=UTF8&amp;index=blended&amp;tag=retujyou-22&amp;keywords=%E3%83%AD%E3%82%B8%E3%82%AF%E3%83%BC%E3%83%AB">ロジクール</a></td></tr>
<tr><th>Release Date</th><td>2006年04月28日</td></tr>
</tbody>
</table>
<br clear="both" /></div>
</div>
</div>
<br clear="both" />
<h3>evdevでチルトホイールを使う</h3>
<p>チルトホイールをつかうには evdev とゆうドライバを使います。man evdev でマニュアルがみれる。</p>
<h4>Xのバックアップ</h4>
<p>Xの設定を変更するので、xorg.confのバックアップをとっといた方がいいかも。マウスが動かなくて困った事になったら、バックアップを元に戻せばいい。vi使えるなら特にバックアップの必要ないけど。</p>
<p>例：xorg.confをコピーしてback.xorg.confとゆうバックアップを作る。マウスが動かなくなったら、[Alt][Ctrl][F1]なんかでログインしてback.xorg.confをxorg.confにコピーし、元にもどす。</p>
<pre><code>sudo&nbsp;cp&nbsp;/etc/X11/xorg.conf&nbsp;/etc/X11/back.xorg.conf</code></pre>
<h4>マウスの情報を見る</h4>
<p>インプットデバイスの一覧を表示して、マウスの情報を確認。</p>
<pre><code>cat&nbsp;/proc/bus/input/devices</code></pre>
<p>僕の場合はこんな感じだった。後で使うのは、Name (この場合Logitech USB-PS/2 Optical Mouse) もしくはHandlers の event番号（この場合はevent2）。</p>
<p>I: Bus=0003 Vendor=046d Product=c043 Version=0110<br />
N: Name=&#8221;Logitech USB-PS/2 Optical Mouse&#8221;<br />
P: Phys=usb-0000:00:1d.1-2/input0<br />
S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb4/4-2/4-2:1.0/input/input2<br />
U: Uniq=<br />
H: Handlers=mouse1 event2<br />
B: EV=17<br />
B: KEY=ff0000 0 0 0 0<br />
B: REL=143<br />
B: MSC=10</p>
<p>ubuntu 8.04 になって、何故かディフォルトでインストールされなくなったgnome-device-managerをインストールして使えば、GUIでマウスの情報が確認できる。</p>
<p>gnome-device-managerのインストール。[アプリケーション] -> [システムツール] -> [DeviceManager]で起動</p>
<pre><code>apt-get&nbsp;install&nbsp;gnome-device-manager</code></pre>
<h4>Xの設定を変更する</h4>
<p>Xの編集</p>
<pre><code>sudo&nbsp;gedit&nbsp;/etc/X11/xorg.conf</code></pre>
<p>xorg.congのインプットデバイスセクションでIdentifier &#8220;Configured Mouse&#8221;の部分を探して以下のように変更する。設定後 [Alt][Ctrl][BackSpace] で、Xの再起動。</p>
<pre><code>Section&nbsp;&quot;InputDevice&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identifier&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Configured&nbsp;Mouse&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;evdev&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&quot;Device&quot;&nbsp;&quot;/dev/input/event2&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;CorePointer&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&quot;Name&quot;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Logitech&nbsp;USB-PS/2&nbsp;Optical&nbsp;Mouse&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;RelHWHEELOptions&quot;&nbsp;&nbsp;&quot;invert&quot;
EndSection</code></pre>
<p>それぞれの設定の意味。</p>
<ul>
<li>Driver          &#8220;evdev&#8221;<br />
evdevとゆうドライバを使う。</li>
<li>Option  &#8220;Device&#8221; &#8220;/dev/input/event2&#8243;<br />
デバイスファイルの場所。先ほどのマウス情報で確認したevent番号を/dev/input/以下に記述</li>
<li>Option		&#8220;CorePointer&#8221;<br />
最優先で使うマウスの場合に記述する</li>
<li>Option	&#8220;Name&#8221;	&#8220;Logitech USB-PS/2 Optical Mouse&#8221;<br />
先ほどのマウス情報で確認したマウスの名前を記述</li>
<li>Option          &#8220;RelHWHEELOptions&#8221;  &#8220;invert&#8221;<br />
チルトホイールのボタンマッピングを左右逆転させる（任意）</li>
</ul>
<p>Option  &#8220;Device&#8221; でデバイスを記述すれば、Option &#8220;Name&#8221; のマウス名はいらないかも。前バージョンのUbntu 7.10 Gutsy では Option &#8220;Name&#8221; だけでうまくいったんだけど、今回の 8.04 Hardy ではうまくマウスを認識してくれなかったので、追加的にデバイスを記述しました。</p>
<h4>xevでどのボタン番号が振り当てられているか確認<br />
</h4>
<p>マウスにどんなボタン番号が振り当てられているか確認するには、</p>
<pre><code>xev</code></pre>
<p>で、開いた小さなウィンドウをクリックすればよい。</p>
<p>僕の場合は、ホイールを左に傾けると 7 、右に傾けると 6 だったので、Firefox で使いやすいように Option &#8220;RelHWHEELOptions&#8221;  &#8220;invert&#8221; で左右を逆転させました。（左6、右7にした。）</p>
<p>チルトホイールを Firefox だけで使うのなら、Option &#8220;RelHWHEELOptions&#8221;  &#8220;invert&#8221; と同等の効果を Firefox でも設定出来るので、Xに記述しない方法もある。後述。</p>
<h3>Firefoxの設定を左右スクロール出来るように変更</h3>
<p>Firefox2 までは設定変更が必要だったけど、Firefox3 の場合は変更の必要ない。けど一応 Firefox2 使ってる人のために。</p>
<p>Firefox の about:config で以下の用に設定。</p>
<p>mousewheel.horizscroll.withnokey.action = 0</p>
<p>これで左右スクロール出来るようになる。Firefox はボタン6を左スクロール、ボタン7を右スクロールに割り当ててる。</p>
<p>もし、左に傾けて7、右で6なら以下の用に設定。numlinesをマイナスの値にする。</p>
<p>mousewheel.horizscroll.withnokey.numlines  = -1<br />
mousewheel.horizscroll.withnokey.sysnumlines = false</p>
<p>一応それぞれの説明は、</p>
<ul>
<li>mousewheel.horizscroll.withnokey.action<br />
チルトホイールを使った時にどう動作するか。<br />
0 行単位でスクロール<br />
1 一ページをスクロール<br />
2 履歴の戻る・進む<br />
3 文字サイズの大・小<br />
4 ピクセル単位でスクロール
</li>
<li>mousewheel.horizscroll.withnokey.numlines<br />
何行スクロールするか、もしくは何ピクセルスクロールするか。</li>
<li>mousewheel.horizscroll.withnokey.sysnumlines<br />
ディフォルトの値を使うかどうか。falseならnumlinesで決めた値を使う</li>
</ul>
<p>About:config についての説明：<a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries#Mousewheel..2A" title="About:config entries - MozillaZine Knowledge Base">About:config entries &#8211; MozillaZine Knowledge Base</a></p>
<h3>参考・参照</h3>
<p><a href="https://help.ubuntu.com/community/MX1000Mouse" title="MX1000Mouse - Community Ubuntu Documentation">MX1000Mouse &#8211; Community Ubuntu Documentation</a></p>
<p><a href="http://adventuresinswitching.blogspot.com/2007/12/getting-my-logitech-mx1000-mouse-to.html" title="Getting my Logitech MX1000 Mouse to Work, Fully, on Ubuntu 7.10 - Adventures in Switching to Linux"></a></p>
<p><a href="http://developer.momonga-linux.org/wiki/?evdev" >Developer at Momonga Project &#8211; evdev</a></p>
<p><a href="http://d.hatena.ne.jp/tociyuki/20070817/1187362651" >ロジテック・マウスMX620をevdevで &#8211; Tociyuki::Diary</a></p>
<p>Firefox About:config についての説明：<a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries#Mousewheel..2A" title="About:config entries - MozillaZine Knowledge Base">About:config entries &#8211; MozillaZine Knowledge Base</a></p>
<p>photo <a href="http://www.flickr.com/photos/pixcat/2324175139/" >by PixCat</a></p>
]]></content:encoded>
			<wfw:commentRss>http://retujyou.com/2008/05/22/howto-ubuntu-tilt-wheel-mouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>クリップボードにHTMLリンクを貼るFireGesturesスクリプト作った</title>
		<link>http://retujyou.com/2008/05/18/firegestures-make-html-link/</link>
		<comments>http://retujyou.com/2008/05/18/firegestures-make-html-link/#comments</comments>
		<pubDate>Sat, 17 May 2008 16:43:23 +0000</pubDate>
		<dc:creator>rui_mashita</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[FireGestures]]></category>
		<category><![CDATA[mouse]]></category>

		<guid isPermaLink="false">http://retujyou.com/?p=408</guid>
		<description><![CDATA[FireFoxのマウスジェスチャー拡張 FireGestures 用の、リンク作成スクリプトを作りました。FireGesturesはマウスのボタンを押しながら上下左右に動かす事で様々なアクションを行える、FIrefoxの [...]]]></description>
			<content:encoded><![CDATA[<p>FireFoxのマウスジェスチャー拡張 FireGestures 用の、リンク作成スクリプトを作りました。FireGesturesはマウスのボタンを押しながら上下左右に動かす事で様々なアクションを行える、FIrefoxの拡張機能。さらに FireGestures にユーザーがスクリプトを加える事で、欲しいと思った機能を加える事ができます。</p>
<p>FireGestures 公式サイト：<a href="http://www.xuldev.org/firegestures/" >FIREGESTURES :: Firefox Extension</a></p>
<p>今回作ったのは、選択文字列がなければそのページのタイトルをリンク、選択文字列があればその文字列をHTMLのリンクにして、クリップボートへ渡すスクリプト。</p>
<p>ブログ記事を書くのに便利だと思います。下記のリンクをFireGestures設定画面の[マッピング]にドラッグアンドドロップすれば、スクリプトを追加できる。</p>
<p><a href="data:text/javascript,%2f%2ffrom%20Copy%20Page%20Title%20and%20URL%20to%20Clipboard%0d%0a%0d%0a%2f%2ffunction%20htmlEscape%28s%29%20%7b%0d%0a%2f%2f%20%20s%20%3d%20s%2ereplace%28%2f%26%2fg%2c%20%22%26amp%3b%22%29%3b%0d%0a%2f%2f%20%20s%20%3d%20s%2ereplace%28%2f%3e%2fg%2c%20%22%3e%22%29%3b%0d%0a%2f%2f%20%20s%20%3d%20s%2ereplace%28%2f%3c%2fg%2c%20%22%3c%22%29%3b%0d%0a%2f%2f%20%20s%20%3d%20s%2ereplace%28%2f%22%2fg%2c%20%22%22%22%29%3b%0d%0a%2f%2f%20return%20s%3b%0d%0a%2f%2f%7d%0d%0a%0d%0avar%20url%20%3d%20window%2econtent%2elocation%2ehref%3b%0d%0avar%20title%20%3d%20window%2econtent%2edocument%2etitle%3b%0d%0avar%20txt%20%3d%20FireGestures%2egetSelectedText%28%29%20%3f%0d%0a%20%20%27%3ca%20href%3d%22%27%20%2b%20url%20%2b%20%27%22%20%3e%27%20%2b%20FireGestures%2egetSelectedText%28%29%20%2b%20%27%3c%2fa%3e%27%20%3a%20%0d%0a%20%20%27%3ca%20href%3d%22%27%20%2b%20url%20%2b%20%27%22%20%3e%27%20%2b%20title%20%2b%20%27%3c%2fa%3e%27%20%3b%0d%0avar%20clipboard%20%3d%20Cc%5b%22%40mozilla%2eorg%2fwidget%2fclipboardhelper%3b1%22%5d%0d%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2egetService%28Ci%2ensIClipboardHelper%29%3b%0d%0aclipboard%2ecopyString%28txt%29%3b">Make HTML Link</a></p>
<p>その他のスクリプトは下記リンクから。便利そうなのが結構いろいろある。</p>
<p>FireGestures用スクリプト：<a href="http://www.xuldev.org/firegestures/getscripts.php" >FIREGESTURES :: Get Scripts</a></p>
<p>今回作ったMake HTML Link スクリプトは、Copy Page Title and URL to Clipboard ってスクリプトのほぼパクリ。</p>
]]></content:encoded>
			<wfw:commentRss>http://retujyou.com/2008/05/18/firegestures-make-html-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux で5ボタンマウスを Firefoxの「戻る」「進む」に対応させる</title>
		<link>http://retujyou.com/2008/04/12/ubuntu-5button-mouse/</link>
		<comments>http://retujyou.com/2008/04/12/ubuntu-5button-mouse/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 16:02:51 +0000</pubDate>
		<dc:creator>rui_mashita</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://retujyou.com/?p=391</guid>
		<description><![CDATA[Ubuntu 7.10 で5ボタンマウス のサイドボタンをFirefox2の「戻る」「進む」に対応させるには以下のようにXの設定を変更する。Logicool MX-400 で確認。
ただしFirefox 3 beta 4 [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 7.10 で5ボタンマウス のサイドボタンをFirefox2の「戻る」「進む」に対応させるには以下のようにXの設定を変更する。Logicool MX-400 で確認。</p>
<p>ただしFirefox 3 beta 4 から、「戻る」「進む」ボタンの割り当てが6と7から8と9に変更されているので注意。<br />
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=420294" title="Bug 420294 – Side mouse buttons no longer work as back and forward">Bug 420294 – Side mouse buttons no longer work as back and forward</a><br />
<a href="http://wiki.mozilla.org/QA/Firefox3/TestResults/Beta4/Release_Notes#Proposed_relnote_items_for_beta_4" title="QA/Firefox3/TestResults/Beta4/Release Notes - MozillaWiki">QA/Firefox3/TestResults/Beta4/Release Notes &#8211; MozillaWiki</a><br />
デフォルトの設定では、マッピングが&#8221;1 2 3 8 9&#8243; なので、以下の設定は必要ないはず。ボタンの数も自動検出されると思うので。試してはないけど。</p>
<h3>5ボタンマウスをFirefoxに対応させる</h3>
<p>Xの設定 /etc/X11/xorg.conf を編集。</p>
<pre><code>sudo&nbsp;gedit&nbsp;/etc/X11/xorg.conf</code></pre>
<p>以下のように変更する。</p>
<pre><code>Section&nbsp;&quot;InputDevice&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Identifier&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Configured&nbsp;Mouse&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;mouse&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;CorePointer&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Device&quot;&nbsp;&quot;/dev/input/mice&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Protocol&quot;&nbsp;&quot;ExplorerPS/2&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;ZAxisMapping&quot;&nbsp;&quot;4&nbsp;5&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Emulate3Buttons&quot;&nbsp;&quot;true&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Buttons&quot;&nbsp;&quot;7&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;ButtonMapping&quot;&nbsp;&quot;1&nbsp;2&nbsp;3&nbsp;6&nbsp;7&quot;
EndSection</code></pre>
<h4>設定の意味をだいたい調べたのでメモ</h4>
<p>コマンド</p>
<pre><code>man&nbsp;xorg.conf
man&nbsp;mousedrv</code></pre>
<p>でマニュアルが見れる。</p>
<p>また、
<pre><code>xev</code></pre>
<p>で、小さなウインドウが開きそこをクリックすると、現在どのマウスイベントにボタン番号が振り当てられているか確認できる。</p>
<ul>
<li>Identifier の名前 &#8220;Configured Mouse&#8221; は、以下のように/etc/X11/xorg.confに記述されているServerLayoutセクションの Inputdevice の名前と同一にする。</li>
<pre><code>Section&nbsp;&quot;ServerLayout&quot;
...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inputdevice&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Configured&nbsp;Mouse&quot;
...
EndSection</code></pre>
<li>Driver &#8220;mouse&#8221; で、mouseとゆうドライバを使う。man mousedrvを参照。</li>
<li>Option &#8220;CorePointer&#8221; は、最優先で使うマウスの場合に記述する。</li>
<li>Option &#8220;Device&#8221; &#8220;/dev/input/mice&#8221; デバイスファイルの場所を記述する。/dev/input/mice は全てのマウスの動作をまとめているデバイスファイル。</li>
<li>Option &#8220;Protocol&#8221; &#8220;ExplorerPS/2&#8243; でプロトコルの種類を決めてる。マウスプロトコルの種類はたくさんあって、カーネル2.6ではExplorerPS/2が標準みたいなかんじらしい。よくわからん。<br />
参照：<a href="http://zya.typepad.com/dlife/2004/02/linux_26_input_.html" title="D Life: Linux: 2.6 Input Drivers FAQ">D Life: Linux: 2.6 Input Drivers FAQ</a></li>
<li>Option &#8220;ZAxisMapping&#8221; &#8220;4 5&#8243; は、ホイールに4と5のボタンを対応づけている。デフォルトの設定と一緒なので、実は明記する必要はない。</li>
<li>
Option &#8220;Emulate3Buttons&#8221; &#8220;true&#8221; は、左ボタンと右ボタンを同時にクリックした時に中ボタン（ホイールボタン）がクリックされた事にする設定。設定してもしなくても、どっちでもいい。</li>
<li>Option &#8220;Buttons&#8221; &#8220;7&#8243; は、ボタンの数。ホイールの上下もボタンとしてカウントするので、ボタンの数をかぞえると、1 左ボタン、2 中ボタン、3 右ボタン、4 上ボタン（ホイール）、5 下ボタン（ホイール）、6 サイドボタン（戻る）、7 サイドボタン（進む）、と7ボタンになる。ただ、ボタンの数は自動検出されるので明記の必要なし。</li>
<li>
Option &#8220;ButtonMapping&#8221; &#8220;1 2 3 6 7&#8243; は、（物理的な）マウスボタンを（論理的な）ボタン番号に対応（マッピング）させる設定。ZAxisMappingで使ったボタンはとばして書く仕様のよう。<br />
デフォルトでは &#8220;1 2 3 8 9 &#8230;&#8221; となっており、その場合サイドボタンは8番と9番に対応している。でもFirefoxの「戻る」「進む」の割り当ては6番と7番なので、ボタンマッピングを&#8221;1 2 3 8 9&#8243; から &#8220;1 2 3 6 7&#8243; に設定する。</p>
<p>実はこのButtonMappingの設定だけをxorg.confに追加すれば、Firefoxで「戻る」「進む」が使えるようになる。さらに上記したように、Firefox3からは「戻る」「進む」の割り当ては8と9なので、特に設定を変更する必要がなくなるはずだ。</p>
</li>
</ul>
<h3>参考・参照</h3>
<p><a href="http://ubuntuguide.org/wiki/Ubuntu:Feisty/Hardware#Mice" title="Ubuntu:Feisty/Hardware -">Ubuntu:Feisty/Hardware -</a></p>
<p><a href="http://killing-time.txt-nifty.com/time/2007/01/post_0fe5.html" title="killing_time: 購入と備忘録">killing_time: 購入と備忘録</a></p>
<p><a href="http://blogs.dion.ne.jp/fedora_blog/archives/3213515.html" title="STARTUP LINUX - blog side -: FC5で5ボタンマウス 3">STARTUP LINUX &#8211; blog side -: FC5で5ボタンマウス 3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://retujyou.com/2008/04/12/ubuntu-5button-mouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
