<?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>reveal.js &#8211; 李辉 / Grey Li</title>
	<atom:link href="https://greyli.com/tag/reveal-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Thu, 06 Nov 2025 11:36:11 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>reveal.js &#8211; 李辉 / Grey Li</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Wii Remote——支持上下左右四个方向的幻灯片翻页笔</title>
		<link>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/</link>
		<comments>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/#comments</comments>
		<pubDate>Sat, 09 Nov 2019 05:05:45 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[reveal.js]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[幻灯片]]></category>
		<category><![CDATA[翻页笔]]></category>

		<guid isPermaLink="false">http://greyli.com/?p=2613</guid>
		<description><![CDATA[如果你用 reveal.js 做幻灯片，你会发现没有合适的翻页笔可以用。具体来说，是没有支持上下左右四个方向的 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>如果你用 reveal.js 做幻灯片，你会发现没有合适的翻页笔可以用。具体来说，是没有支持上下左右四个方向的翻页笔。</p>
<p>参加 PyCon China 上海站的时候，因为现场条件限制，不得不用翻页笔，但是发现翻页笔只支持上下翻页，不支持左右翻页，而使用 reveal.js 做的幻灯片常常会包含上下左右四个方向的切换。当时还和其他志愿者说这是个潜在的商机——做一个支持上下左右四个方向的翻页笔。</p>
<p>回来去网上搜了一下，发现真的没有支持四个方向的翻页笔。想想也没有多少人会需要用到四个方向切换。市场份额最大的幻灯片制作软件是 PPT、Keynote 和 Prezi。前两者上下翻页，Prezi 左右翻页，所以有一些翻页笔会支持在「上下」和「左右」两种模式切换，还有一些会支持切换成「PageUp 和 PageDown」翻页模式，用来给 PDF 文件翻页。</p>
<p>接着，我调整方向开始找有没有只有四个方向键的蓝牙小键盘，找的过程中突然想到以前用手柄映射键盘按键来玩一些不支持手柄的电脑游戏，那么 Wii Remote（Wii 右手控制器）也许也可以通过映射按键来当做一个翻页笔用。搜了一些资料，发现真的可以！找到了一个叫做 <a href="http://onakasuita.org/wii/index-e.html">WiinRemote</a> 的程序来做按键映射（macOS 可以使用 Darwiin Remote，另外还有其他通用的替代选项）。</p>
<p>以 Windows 10 为例，你需要先通过蓝牙把 Wii Remote 连接到电脑，基本步骤如下：</p>
<ul>
<li>任务栏蓝牙图标右键</li>
<li>加入个人区域网</li>
<li>添加设备</li>
<li>同时按住 Wii Remote 的 1 和 2 键进入匹配模式（四个指示灯闪烁）</li>
<li>选择设备，一般名称会显示 Nintendo RVL-CNT，点下一步</li>
<li>PIN 码留空点下一步</li>
</ul>
<p>第一次和电脑配对会有些麻烦，后续就可以很容易连接了。</p>
<p>连接成功后打开 WiinRemote 配置按钮。在 Options &#8211; Preferences &#8211; Button Assign 选项里可以定义按键映射。除了设置上下左右四个方向切换以外，Wii Remote 上的其他按钮也可以利用起来，比如分别用来映射 Enter、Esc 这些按钮。</p>
<div id="attachment_2614" style="width: 635px" class="wp-caption alignnone"><a href="http://greyli.com/wp-content/uploads/2019/11/wiinremote.png"><img class="wp-image-2614 size-large" src="http://greyli.com/wp-content/uploads/2019/11/wiinremote-1024x603.png" alt="" width="625" height="368" srcset="https://greyli.com/wp-content/uploads/2019/11/wiinremote-1024x603.png 1024w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-150x88.png 150w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-300x177.png 300w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-624x368.png 624w, https://greyli.com/wp-content/uploads/2019/11/wiinremote.png 1061w" sizes="(max-width: 625px) 100vw, 625px" /></a><p class="wp-caption-text">设置按键映射</p></div>
<p>唯一的缺点就是 Wii Remote 和常见的翻页笔相比有点大……</p>
<div id="attachment_2622" style="width: 635px" class="wp-caption alignnone"><a href="http://greyli.com/wp-content/uploads/2019/11/wiiremote-compare.jpg" rel="attachment wp-att-2622"><img class="wp-image-2622 size-large" src="http://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-1024x768.jpg" alt="" width="625" height="469" srcset="https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-1024x768.jpg 1024w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-150x113.jpg 150w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-300x225.jpg 300w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-624x468.jpg 624w" sizes="(max-width: 625px) 100vw, 625px" /></a><p class="wp-caption-text">和翻页笔比大小</p></div>
<p>虽然看起来很完美，但后来我还是采用了另一个替代方案，买了一个支持切换 PageDown 和 PageUp 翻页模式的翻页笔，这样可以让 reveal.js 的幻灯片按照从左到右，从上到下的顺序逐页切换。</p>
<p>也许下次演讲你会看到我用 Wii Remote 来翻页。</p>
<p>P.S. 除了用来当翻页笔，Wii Remote 甚至可以用来实现数字白板、触控屏幕和 3D 头戴显示器（<a href="https://www.ted.com/talks/johnny_lee_demos_wii_remote_hacks?language=en">Free or cheap Wii Remote hacks</a>）。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
