<?xml version="1.0" encoding="UTF-8"?>
<buttonmap version="2">
  <controller id="game.controller.amstrad.joystick" type="RETRO_DEVICE_JOYPAD" subclass="1">
    <feature name="button1" mapto="RETRO_DEVICE_ID_JOYPAD_X"/>
    <feature name="button2" mapto="RETRO_DEVICE_ID_JOYPAD_A"/>
    <feature name="run" mapto="RETRO_DEVICE_ID_JOYPAD_B"/>
    <feature name="vkbtoggle" mapto="RETRO_DEVICE_ID_JOYPAD_Y"/>
    <feature name="return" mapto="RETRO_DEVICE_ID_JOYPAD_START"/>
    <feature name="mousetoggle" mapto="RETRO_DEVICE_ID_JOYPAD_SELECT"/>
    <feature name="up" mapto="RETRO_DEVICE_ID_JOYPAD_UP"/>
    <feature name="right" mapto="RETRO_DEVICE_ID_JOYPAD_RIGHT"/>
    <feature name="down" mapto="RETRO_DEVICE_ID_JOYPAD_DOWN"/>
    <feature name="left" mapto="RETRO_DEVICE_ID_JOYPAD_LEFT"/>
    <feature name="cat" mapto="RETRO_DEVICE_ID_JOYPAD_R"/>
    <feature name="stat" mapto="RETRO_DEVICE_ID_JOYPAD_L"/>
    <feature name="reset" mapto="RETRO_DEVICE_ID_JOYPAD_R2"/>
    <feature name="tape" mapto="RETRO_DEVICE_ID_JOYPAD_L2"/>
  </controller>
  <controller id="game.controller.amstrad.keyboard" type="RETRO_DEVICE_KEYBOARD">
    <feature name="1" mapto="RETROK_1"/>
    <feature name="2" mapto="RETROK_2"/>
    <feature name="3" mapto="RETROK_3"/>
    <feature name="4" mapto="RETROK_4"/>
    <feature name="5" mapto="RETROK_5"/>
    <feature name="6" mapto="RETROK_6"/>
    <feature name="7" mapto="RETROK_7"/>
    <feature name="8" mapto="RETROK_8"/>
    <feature name="9" mapto="RETROK_9"/>
    <feature name="0" mapto="RETROK_0"/>
    <feature name="a" mapto="RETROK_a"/>
    <feature name="b" mapto="RETROK_b"/>
    <feature name="c" mapto="RETROK_c"/>
    <feature name="d" mapto="RETROK_d"/>
    <feature name="e" mapto="RETROK_e"/>
    <feature name="f" mapto="RETROK_f"/>
    <feature name="g" mapto="RETROK_g"/>
    <feature name="h" mapto="RETROK_h"/>
    <feature name="i" mapto="RETROK_i"/>
    <feature name="j" mapto="RETROK_j"/>
    <feature name="k" mapto="RETROK_k"/>
    <feature name="l" mapto="RETROK_l"/>
    <feature name="m" mapto="RETROK_m"/>
    <feature name="n" mapto="RETROK_n"/>
    <feature name="o" mapto="RETROK_o"/>
    <feature name="p" mapto="RETROK_p"/>
    <feature name="q" mapto="RETROK_q"/>
    <feature name="r" mapto="RETROK_r"/>
    <feature name="s" mapto="RETROK_s"/>
    <feature name="t" mapto="RETROK_t"/>
    <feature name="u" mapto="RETROK_u"/>
    <feature name="v" mapto="RETROK_v"/>
    <feature name="w" mapto="RETROK_w"/>
    <feature name="x" mapto="RETROK_x"/>
    <feature name="y" mapto="RETROK_y"/>
    <feature name="z" mapto="RETROK_z"/>
    <feature name="space" mapto="RETROK_SPACE"/>
    <feature name="comma" mapto="RETROK_COMMA"/>
    <feature name="dot" mapto="RETROK_PERIOD"/>
    <feature name="colon" mapto="RETROK_SEMICOLON"/>
    <feature name="minus" mapto="RETROK_MINUS"/>
    <feature name="hat" mapto="RETROK_EQUALS"/>
    <feature name="at" mapto="RETROK_LEFTBRACKET"/>
    <feature name="openbracket" mapto="RETROK_RIGHTBRACKET"/>
    <feature name="tab" mapto="RETROK_TAB"/>
    <feature name="return" mapto="RETROK_RETURN"/>
    <feature name="del" mapto="RETROK_BACKSPACE"/>
    <feature name="esc" mapto="RETROK_ESCAPE"/>
    <feature name="up" mapto="RETROK_UP"/>
    <feature name="down" mapto="RETROK_DOWN"/>
    <feature name="left" mapto="RETROK_LEFT"/>
    <feature name="right" mapto="RETROK_RIGHT"/>
    <feature name="f0" mapto="RETROK_F10"/>
    <feature name="f1" mapto="RETROK_F1"/>
    <feature name="f2" mapto="RETROK_F2"/>
    <feature name="f3" mapto="RETROK_F3"/>
    <feature name="f4" mapto="RETROK_F4"/>
    <feature name="f5" mapto="RETROK_F5"/>
    <feature name="f6" mapto="RETROK_F6"/>
    <feature name="f7" mapto="RETROK_F7"/>
    <feature name="f8" mapto="RETROK_F8"/>
    <feature name="f9" mapto="RETROK_F9"/>
    <feature name="intro" mapto="RETROK_KP_ENTER"/>
    <feature name="fdot" mapto="RETROK_F11"/>
    <feature name="clr" mapto="RETROK_DELETE"/>
    <feature name="shift" mapto="RETROK_LSHIFT"/>
    <feature name="control" mapto="RETROK_LCTRL"/>
    <feature name="capslock" mapto="RETROK_CAPSLOCK"/>
    <feature name="copy" mapto="RETROK_LALT"/>
    <feature name="slash" mapto="RETROK_SLASH"/>
    <feature name="backslash" mapto="RETROK_HOME"/>
    <feature name="semicolon" mapto="RETROK_QUOTE"/>
    <feature name="closebracket" mapto="RETROK_BACKSLASH"/>
    <feature name="stop" mapto="RETROK_F10"/>
    <feature name="mousetoggle" mapto="RETROK_INSERT"/>
  </controller>
</buttonmap>
