mamedoc

Daytona artwork

Dec 31st, 2025 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.73 KB | Gaming | 0 0
  1. <?xml version="1.0"?>
  2. <mamelayout version="2">
  3. <!--
  4.     Controles virtuais para Daytona USA
  5.     Criado por: Wellington Terumi Uemura
  6.     Licença: CC0
  7.     Fonte: Documentação Oficial do MAME:
  8.     https://docs.mamedev.org/techspecs/layout_files.html
  9.     Download: https://pastebin.com/TjTx5895
  10.     https://mamedoc.readthedocs.io/
  11.     Data de criação: December 28, 2025
  12. -->
  13.  
  14. <!-- Elemento de texto "WHEEL" (volante) -->
  15. <element name="volante" defstate="1">
  16.     <text string="WHEEL"></text>
  17. </element>
  18.  
  19. <!-- Elemento de texto "AC" (acelerador) -->
  20. <element name="gas" defstate="1">
  21.     <text string="AC"></text>
  22. </element>
  23.  
  24. <!-- Elemento de texto "BK" (freio) -->
  25. <element name="brake" defstate="1">
  26.     <text string="BK"></text>
  27. </element>
  28.  
  29. <!-- Para bloquear cliques do mouse -->
  30. <element name="cover" defstate="0">
  31.     <rect><color alpha="0" /></rect>
  32. </element>
  33.  
  34. <!--
  35. https://github.com/mamedev/mame/blob/master/src/mame/sega/model2.cpp#L1765
  36.  
  37.     PORT_START("STEER")
  38.     PORT_BIT(0xff, 0x80, IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(10)
  39.  
  40.     É daqui de onde obtemos os valores para o volante e aplicamos as cores
  41.     da posição neutra até o extremo. O mecanismo interno do MAME faz o
  42.     resto para transicionar entre as cores.
  43. -->
  44.  
  45. <element name="wheel">
  46.     <rect>
  47.         <bounds state="0xff" left="0.475" top="0.0" right="1.0" bottom="1.0" /><!-- Direita -->
  48.         <bounds state="0x80" left="0.475" top="0.0" right="0.525" bottom="1.0" /><!-- Centro -->
  49.         <bounds state="0x0" left="0.0" top="0.0" right="0.525" bottom="1.0" /><!-- Esquerda -->
  50.         <color state="0x80" red="0.0" green="0.0" blue="0.8" /><!-- neutro/centro -->
  51.         <color state="0x40" red="0.709" green="0.0" blue="0.709" /><!-- intermediário -->
  52.         <color state="0x0" red="1.0" green="0.0" blue="0.0" /><!-- Left -->
  53.         <color state="0xbf" red="0.709" green="0.0" blue="0.709" /><!-- intermediário -->
  54.         <color state="0xff" red="1.0" green="0.0" blue="0.0"  /><!-- Right-->
  55.     </rect>
  56. </element>
  57.  
  58. <!--
  59. https://github.com/mamedev/mame/blob/master/src/mame/sega/model2.cpp#L1765
  60.  
  61.     PORT_START("ACCEL")
  62.     PORT_BIT(0xff, 0x00, IPT_PEDAL)  PORT_SENSITIVITY(30) PORT_KEYDELTA(10)
  63.  
  64.     PORT_START("BRAKE")
  65.     PORT_BIT(0xff, 0x00, IPT_PEDAL2) PORT_SENSITIVITY(30) PORT_KEYDELTA(10)
  66.  
  67.     É daqui de onde obtemos os valores para o acelerador e freio, aplicamos
  68.     as cores da posição neutra até o extremo. O mecanismo interno do MAME
  69.     faz o resto para transicionar entre as cores.
  70.  
  71. -->
  72.  
  73. <element name="pedal">
  74.     <rect>
  75.         <bounds state="0x00" left="0.0" top="0.9" right="1.0" bottom="1.0" /><!-- Neutro -->
  76.         <bounds state="0xff" left="0.0" top="0.0" right="1.0" bottom="1.0" /><!-- Socado -->
  77.         <color state="0x00" red="0.0" green="0.0" blue="0.8" /><!-- Neutro -->
  78.         <color state="0x7f" red="0.709" green="0.0" blue="0.709" /><!-- 50% -->
  79.         <color state="0xff" red="1.0" green="0.0" blue="0.0" /><!-- Socado -->
  80.     </rect>
  81. </element>
  82.  
  83. <!-- Define o nome da nossa ilustração para ser selecionada na interface do MAME-->
  84. <view name="Controles Analógicos" showpointers="no">
  85. <screen index="0">
  86.     <bounds x="0" y="0" width="4" height="3" />
  87. </screen>
  88.  
  89. <!-- Define a posição e tamanho do texto "WHEEL" na tela -->
  90. <element ref="volante" align="3">
  91.     <bounds x="1.870" y="2.91" width="0.261" height="0.052" />
  92.     <color red="1.0" green="1.0" blue="1.0" />
  93. </element>
  94.  
  95. <!-- Define a posição e tamanho inicial para a animação do volante na tela -->
  96. <element ref="wheel" inputtag="STEER" inputmask="0xff" inputraw="yes">
  97.     <bounds x="1" y="2.8" width="2" height="0.1" />
  98.     <color alpha="0.7" />
  99. </element>
  100.  
  101. <!-- Bloqueia o clique no volante -->
  102. <element ref="cover" clickthrough="no">
  103.     <bounds x="0.9" y="2.8" width="2.1" height="0.2" />
  104. </element>
  105.  
  106. <!-- Define a posição e tamanho do texto "AC" na tela -->
  107. <element ref="gas" align="3">
  108.     <bounds x="3.075" y="2.91" width="0.1" height="0.053" />
  109.     <color red="1.0" green="1.0" blue="1.0" />
  110. </element>
  111.  
  112. <!-- Define a posição e tamanho inicial para a animação do acelerador na tela -->
  113. <element ref="pedal" inputtag="ACCEL" inputmask="0xff" inputraw="yes">
  114.     <bounds x="3.075" y="1.9" width="0.1" height="1" />
  115.     <color alpha="0.7" />
  116. </element>
  117.  
  118. <!-- Define a posição e tamanho do texto "BK" na tela -->
  119. <element ref="brake" align="3">
  120.     <bounds x="3.274" y="2.911" width="0.1" height="0.051" />
  121.     <color red="1.0" green="1.0" blue="1.0" />
  122. </element>
  123.  
  124. <!-- Define a posição e tamanho inicial para a animação do freio na tela -->
  125. <element ref="pedal" inputtag="BRAKE" inputmask="0xff" inputraw="yes">
  126.     <bounds x="3.275" y="1.9" width="0.1" height="1" />
  127.     <color alpha="0.7" />
  128. </element>
  129.  
  130. <!-- Bloqueia o clique nos pedais -->
  131. <element ref="cover" clickthrough="no">
  132.     <bounds x="3.02" y="1.862" width="0.4" height="1.1" />
  133. </element>
  134.  
  135. </view>
  136. </mamelayout>
  137.  
Tags: mame artwork
Advertisement
Add Comment
Please, Sign In to add comment