<?xml version="1.0" encoding="UTF-8"?>
<buttonmap version="2">
	<controller id="game.controller.nes" type="RETRO_DEVICE_JOYPAD" subclass="0">
		<feature name="a" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
		<feature name="b" mapto="RETRO_DEVICE_ID_JOYPAD_B"/>
		<feature name="start" mapto="RETRO_DEVICE_ID_JOYPAD_START"/>
		<feature name="select" mapto="RETRO_DEVICE_ID_JOYPAD_SELECT"/>
		<feature name="up" mapto="RETRO_DEVICE_ID_JOYPAD_UP"/>
		<feature name="down" mapto="RETRO_DEVICE_ID_JOYPAD_DOWN"/>
		<feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
		<feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
	</controller>
	<!-- TODO -->
	<controller id="game.controller.default" type="RETRO_DEVICE_JOYPAD">
		<!-- Turbo A -->
		<feature name="y" mapto="RETRO_DEVICE_ID_JOYPAD_X"/>
		<!-- Turbo B -->
		<feature name="x" mapto="RETRO_DEVICE_ID_JOYPAD_Y"/>
		<!-- Mic (Famicon) -->
		<feature name="leftthumb" mapto="RETRO_DEVICE_ID_JOYPAD_L3"/>
		<!-- Coin 1 (VSSystem) -->
		<feature name="lefttrigger" mapto="RETRO_DEVICE_ID_JOYPAD_L2"/>
		<!-- Coin 2 (VSSystem) -->
		<feature name="righttrigger" mapto="RETRO_DEVICE_ID_JOYPAD_R2"/>
		<!-- Flip disk (FDS) -->
		<feature name="leftbumper" mapto="RETRO_DEVICE_ID_JOYPAD_L"/>
		<!-- Eject disk (FDS) -->
		<feature name="rightbumper" mapto="RETRO_DEVICE_ID_JOYPAD_R"/>
	</controller>
	<!-- TODO
	<controller id="game.controller.nes.arkanoid" type="RETRO_DEVICE_MOUSE" subclass="0"/>
	<controller id="game.controller.nes.zapper" type="RETRO_DEVICE_POINTER" subclass="0"/>
	-->
</buttonmap>
