http://www.mupen64plus.org/wiki/index.php?title=LIRC&feed=atom&action=historyLIRC - Revision history2024-03-28T12:55:52ZRevision history for this page on the wikiMediaWiki 1.23.9http://www.mupen64plus.org/wiki/index.php?title=LIRC&diff=38&oldid=prevRichard42: Enabling LIRC support in Mupen64Plus2015-07-26T21:07:37Z<p>Enabling LIRC support in Mupen64Plus</p>
<p><b>New page</b></p><div>== Introduction ==<br />
<br />
Mupen64Plus includes support for [http://www.lirc.org Linux Infrared Remote Control] (LIRC). This can be used to send commands to Mupen64Plus using a remote control.<br />
<br />
<br />
== Building with LIRC support ==<br />
<br />
To build Mupen64Plus with LIRC support, download and unzip the source code, and pass "LIRC=1" to make. See the [[README]] for full details on build/installation of Mupen64Plus.<br />
<br />
<nowiki><br />
$ make LIRC=1 all</nowiki><br />
<br />
== Configuring LIRC Commands ==<br />
<br />
LIRC uses a config file to define mappings between buttons on your remote control (as defined in lircd.conf) and the commands you want to send to Mupen64Plus. Mupen64Plus expects the LIRC config to be in a file called .lircrc in the user's home directory.<br />
<br />
The LIRC config file contains a block for each button mapping. Here is an example block:<br />
<br />
<nowiki><br />
begin<br />
prog = mupen64plus<br />
button = Back/Exit<br />
config = quit<br />
end</nowiki><br />
<br />
This maps the "Back/Exit" button on the remote control to the "quit" mupen64plus command.<br />
<br />
You can also use the "repeat" keyword to have LIRC repeatedly send a command while you're holding down a button on the remote control. Here is an example block:<br />
<br />
<nowiki><br />
begin<br />
prog = mupen64plus<br />
button = Vol+<br />
repeat = 1<br />
config = vol+<br />
end</nowiki><br />
<br />
This maps the "Vol+" button on the remote control to the "vol+" mupen64plus command. The repeat line means that LIRC will repeatedly send the "vol+" command as long as the remote control button is held down. Increasing the repeat number decreases how often the command will be sent to mupen64plus.<br />
<br />
=== Supported Commands ===<br />
<br />
The following table lists the Mupen64Plus commands that can be mapped to remote control buttons in your LIRC config file:<br />
<br />
{| class="wikitable"<br />
|-<br />
|'''Config String''' || '''Description'''<br />
|-<br />
|0-9 || Set current statesave slot to given slot number.<br />
|-<br />
|save || Save game state to currently selected statesave slot.<br />
|-<br />
|load || Load game statesave from currently selected statesave slot.<br />
|-<br />
|pause || Pause/continue emulation.<br />
|-<br />
|quit || Stop Emulation.<br />
|-<br />
|fullscreen || Toggle fullscreen mode.<br />
|-<br />
|screenshot || Take a screenshot.<br />
|-<br />
|vol+ || Increase volume by 2%. '''Note:''' svn only, not available in v1.3<br />
|-<br />
|vol- || Decrease volume by 2% '''Note:''' svn only, not available in v1.3<br />
|-<br />
|mute || Mute/unmute volume '''Note:''' svn only, not available in v1.3</div>Richard42