레트로파이(RetroPie) A/B 버튼 X/Y 버튼 전환

in ubuntu •  7 years ago  (edited)

기본적으로 레트로파이의 권장 설정대로 A/B, X/Y 버튼을 기존 알고 있는 형식과 다른 역으로 설정을 해두면 실제 조작이 헷갈릴 수 있다. 나는 여러번 경험이 있다.

A/B 버튼 전환에 있어 레트로파이는 에뮬레이션스테이션의 설정값만 서로 바꿔주는 설정이 따로 있긴 하나, X/Y 버튼은 바꿔주지 않는다. 그래서 직접 바꾸는 방법을 찾아봤다.

생각보다 방법은 간단하다. 조이패드 설정값은 실제 게임할 때와 에뮬레이션스테이션의 설정 값이 별도로 관리되기 때문에 에뮬레이션스테이션 값만 뒤바꿔주면 된다.

레트로파이의 권장 설정대로 X/Y, A/B 값을 설정한 뒤에 .emulationstation/es_input.cfg 파일을 수정해주면 된다. .emulationstation 폴더는 숨김폴더이므로 그냥으로는 보이지 않는다.

cd .emulationstation
nano es_input.cfg

내 경우 아래와 같은 내용이다.

<?xml version="1.0"?>
<inputList>
  <inputAction type="onfinish">
    <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command>
  </inputAction>
  <inputConfig type="joystick" deviceName="Xbox 360 Wireless Receiver" deviceGUID="030000005e040000a102000000010000">
    <input name="pageup" type="button" id="4" value="1"/>
    <input name="start" type="button" id="7" value="1"/>
    <input name="up" type="button" id="13" value="1"/>
    <input name="a" type="button" id="1" value="1"/>
    <input name="b" type="button" id="0" value="1"/>
    <input name="down" type="button" id="14" value="1"/>
    <input name="pagedown" type="button" id="5" value="1"/>
    <input name="right" type="button" id="12" value="1"/>
    <input name="x" type="button" id="3" value="1"/>
    <input name="select" type="button" id="6" value="1"/>
    <input name="y" type="button" id="2" value="1"/>
    <input name="left" type="button" id="11" value="1"/>
  </inputConfig>
</inputList>

이중 아래와 같이 a, b, x, y 의 id 값만 서로 바꿔주면 된다.

  • input name="a" type="button" id="0" value="1"
  • input name="b" type="button" id="1" value="1"
  • input name="x" type="button" id="2" value="1"
  • input name="y" type="button" id="3" value="1"

변경 후 내용.

<?xml version="1.0"?>
<inputList>
  <inputAction type="onfinish">
    <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command>
  </inputAction>
  <inputConfig type="joystick" deviceName="Xbox 360 Wireless Receiver" deviceGUID="030000005e040000a102000000010000">
    <input name="pageup" type="button" id="4" value="1"/>
    <input name="start" type="button" id="7" value="1"/>
    <input name="up" type="button" id="13" value="1"/>
    <input name="a" type="button" id="0" value="1"/>
    <input name="b" type="button" id="1" value="1"/>
    <input name="down" type="button" id="14" value="1"/>
    <input name="pagedown" type="button" id="5" value="1"/>
    <input name="right" type="button" id="12" value="1"/>
    <input name="x" type="button" id="2" value="1"/>
    <input name="select" type="button" id="6" value="1"/>
    <input name="y" type="button" id="3" value="1"/>
    <input name="left" type="button" id="11" value="1"/>
  </inputConfig>
</inputList>

이런 방식으로 값을 변경 해주는것이 설정값 변경해본다고 리셋시도 하는 시간을 좀 더 아낄 수 있는듯 하다.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!