<?xml version="1.0"?>
<!DOCTYPE joymenu SYSTEM "joymenu.dtd">
<joymenu>

<!-- this describes my gravis gamepad pro -->
  
  <alias button="1" name="red"/>
  <alias button="2" name="yellow"/>
  <alias button="4" name="green"/>
  <alias button="8" name="blue"/>
  <alias name="ul" button="16" title="upper left"/>
  <alias name="ur" button="32" title="upper right"/>
  <alias name="ll" button="64" title="lower left"/>
  <alias name="lr" button="128" title="lower right"/>
  <alias button="256" name="select"/>
  <alias button="512" name="start"/>

  <menu button="start" name="main" title="main menu">
    <menucmd name="back" button="lr" command="back" global="yes" 
      title="go back a menu"/>
    <menucmd name="describe" button="select" command="describe" 
      global="yes" title="describe the current menu"/>

    <menucmd name="speak" button="green" command="speak"/>

    <menu name="music" button="ul" title="music control">
      <command button="green" name="play" 
	title="play or pause the current track">xmmsctrl -U</command>
      <command button="ur" name="speak" 
	title="speak the current track name">cursong -s</command>
      <command button="red" name="stop" 
	title="stop playback">xmmsctrl -s</command>
      <command button="yellow" name="next" 
	title="move forward in the playlist">xmmsctrl -f</command>
      <command button="blue" name="previous" 
	title="move back in the playlist">xmmsctrl -r</command>
    </menu>

    <command button="ll" name="status" 
      title="give a status of the world">txtstat It is now %T. Outside it is %t and the sky is %s. %h %m|say</command>

    <menu name="misc" button="ur" title="miscellaneous commands">
      <menu name="locate" button="ul" title="locate a user in the world">
	<command name="tashari" button="blue" title="locate tashari">class -lu tashari|say</command>
	<command name="care" button="green" title="locate care">class -lu care|say</command>
      </menu>
      <command name="mute" button="red">echo mute is now $(mute t)|say</command>
      <menu name="net" button="ur" title="network manipulation commands">
	<command button="red" name="wireless" 
	  title="bring up the wireless interface">ifup eth1</command>

      </menu>
    </menu>

  </menu>
</joymenu>