mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
Code Magik: Standardized inputs.
This commit is contained in:
parent
a0bcdfc011
commit
af7cf3b55c
153
src/mame/layout/codemagik.lay
Normal file
153
src/mame/layout/codemagik.lay
Normal file
@ -0,0 +1,153 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0-1.0
|
||||
copyright-holders: Roberto Fresca & Grull Osgo
|
||||
|
||||
Code Magik & Super 7 control panel.
|
||||
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<element name="BUTTON1" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
|
||||
<rect state="0"><color red="0.22" green="0.22" blue="0.22" /></rect>
|
||||
<text string="1">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON2" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
|
||||
<rect state="0"><color red="0.22" green="0.22" blue="0.22" /></rect>
|
||||
<text string="2">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON3" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
|
||||
<rect state="0"><color red="0.25" green="0.25" blue="0.25" /></rect>
|
||||
<text string="3">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON4" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
|
||||
<rect state="0"><color red="0.25" green="0.25" blue="0.25" /></rect>
|
||||
<text string="4">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON5" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
|
||||
<rect state="0"><color red="0.25" green="0.25" blue="0.25" /></rect>
|
||||
<text string="5">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON6" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="0.0" blue="0.0" /></rect>
|
||||
<rect state="0"><color red="0.15" green="0.0" blue="0.0" /></rect>
|
||||
<text string="MISE">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTON7" defstate="0">
|
||||
<rect state="1"><color red="1.0" green="0.5" blue="0.0" /></rect>
|
||||
<rect state="0"><color red="0.15" green="0.075" blue="0.0" /></rect>
|
||||
<text string="CARTE / EXIT">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0.1" y="0.15" width="0.8" height="0.7" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="BUTTONBASE" defstate="0">
|
||||
<rect state="1"><color red="0.80" green="0.80" blue="0.80" /></rect>
|
||||
<rect state="0"><color red="0.19" green="0.19" blue="0.19" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="BUTTONBASECARTE" defstate="0">
|
||||
<rect state="1"><color red="0.7" green="0.35" blue="0.0" /></rect>
|
||||
<rect state="0"><color red="0.1" green="0.05" blue="0.0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="BUTTONBASEMISE" defstate="0">
|
||||
<rect state="1"><color red="0.7" green="0.0" blue="0.0" /></rect>
|
||||
<rect state="0"><color red="0.1" green="0.0" blue="0.0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="cpanel">
|
||||
<rect>
|
||||
<color red="0.00" green="0.00" blue="0.00" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
|
||||
<view name="Button Lamps">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
|
||||
<element ref="cpanel"><bounds left="0" right="4" top="3" bottom="4.00" /></element>
|
||||
|
||||
<element name="lamp2" ref="BUTTONBASE" inputtag="IN.0" inputmask="0x10">
|
||||
<bounds x="0.22" y="3.10" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp2" ref="BUTTON1" inputtag="IN.0" inputmask="0x10">
|
||||
<bounds x="0.25" y="3.13" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp4" ref="BUTTONBASE" inputtag="IN.1" inputmask="0x04">
|
||||
<bounds x="0.97" y="3.10" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp4" ref="BUTTON2" inputtag="IN.1" inputmask="0x04">
|
||||
<bounds x="1.0" y="3.13" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp4" ref="BUTTONBASE" inputtag="IN.1" inputmask="0x10">
|
||||
<bounds x="1.72" y="3.10" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp4" ref="BUTTON3" inputtag="IN.1" inputmask="0x10">
|
||||
<bounds x="1.75" y="3.13" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp3" ref="BUTTONBASE" inputtag="IN.0" inputmask="0x08">
|
||||
<bounds x="2.47" y="3.10" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp3" ref="BUTTON4" inputtag="IN.0" inputmask="0x08">
|
||||
<bounds x="2.50" y="3.13" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp4" ref="BUTTONBASE" inputtag="IN.1" inputmask="0x08">
|
||||
<bounds x="3.22" y="3.10" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp4" ref="BUTTON5" inputtag="IN.1" inputmask="0x08">
|
||||
<bounds x="3.25" y="3.13" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp0" ref="BUTTONBASEMISE" inputtag="IN.0" inputmask="0x01">
|
||||
<bounds x="3.22" y="3.55" width="0.44" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp0" ref="BUTTON6" inputtag="IN.0" inputmask="0x01">
|
||||
<bounds x="3.25" y="3.58" width="0.38" height="0.24" />
|
||||
</element>
|
||||
|
||||
<element name="lamp1" ref="BUTTONBASECARTE" inputtag="IN.0" inputmask="0x04">
|
||||
<bounds x="1.72" y="3.55" width="1.19" height="0.3" />
|
||||
</element>
|
||||
<element name="lamp1" ref="BUTTON7" inputtag="IN.0" inputmask="0x04">
|
||||
<bounds x="1.75" y="3.58" width="1.13" height="0.24" />
|
||||
</element>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
@ -442,19 +442,19 @@ INPUT_PORTS_END
|
||||
static INPUT_PORTS_START(codemagik)
|
||||
// Multiplexed - 4x5bits
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_M) PORT_NAME("Mise") // mise
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Service / Test")
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_1) PORT_NAME("Carte / Done") // done/deal
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_V) PORT_NAME("BUTTON 4") // cancel
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_Z) PORT_NAME("BUTTON 1") // <--
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BET ) PORT_NAME("Mise") // mise/bet
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Service / Test") // test
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL ) PORT_NAME("Carte / Exit") // carte/deal/exit
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD4 ) PORT_NAME("BUTTON 4") // cancel
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD1 ) PORT_NAME("BUTTON 1") // <--
|
||||
PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_2) PORT_NAME("IN1-1")
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_3) PORT_NAME("IN1-2")
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_X) PORT_NAME("BUTTON 2") // -->
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_B) PORT_NAME("BUTTON 5") // fin
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_C) PORT_NAME("BUTTON 3") // choice
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD2 ) PORT_NAME("BUTTON 2") // -->
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD5 ) PORT_NAME("BUTTON 5") // fin
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD3 ) PORT_NAME("BUTTON 3") // choice
|
||||
PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN.2")
|
||||
|
Loading…
Reference in New Issue
Block a user