Previous 15994 Revisions Next

r1246 Friday 9th November, 2007 at 01:42:01 UTC by Dirk Best
Made most input port definitions static.
[src/mess/drivers]3do.c a2600.c a310.c a7800.c abc80.c abc80x.c acrnsys1.c adam.c advision.c aim65.c amiga.c amstrad.c apexc.c apf.c apple1.c apple2.c apple2gs.c aquarius.c arcadia.c astrocde.c at.c atarist.c atom.c avigo.c bbc.c c128.c c16.c c64.c c65.c cbmb.c cgenie.c channelf.c coco.c coleco.c compis.c comquest.c concept.c coupe.c cpschngr.c crvision.c cybiko.c dai.c dc.c dgn_beta.c einstein.c electron.c enterp.c ex800.c exidy.c galaxy.c gamecom.c gb.c geneve.c glasgow.c hp48.c intv.c ip20.c ip22.c jaguar.c jupiter.c kaypro.c kc.c kim1.c lisa.c lviv.c lynx.c mac.c mbee.c mc10.c mekd2.c mephisto.c microtan.c mk1.c mk2.c mpf1.c msx.c mtx.c mz700.c n64.c nascom1.c nc.c nes.c odyssey2.c oric.c osi.c p2000t.c pc.c pc8801.c pce.c pcw.c pcw16.c pdp1.c pet.c pmd85.c pocketc.c pokemini.c primo.c psx.c ql.c saturn.c sg1000.c sms.c snes.c sord.c spectrum.c ssystem3.c studio2.c svi318.c svision.c sym1.c thomson.c ti85.c ti990_10.c ti990_4.c ti99_2.c ti99_4p.c ti99_4x.c ti99_8.c tm990189.c tmc1800.c tmc2000e.c tmc600.c trs80.c tutor.c vc20.c vc4000.c vectrex.c vip.c vtech1.c vtech2.c wswan.c x68k.c z88.c zx.c

src/mess/drivers/vip.c
r1245r1246
5858
5959/* Input Ports */
6060
61INPUT_PORTS_START( vip )
61static INPUT_PORTS_START( vip )
6262   PORT_START
6363   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("0 MW") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD)
6464   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD)
src/mess/drivers/wswan.c
r1245r1246
7979   AM_RANGE(0x00, 0xff) AM_READWRITE( wswan_port_r, wswan_port_w )   /* I/O ports */
8080ADDRESS_MAP_END
8181
82INPUT_PORTS_START( wswan )
82static INPUT_PORTS_START( wswan )
8383   PORT_START /* IN 0 : cursors (X1-X4) */
8484   PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_NAME("X1 - Up")
8585   PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_NAME("X3 - Down")
src/mess/drivers/comquest.c
r1245r1246
6565//   { 0x8000, 0xffff, MRA8_RAM }, // batterie buffered
6666ADDRESS_MAP_END
6767
68INPUT_PORTS_START( comquest )
68static INPUT_PORTS_START( comquest )
6969   PORT_START
7070   PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("EIN")
7171   PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC)
src/mess/drivers/zx.c
r1245r1246
5454
5555/* Input Ports */
5656
57INPUT_PORTS_START( zx80 )
57static INPUT_PORTS_START( zx80 )
5858   PORT_START_TAG("IN0")
5959
6060   PORT_START_TAG("IN1")   // KEY ROW 0
r1245r1246
135135   PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
136136INPUT_PORTS_END
137137
138INPUT_PORTS_START( zx81 )
138static INPUT_PORTS_START( zx81 )
139139    PORT_START_TAG("IN0")
140140   PORT_DIPNAME( 0x80, 0x00, "16K RAM module" )
141141   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
r1245r1246
220220   PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
221221INPUT_PORTS_END
222222
223INPUT_PORTS_START( pow3000 )
223static INPUT_PORTS_START( pow3000 )
224224   PORT_START_TAG("IN0")
225225   PORT_BIT( 0xfe, 0x0f, IPT_UNUSED )
226226
src/mess/drivers/dgn_beta.c
r1245r1246
172172
173173
174174
175INPUT_PORTS_START( dgnbeta )
175static INPUT_PORTS_START( dgnbeta )
176176   PORT_START /* Key ROw 0 */
177177   /* Return shift if either shift key pressed */
178178   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L-SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
src/mess/drivers/pdp1.c
r1245r1246
8484ADDRESS_MAP_END
8585
8686
87INPUT_PORTS_START( pdp1 )
87static INPUT_PORTS_START( pdp1 )
8888
8989    PORT_START      /* 0: spacewar controllers */
9090   PORT_BIT( ROTATE_LEFT_PLAYER1, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_NAME("Spin Left Player 1") PORT_CODE(KEYCODE_A) PORT_CODE(JOYCODE_X_LEFT_SWITCH)
src/mess/drivers/cpschngr.c
r1245r1246
3737
3838#define CODE_SIZE 0x200000
3939
40INPUT_PORTS_START( sfzch )
40static INPUT_PORTS_START( sfzch )
4141   PORT_START_TAG("IN0")     /* IN0 */
4242   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_PLAYER(1)
4343   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_PLAYER(2)
src/mess/drivers/jaguar.c
r1245r1246
344344 *
345345 *************************************/
346346
347INPUT_PORTS_START( jaguar )
347static INPUT_PORTS_START( jaguar )
348348    PORT_START  /* [0] */
349349    PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) PORT_CODE(JOYCODE_X_RIGHT_SWITCH ) PORT_PLAYER(1)
350350    PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) PORT_CODE(JOYCODE_X_LEFT_SWITCH ) PORT_PLAYER(1)
src/mess/drivers/apple2gs.c
r1245r1246
106106MACHINE_DRIVER_EXTERN( apple2e );
107107INPUT_PORTS_EXTERN( apple2ep );
108108
109INPUT_PORTS_START( apple2gs )
109static INPUT_PORTS_START( apple2gs )
110110   PORT_INCLUDE( apple2ep )
111111
112112   PORT_START_TAG("adb_mouse_x")
src/mess/drivers/hp48.c
r1245r1246
1818ADDRESS_MAP_END
1919
2020
21INPUT_PORTS_START( hp48s )
21static INPUT_PORTS_START( hp48s )
2222#if 1
2323   PORT_START
2424   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("        A") PORT_CODE(KEYCODE_A)
src/mess/drivers/3do.c
r1245r1246
120120   AM_RANGE(0x03400000, 0x034FFFFF) AM_READWRITE(clio_r, clio_w)               /* io controller */
121121ADDRESS_MAP_END
122122
123INPUT_PORTS_START( 3do )
123static INPUT_PORTS_START( 3do )
124124INPUT_PORTS_END
125125
126126MACHINE_RESET( 3do )
src/mess/drivers/c65.c
r1245r1246
7272    PORT_DIPSETTING (1, "Floppy Drive Simulation")
7373
7474
75INPUT_PORTS_START (c65)
75static INPUT_PORTS_START (c65)
7676   C64_DIPS
7777   C65_DIPS
7878   PORT_START
r1245r1246
163163   PORT_BIT(0x0008, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("(C65)HELP") PORT_CODE(KEYCODE_F12)
164164INPUT_PORTS_END
165165
166INPUT_PORTS_START (c65ger)
166static INPUT_PORTS_START (c65ger)
167167    C64_DIPS
168168     C65_DIPS
169169    PORT_START
src/mess/drivers/dai.c
r1245r1246
8989
9090
9191/* keyboard input */
92INPUT_PORTS_START (dai)
92static INPUT_PORTS_START (dai)
9393   PORT_START /* [0] - port ff07 bit 0 */
9494      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0')
9595      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("8  (") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(')
src/mess/drivers/mac.c
r1245r1246
110110
111111
112112
113INPUT_PORTS_START( macplus )
113static INPUT_PORTS_START( macplus )
114114   PORT_START /* 0: Mouse - button */
115115   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Mouse Button") PORT_CODE(MOUSECODE_BUTTON1)
116116
r1245r1246
423423
424424//#define input_ports_mac2 NULL
425425
426INPUT_PORTS_START( mac2 )
426static INPUT_PORTS_START( mac2 )
427427
428428INPUT_PORTS_END
429429
src/mess/drivers/nc.c
r1245r1246
11131113
11141114
11151115
1116INPUT_PORTS_START(nc100)
1116static INPUT_PORTS_START(nc100)
11171117   /* 0 */
11181118   PORT_START
11191119   PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("LEFT SHIFT") PORT_CODE(KEYCODE_LSHIFT)
r1245r1246
15821582ADDRESS_MAP_END
15831583
15841584
1585INPUT_PORTS_START(nc200)
1585static INPUT_PORTS_START(nc200)
15861586   /* 0 */
15871587   PORT_START
15881588   PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("LEFT SHIFT") PORT_CODE(KEYCODE_LSHIFT)
src/mess/drivers/adam.c
r1245r1246
223223ADDRESS_MAP_END
224224#endif
225225
226INPUT_PORTS_START( adam )
226static INPUT_PORTS_START( adam )
227227    PORT_START_TAG( "controller1_keypad1" )  /* IN0 */
228228    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Keypad 0") PORT_CODE(KEYCODE_0)         PORT_PLAYER(1)
229229    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P1 Keypad 1") PORT_CODE(KEYCODE_1)         PORT_PLAYER(1)
src/mess/drivers/cbmb.c
r1245r1246
384384   PORT_DIPSETTING(4, DEF_STR( On ) )\
385385
386386
387INPUT_PORTS_START (cbm600)
387static INPUT_PORTS_START (cbm600)
388388   PORT_START /* 0 */
389389   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("STOP RUN") PORT_CODE(KEYCODE_DEL)
390390   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("GRAPH NORM") PORT_CODE(KEYCODE_PGUP)
r1245r1246
392392   CBMB_KEYBOARD
393393INPUT_PORTS_END
394394
395INPUT_PORTS_START (cbm600pal)
395static INPUT_PORTS_START (cbm600pal)
396396   PORT_START /* 0 */
397397   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("STOP RUN") PORT_CODE(KEYCODE_DEL)
398398   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("GRAPH NORM") PORT_CODE(KEYCODE_HOME)
r1245r1246
400400   CBMB_KEYBOARD
401401INPUT_PORTS_END
402402
403INPUT_PORTS_START (cbm700)
403static INPUT_PORTS_START (cbm700)
404404   PORT_START /* 0 */
405405   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("STOP RUN") PORT_CODE(KEYCODE_DEL)
406406   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RVS OFF") PORT_CODE(KEYCODE_HOME)
r1245r1246
408408   CBMB_KEYBOARD
409409INPUT_PORTS_END
410410
411INPUT_PORTS_START (cbm500)
411static INPUT_PORTS_START (cbm500)
412412   PORT_START /* 0 */
413413   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("STOP RUN") PORT_CODE(KEYCODE_DEL)
414414   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RVS OFF") PORT_CODE(KEYCODE_HOME)
src/mess/drivers/sord.c
r1245r1246
504504}
505505
506506
507INPUT_PORTS_START(sord_m5)
507static INPUT_PORTS_START(sord_m5)
508508   /* line 0 */
509509   PORT_START
510510   PORT_BIT (0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL)
src/mess/drivers/mbee.c
r1245r1246
9191ADDRESS_MAP_END
9292
9393
94INPUT_PORTS_START( mbee )
94static INPUT_PORTS_START( mbee )
9595    PORT_START /* IN0 KEY ROW 0 [000] */
9696    PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("@") PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@')
9797    PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A')
src/mess/drivers/pokemini.c
r1245r1246
2222   AM_RANGE( 0x002100, 0x1FFFFF )  AM_ROM                     /* cartridge area */
2323ADDRESS_MAP_END
2424
25INPUT_PORTS_START( pokemini )
25static INPUT_PORTS_START( pokemini )
2626   PORT_START
2727   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_NAME("Button A")
2828   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_NAME("Button B")
src/mess/drivers/coco.c
r1245r1246
264264   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Left Button 2")  PORT_CODE(KEYCODE_DEL_PAD)   PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2)
265265INPUT_PORTS_END
266266
267INPUT_PORTS_START( cart_autostart )
267static INPUT_PORTS_START( cart_autostart )
268268   PORT_START_TAG("CARTAUTO")
269269   PORT_CONFNAME( 0x01, 0x01, "Cart Auto-Start" )
270270   PORT_CONFSETTING(0x00, DEF_STR( Off ))
r1245r1246
282282  PA1: 8   9   :   ;   ,   -   .   /
283283  PA0: 0   1   2   3   4   5   6   7
284284 */
285INPUT_PORTS_START( dragon32 )
285static INPUT_PORTS_START( dragon32 )
286286   PORT_START /* KEY ROW 0 */
287287   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_CHAR('0')
288288   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
r1245r1246
369369  PA1: H   I   J   K   L   M   N   O
370370  PA0: @   A   B   C   D   E   F   G
371371 */
372INPUT_PORTS_START( coco )
372static INPUT_PORTS_START( coco )
373373   PORT_START /* KEY ROW 0 */
374374   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@')
375375   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_CHAR('A')
r1245r1246
461461  PA1: H   I   J   K   L   M   N   O
462462  PA0: @   A   B   C   D   E   F   G
463463 */
464INPUT_PORTS_START( coco3 )
464static INPUT_PORTS_START( coco3 )
465465   PORT_START /* KEY ROW 0 */
466466   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@')
467467   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_CHAR('A')
src/mess/drivers/ti99_8.c
r1245r1246
195195
196196
197197/* ti99/8 : 54-key keyboard */
198INPUT_PORTS_START(ti99_8)
198static INPUT_PORTS_START(ti99_8)
199199
200200   /* 1 port for config */
201201   PORT_START   /* config */
src/mess/drivers/nes.c
r1245r1246
5454ADDRESS_MAP_END
5555
5656
57INPUT_PORTS_START( nes )
57static INPUT_PORTS_START( nes )
5858   PORT_START  /* IN0 */
5959   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P1 A") PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON1 )   PORT_CATEGORY(1) PORT_PLAYER(1)
6060   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P1 B") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON2 )   PORT_CATEGORY(1) PORT_PLAYER(1)
r1245r1246
140140   PORT_CONFSETTING(    0x00, DEF_STR(Yes) )
141141INPUT_PORTS_END
142142
143INPUT_PORTS_START( famicom )
143static INPUT_PORTS_START( famicom )
144144   PORT_START  /* IN0 */
145145   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P1 A") PORT_CODE(KEYCODE_LALT) PORT_CODE(JOYCODE_BUTTON1 )   PORT_CATEGORY(1) PORT_PLAYER(1)
146146   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P1 B") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON2 )   PORT_CATEGORY(1) PORT_PLAYER(1)
src/mess/drivers/pocketc.c
r1245r1246
236236   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("=") PORT_CODE(KEYCODE_ENTER_PAD)\
237237   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Reset") PORT_CODE(KEYCODE_F3)
238238
239INPUT_PORTS_START( pc1401 )
239static INPUT_PORTS_START( pc1401 )
240240    PC1401_HELPER1
241241   PORT_BIT ( 0x40, 0x0,    IPT_UNUSED )
242242    PC1401_HELPER2
r1245r1246
256256   PORT_DIPSETTING( 7, "7/High" )
257257INPUT_PORTS_END
258258
259INPUT_PORTS_START( pc1403 )
259static INPUT_PORTS_START( pc1403 )
260260    PC1401_HELPER1
261261   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("SML") PORT_CODE(KEYCODE_CAPSLOCK)
262262    PC1401_HELPER2
r1245r1246
278278INPUT_PORTS_END
279279
280280
281INPUT_PORTS_START( pc1251 )
281static INPUT_PORTS_START( pc1251 )
282282   PORT_START
283283    PORT_DIPNAME   ( 7, 0, "Mode")
284284   PORT_DIPSETTING( 4, DEF_STR(Off) )
r1245r1246
362362   PORT_DIPSETTING( 7, "7/High" )
363363INPUT_PORTS_END
364364
365INPUT_PORTS_START( pc1350 )
365static INPUT_PORTS_START( pc1350 )
366366   PORT_START
367367    PORT_DIPNAME (0x80, 0x00, "Power")
368368   PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
src/mess/drivers/mk1.c
r1245r1246
107107   AM_RANGE( 0xc, 0xf ) AM_READWRITE( f3853_r, f3853_w )
108108ADDRESS_MAP_END
109109
110INPUT_PORTS_START( mk1 )
110static INPUT_PORTS_START( mk1 )
111111   PORT_START   /* 0 */
112112   PORT_DIPNAME ( 0x01, 0x01, "Switch")
113113   PORT_DIPSETTING(  0, "L" )
src/mess/drivers/gb.c
r1245r1246
529529static GFXDECODE_START( gb_gfxdecodeinfo )
530530GFXDECODE_END
531531
532INPUT_PORTS_START( gameboy )
532static INPUT_PORTS_START( gameboy )
533533   PORT_START   /* IN0 */
534534   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT) PORT_NAME("Left")
535535   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_NAME("Right")
src/mess/drivers/z88.c
r1245r1246
623623-------------------------------------------------------------------------
624624*/
625625
626INPUT_PORTS_START(z88)
626static INPUT_PORTS_START(z88)
627627   /* 0 */
628628   PORT_START
629629   PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_BACKSPACE)
src/mess/drivers/concept.c
r1245r1246
8080MACHINE_DRIVER_END
8181
8282
83INPUT_PORTS_START( concept )
83static INPUT_PORTS_START( concept )
8484
8585   PORT_START   /* port 0: keys 0x00 through 0x0f */
8686      PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("(right)") PORT_CODE(KEYCODE_RIGHT)
src/mess/drivers/pcw16.c
r1245r1246
13801380   beep_set_frequency(0,3750);
13811381}
13821382
1383INPUT_PORTS_START(pcw16)
1383static INPUT_PORTS_START(pcw16)
13841384   PORT_START
13851385   /* vblank */
13861386   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_VBLANK)
src/mess/drivers/ti990_4.c
r1245r1246
322322#endif
323323}
324324
325INPUT_PORTS_START(ti990_4)
325static INPUT_PORTS_START(ti990_4)
326326#if VIDEO_911
327327   VDT911_KEY_PORTS
328328#else
src/mess/drivers/kim1.c
r1245r1246
8686   AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0xe000) AM_ROM
8787ADDRESS_MAP_END
8888
89INPUT_PORTS_START( kim1 )
89static INPUT_PORTS_START( kim1 )
9090   PORT_START         /* IN0 keys row 0 */
9191   PORT_BIT (0x80, 0x00, IPT_UNUSED )
9292   PORT_BIT(0x40, 0x40, IPT_KEYBOARD) PORT_NAME("0.6: 0") PORT_CODE(KEYCODE_0)
src/mess/drivers/glasgow.c
r1245r1246
728728     AM_RANGE( 0x0010000, 0x001FFFF)   AM_RAM      // 64KB
729729ADDRESS_MAP_END
730730 
731INPUT_PORTS_START( new_keyboard ) //Amsterdam, Dallas 32, Roma, Roma 32
731static INPUT_PORTS_START( new_keyboard ) //Amsterdam, Dallas 32, Roma, Roma 32
732732  PORT_START
733733  PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("A1")  PORT_CODE(KEYCODE_A )
734734  PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("B2")  PORT_CODE(KEYCODE_B )
r1245r1246
759759 
760760 
761761 
762INPUT_PORTS_START( old_keyboard )   //Glasgow,Dallas
762static INPUT_PORTS_START( old_keyboard )   //Glasgow,Dallas
763763  PORT_START
764764    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9")   PORT_CODE(KEYCODE_9 )
765765    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CL")  PORT_CODE(KEYCODE_F5 )
src/mess/drivers/msx.c
r1245r1246
339339  PORT_BIT (0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NUM ,") PORT_CODE(KEYCODE_ENTER_PAD)   \
340340  PORT_BIT (0x0080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NUM .") PORT_CODE(KEYCODE_DEL_PAD)
341341
342INPUT_PORTS_START( msx )
342static INPUT_PORTS_START( msx )
343343
344344 PORT_START /* 0 */
345345  KEYB_ROW0
r1245r1246
367367   PORT_INCLUDE( msx_dips )
368368INPUT_PORTS_END
369369
370INPUT_PORTS_START( msxuk )
370static INPUT_PORTS_START( msxuk )
371371
372372 PORT_START /* 0 */
373373  KEYB_ROW0
r1245r1246
442442  PORT_BIT (0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("a A") PORT_CODE(KEYCODE_A)      \
443443  PORT_BIT (0x0080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("b B") PORT_CODE(KEYCODE_B)
444444
445INPUT_PORTS_START( msxjp )
445static INPUT_PORTS_START( msxjp )
446446
447447 PORT_START /* 0 */
448448  KEYB_JAP_ROW0
r1245r1246
477477   PORT_INCLUDE( msx_dips )
478478INPUT_PORTS_END
479479
480INPUT_PORTS_START( msxkr )
480static INPUT_PORTS_START( msxkr )
481481
482482 PORT_START /* 0 */
483483  KEYB_JAP_ROW0
r1245r1246
512512   PORT_INCLUDE( msx_dips )
513513INPUT_PORTS_END
514514
515INPUT_PORTS_START( hotbit )
515static INPUT_PORTS_START( hotbit )
516516
517517 PORT_START /* 0 */
518518  KEYB_HOTBIT_ROW0
r1245r1246
547547  PORT_BIT (0x0800, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_EQUALS)   \
548548  PORT_BIT (0xf000, IP_ACTIVE_LOW, IPT_UNUSED)   \
549549
550INPUT_PORTS_START( expert11 )
550static INPUT_PORTS_START( expert11 )
551551
552552 PORT_START /* 0 */
553553  KEYB_EXPERT11_ROW0
r1245r1246
575575   PORT_INCLUDE( msx_dips )
576576INPUT_PORTS_END
577577
578INPUT_PORTS_START( expert10 )
578static INPUT_PORTS_START( expert10 )
579579
580580 PORT_START /* 0 */
581581  KEYB_ROW0
r1245r1246
603603   PORT_INCLUDE( msx_dips )
604604INPUT_PORTS_END
605605
606INPUT_PORTS_START( msx2 )
606static INPUT_PORTS_START( msx2 )
607607
608608 PORT_START /* 0 */
609609  KEYB_ROW0
r1245r1246
631631   PORT_INCLUDE( msx_dips )
632632INPUT_PORTS_END
633633
634INPUT_PORTS_START( msx2jp )
634static INPUT_PORTS_START( msx2jp )
635635
636636 PORT_START /* 0 */
637637  KEYB_JAP_ROW0
r1245r1246
666666   PORT_INCLUDE( msx_dips )
667667INPUT_PORTS_END
668668
669INPUT_PORTS_START( msx2kr )
669static INPUT_PORTS_START( msx2kr )
670670
671671 PORT_START /* 0 */
672672  KEYB_JAP_ROW0
src/mess/drivers/gamecom.c
r1245r1246
4141   gamecom_update_timers
4242};
4343
44INPUT_PORTS_START( gamecom )
44static INPUT_PORTS_START( gamecom )
4545   PORT_START
4646   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME( "Up" )
4747   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME( "Down" )
src/mess/drivers/tmc600.c
r1245r1246
174174
175175/* Input Ports */
176176
177INPUT_PORTS_START( tmc600 )
177static INPUT_PORTS_START( tmc600 )
178178   PORT_START_TAG("IN0")
179179   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CHAR('0')
180180   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_CHAR('1') PORT_CHAR('!')
src/mess/drivers/advision.c
r1245r1246
5151   AM_RANGE(COP400_PORT_D, COP400_PORT_D)    AM_WRITE(advision_putD)
5252ADDRESS_MAP_END
5353
54INPUT_PORTS_START( advision )
54static INPUT_PORTS_START( advision )
5555    PORT_START_TAG("joystick")      /* IN0 */
5656    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON4)       PORT_PLAYER(1)
5757    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON3)       PORT_PLAYER(1)
src/mess/drivers/mz700.c
r1245r1246
127127   AM_RANGE( 0xf0, 0xf0) AM_WRITE( mz800_palette_w )
128128ADDRESS_MAP_END
129129
130INPUT_PORTS_START( mz700 )
130static INPUT_PORTS_START( mz700 )
131131   PORT_START /* status */
132132   PORT_BIT(0x80, 0x80, IPT_VBLANK)
133133   PORT_BIT(0x7f, 0x00, IPT_UNUSED)
src/mess/drivers/vectrex.c
r1245r1246
2323   AM_RANGE( 0xe000, 0xffff) AM_ROM
2424ADDRESS_MAP_END
2525
26INPUT_PORTS_START( vectrex )
26static INPUT_PORTS_START( vectrex )
2727   PORT_START
2828   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_PLAYER(1)
2929   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_PLAYER(1)
r1245r1246
192192   AM_RANGE( 0xe000, 0xffff) AM_ROM
193193ADDRESS_MAP_END
194194
195INPUT_PORTS_START( raaspec )
195static INPUT_PORTS_START( raaspec )
196196   PORT_START
197197    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
198198   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
src/mess/drivers/aim65.c
r1245r1246
5959******************************************************************************/
6060
6161
62INPUT_PORTS_START( aim65 )
62static INPUT_PORTS_START( aim65 )
6363   PORT_START_TAG("keyboard_0")
6464   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space")       PORT_CODE(KEYCODE_SPACE)      PORT_CHAR(32)
6565   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED)
src/mess/drivers/tm990189.c
r1245r1246
892892#define JOYSTICK_DELTA         10
893893#define JOYSTICK_SENSITIVITY   100
894894
895INPUT_PORTS_START(tm990_189)
895static INPUT_PORTS_START(tm990_189)
896896
897897   /* 45-key calculator-like alphanumeric keyboard... */
898898
src/mess/drivers/arcadia.c
r1245r1246
3939     7  8  9
4040    Cl  0 En                                                                  */
4141
42INPUT_PORTS_START( arcadia )
42static INPUT_PORTS_START( arcadia )
4343   PORT_START_TAG("panel")
4444   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Start")           PORT_CODE(KEYCODE_S)
4545   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Option")          PORT_CODE(KEYCODE_O)
r1245r1246
166166     7  8  9
167167    10 11 12                                                                           */
168168
169INPUT_PORTS_START( vcg )
169static INPUT_PORTS_START( vcg )
170170   PORT_START_TAG("panel")
171171   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Start")        PORT_CODE(KEYCODE_S)
172172   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Selector A")   PORT_CODE(KEYCODE_A)
src/mess/drivers/dc.c
r1245r1246
4545   AM_RANGE(0x00000000, 0x001fffff) AM_RAM      /* shared with SH-4 */
4646ADDRESS_MAP_END
4747
48INPUT_PORTS_START( dc )
48static INPUT_PORTS_START( dc )
4949INPUT_PORTS_END
5050
5151static MACHINE_DRIVER_START( dc )
src/mess/drivers/thomson.c
r1245r1246
139139  available on the TO7(/70), TO9 and MO5.
140140*/
141141
142INPUT_PORTS_START( thom_game_port )
142static INPUT_PORTS_START( thom_game_port )
143143
144144/* joysticks, common to CM 90-112 & SX 90-018 */
145145     PORT_START_TAG ( "game_port_directions" )
r1245r1246
187187
188188/* ------------ lightpen ------------ */
189189
190INPUT_PORTS_START( thom_lightpen )
190static INPUT_PORTS_START( thom_lightpen )
191191
192192     PORT_START_TAG ( "lightpen_x" )
193193     PORT_BIT ( 0xffff, THOM_TOTAL_WIDTH/2, IPT_LIGHTGUN_X )
r1245r1246
542542
543543/* ------------ inputs   ------------ */
544544
545INPUT_PORTS_START ( to7_config )
545static INPUT_PORTS_START ( to7_config )
546546     PORT_START_TAG ( "config" )
547547
548548     PORT_CONFNAME ( 0x01, 0x00, "Game Port" )
r1245r1246
551551
552552INPUT_PORTS_END
553553
554INPUT_PORTS_START ( to7_vconfig )
554static INPUT_PORTS_START ( to7_vconfig )
555555     PORT_START_TAG ( "vconfig" )
556556
557557     PORT_CONFNAME ( 0x03, 0x00, "Border" )
r1245r1246
566566
567567INPUT_PORTS_END
568568
569INPUT_PORTS_START ( to7_mconfig )
569static INPUT_PORTS_START ( to7_mconfig )
570570     PORT_START_TAG ( "mconfig" )
571571
572572     PORT_CONFNAME ( 0x01, 0x01, "E7FE-F port" )
r1245r1246
575575
576576INPUT_PORTS_END
577577
578INPUT_PORTS_START ( to7_fconfig )
578static INPUT_PORTS_START ( to7_fconfig )
579579     PORT_START_TAG ( "fconfig" )
580580
581581     PORT_CONFNAME ( 0x07, 0x03, "Floppy (reset)" )
r1245r1246
623623INPUT_PORTS_END
624624
625625
626INPUT_PORTS_START ( to7_keyboard )
626static INPUT_PORTS_START ( to7_keyboard )
627627     PORT_START_TAG ( "keyboard_0" )
628628     KEY ( 0, "Shift", LSHIFT ) PORT_CODE ( KEYCODE_RSHIFT ) PORT_CHAR(UCHAR_SHIFT_1)
629629     PORT_BIT  ( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED )
r1245r1246
697697
698698INPUT_PORTS_END
699699
700INPUT_PORTS_START ( to7 )
700static INPUT_PORTS_START ( to7 )
701701     PORT_INCLUDE ( thom_lightpen )
702702     PORT_INCLUDE ( thom_game_port )
703703     PORT_INCLUDE ( to7_keyboard )
r1245r1246
707707     PORT_INCLUDE ( to7_mconfig )
708708INPUT_PORTS_END
709709
710INPUT_PORTS_START ( t9000 )
710static INPUT_PORTS_START ( t9000 )
711711     PORT_INCLUDE ( to7 )
712712INPUT_PORTS_END
713713
r1245r1246
895895
896896/* ------------ inputs   ------------ */
897897
898INPUT_PORTS_START ( to770 )
898static INPUT_PORTS_START ( to770 )
899899     PORT_INCLUDE ( to7 )
900900
901901     PORT_MODIFY ( "keyboard_1" )
r1245r1246
913913INPUT_PORTS_END
914914
915915/* arabic version (QWERTY keyboard) */
916INPUT_PORTS_START ( to770a )
916static INPUT_PORTS_START ( to770a )
917917     PORT_INCLUDE ( to770 )
918918
919919     PORT_MODIFY ( "keyboard_1" )
r1245r1246
10971097
10981098/* ------------ inputs  ------------ */
10991099
1100INPUT_PORTS_START ( mo5 )
1100static INPUT_PORTS_START ( mo5 )
11011101     PORT_INCLUDE ( to770 )
11021102
11031103     PORT_MODIFY ( "keyboard_0" )
r1245r1246
11071107INPUT_PORTS_END
11081108
11091109/* QWERTY version */
1110INPUT_PORTS_START ( mo5e )
1110static INPUT_PORTS_START ( mo5e )
11111111     PORT_INCLUDE ( mo5 )
11121112
11131113     PORT_MODIFY ( "keyboard_1" )
r1245r1246
13411341
13421342/* ------------ inputs   ------------ */
13431343
1344INPUT_PORTS_START ( to9_keyboard )
1344static INPUT_PORTS_START ( to9_keyboard )
13451345     PORT_START_TAG ( "keyboard_0" )
13461346     KEY ( 0, "F2 F7", F2 )           PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_CHAR(UCHAR_MAMEKEY(F7))
13471347     KEY ( 1, "_ 6", 6 )              PORT_CHAR('_') PORT_CHAR('6')
r1245r1246
14341434     KEY ( 7, "> <", BACKSLASH2 )     PORT_CHAR('>') PORT_CHAR('<')
14351435INPUT_PORTS_END
14361436
1437INPUT_PORTS_START ( to9_fconfig )
1437static INPUT_PORTS_START ( to9_fconfig )
14381438     PORT_START_TAG ( "fconfig" )
14391439
14401440     PORT_CONFNAME ( 0x07, 0x00, "External floppy (reset)" )
r1245r1246
14811481
14821482INPUT_PORTS_END
14831483
1484INPUT_PORTS_START ( to9 )
1484static INPUT_PORTS_START ( to9 )
14851485     PORT_INCLUDE ( thom_lightpen )
14861486     PORT_INCLUDE ( thom_game_port )
14871487     PORT_INCLUDE ( to9_keyboard )
r1245r1246
16951695
16961696/* ------------ inputs   ------------ */
16971697
1698INPUT_PORTS_START ( to8_config )
1698static INPUT_PORTS_START ( to8_config )
16991699     PORT_START_TAG ( "config" )
17001700
17011701     PORT_CONFNAME ( 0x01, 0x00, "Game Port" )
r1245r1246
17091709INPUT_PORTS_END
17101710
17111711
1712INPUT_PORTS_START ( to8 )
1712static INPUT_PORTS_START ( to8 )
17131713     PORT_INCLUDE ( thom_lightpen )
17141714     PORT_INCLUDE ( thom_game_port )
17151715     PORT_INCLUDE ( to9_keyboard )
r1245r1246
17201720INPUT_PORTS_END
17211721
17221722
1723INPUT_PORTS_START ( to8d )
1723static INPUT_PORTS_START ( to8d )
17241724     PORT_INCLUDE ( to8 )
17251725INPUT_PORTS_END
17261726
r1245r1246
18771877
18781878/* ------------ inputs   ------------ */
18791879
1880INPUT_PORTS_START ( to9p )
1880static INPUT_PORTS_START ( to9p )
18811881     PORT_INCLUDE ( thom_lightpen )
18821882     PORT_INCLUDE ( thom_game_port )
18831883     PORT_INCLUDE ( to9_keyboard )
r1245r1246
20802080
20812081/* ------------ inputs   ------------ */
20822082
2083INPUT_PORTS_START ( mo6_keyboard )
2083static INPUT_PORTS_START ( mo6_keyboard )
20842084
20852085     PORT_START_TAG ( "keyboard_0" )
20862086     KEY ( 0, "N", N )                   PORT_CHAR('N')
r1245r1246
21682168INPUT_PORTS_END
21692169
21702170/* QWERTY version */
2171INPUT_PORTS_START ( pro128_keyboard )
2171static INPUT_PORTS_START ( pro128_keyboard )
21722172     PORT_INCLUDE ( mo6_keyboard )
21732173
21742174     PORT_MODIFY ( "keyboard_0" )
r1245r1246
22132213INPUT_PORTS_END
22142214
22152215
2216INPUT_PORTS_START ( mo6 )
2216static INPUT_PORTS_START ( mo6 )
22172217     PORT_INCLUDE ( thom_lightpen )
22182218     PORT_INCLUDE ( thom_game_port )
22192219     PORT_INCLUDE ( mo6_keyboard )
r1245r1246
22222222     PORT_INCLUDE ( to7_vconfig )
22232223INPUT_PORTS_END
22242224
2225INPUT_PORTS_START ( pro128 )
2225static INPUT_PORTS_START ( pro128 )
22262226     PORT_INCLUDE ( thom_lightpen )
22272227     PORT_INCLUDE ( thom_game_port )
22282228     PORT_INCLUDE ( pro128_keyboard )
r1245r1246
23742374
23752375/* ------------ inputs   ------------ */
23762376
2377INPUT_PORTS_START ( mo5nr_keyboard )
2377static INPUT_PORTS_START ( mo5nr_keyboard )
23782378
23792379     PORT_START_TAG ( "keyboard_0" )
23802380     KEY ( 0, "N", N )                   PORT_CHAR('N')
r1245r1246
24552455
24562456INPUT_PORTS_END
24572457
2458INPUT_PORTS_START ( mo5nr )
2458static INPUT_PORTS_START ( mo5nr )
24592459     PORT_INCLUDE ( thom_lightpen )
24602460     PORT_INCLUDE ( thom_game_port )
24612461     PORT_INCLUDE ( mo5nr_keyboard )
src/mess/drivers/lisa.c
r1245r1246
9090MACHINE_DRIVER_END
9191
9292
93INPUT_PORTS_START( lisa )
93static INPUT_PORTS_START( lisa )
9494   PORT_START /* Mouse - X AXIS */
9595   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1)
9696
src/mess/drivers/sym1.c
r1245r1246
4646******************************************************************************/
4747
4848
49INPUT_PORTS_START( sym1 )
49static INPUT_PORTS_START( sym1 )
5050   PORT_START         /* IN0 */
5151   PORT_BIT(0x01, 0x01, IPT_KEYBOARD) PORT_NAME("0     USR0") PORT_CODE(KEYCODE_0)
5252   PORT_BIT(0x02, 0x02, IPT_KEYBOARD) PORT_NAME("4     USR4") PORT_CODE(KEYCODE_4)
src/mess/drivers/lynx.c
r1245r1246
3232   AM_RANGE(0xfffa, 0xffff) AM_READWRITE( MRA8_BANK4, MWA8_RAM ) AM_BASE(&lynx_mem_fffa)
3333ADDRESS_MAP_END
3434
35INPUT_PORTS_START( lynx )
35static INPUT_PORTS_START( lynx )
3636   PORT_START
3737   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("A")
3838   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("B")
src/mess/drivers/aquarius.c
r1245r1246
118118
119119/* Keyboard input */
120120
121INPUT_PORTS_START (aquarius)
121static INPUT_PORTS_START (aquarius)
122122   PORT_START   /* 0: count = 0 */
123123   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("=     + NEXT") PORT_CODE(KEYCODE_EQUALS)
124124   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del   \\") PORT_CODE(KEYCODE_BACKSPACE)
src/mess/drivers/cgenie.c
r1245r1246
6363   AM_RANGE(0xff, 0xff) AM_READWRITE( cgenie_port_ff_r, cgenie_port_ff_w )
6464ADDRESS_MAP_END
6565
66INPUT_PORTS_START( cgenie )
66static INPUT_PORTS_START( cgenie )
6767   PORT_START /* IN0 */
6868   PORT_DIPNAME(     0x80, 0x80, "Floppy Disc Drives")
6969   PORT_DIPSETTING(   0x00, DEF_STR( Off ) )
src/mess/drivers/pmd85.c
r1245r1246
420420         PORT_CONFSETTING( 0x00, "Tape" )      \
421421         PORT_CONFSETTING( 0x02, "V.24" )
422422
423INPUT_PORTS_START (pmd85)
423static INPUT_PORTS_START (pmd85)
424424   PMD85_KEYBOARD_MAIN
425425   PMD85_KEYBOARD_RESET
426426   PMD85_DIPSWITCHES
427427INPUT_PORTS_END
428428
429INPUT_PORTS_START (alfa)
429static INPUT_PORTS_START (alfa)
430430   PMD85_KEYBOARD_MAIN
431431   PMD85_KEYBOARD_RESET
432432   ALFA_DIPSWITCHES
433433INPUT_PORTS_END
434434
435INPUT_PORTS_START (mato)
435static INPUT_PORTS_START (mato)
436436   PORT_START /* port 0x00 */
437437      PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
438438      PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"')
src/mess/drivers/abc80.c
r1245r1246
269269
270270/* Input Ports */
271271
272INPUT_PORTS_START( abc80 )
272static INPUT_PORTS_START( abc80 )
273273   PORT_START_TAG("ROW0")
274274   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
275275   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"')
src/mess/drivers/apexc.c
r1245r1246
266266};
267267
268268/* fake input ports with keyboard keys */
269INPUT_PORTS_START(apexc)
269static INPUT_PORTS_START(apexc)
270270
271271   PORT_START   /* 0 : panel control */
272272   PORT_BIT(panel_run, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Run/Stop") PORT_CODE(KEYCODE_ENTER)
src/mess/drivers/x68k.c
r1245r1246
15651565   x68k_rtc_alarm_irq
15661566};
15671567
1568INPUT_PORTS_START( x68000 )
1568static INPUT_PORTS_START( x68000 )
15691569   PORT_START_TAG( "joy1" )
15701570   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_CODE(JOYCODE_Y_UP_SWITCH)    PORT_PLAYER(1)
15711571   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN) PORT_CODE(JOYCODE_Y_DOWN_SWITCH)    PORT_PLAYER(1)
src/mess/drivers/spectrum.c
r1245r1246
17841784   GFXDECODE_ENTRY( 0, 0x0, spectrum_charlayout, 0, 0x80 )
17851785GFXDECODE_END
17861786
1787INPUT_PORTS_START( spectrum )
1787static INPUT_PORTS_START( spectrum )
17881788   PORT_START /* [0] 0xFEFE */
17891789   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPS SHIFT") PORT_CODE(KEYCODE_LSHIFT)
17901790   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z  COPY    :      LN       BEEP") PORT_CODE(KEYCODE_Z)
src/mess/drivers/mpf1.c
r1245r1246
215215#define KEY_UNUSED( bit ) \
216216   PORT_BIT( bit, IP_ACTIVE_LOW, IPT_UNUSED )
217217
218INPUT_PORTS_START( mpf1 )
218static INPUT_PORTS_START( mpf1 )
219219   PORT_START   // column 0
220220   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 HL") PORT_CODE(KEYCODE_3)
221221   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 HL'") PORT_CODE(KEYCODE_7)
r1245r1246
291291   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INTR") PORT_CODE(KEYCODE_I)   // causes INT
292292INPUT_PORTS_END
293293
294INPUT_PORTS_START( mpf1b )
294static INPUT_PORTS_START( mpf1b )
295295   PORT_START   // column 0
296296   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 /") PORT_CODE(KEYCODE_3)
297297   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 >") PORT_CODE(KEYCODE_7)
src/mess/drivers/astrocde.c
r1245r1246
8484   AM_RANGE(0x19, 0x19) AM_MIRROR(0xff00) AM_WRITE(astrocade_magic_expand_color_w)
8585ADDRESS_MAP_END
8686
87INPUT_PORTS_START( astrocde )
87static INPUT_PORTS_START( astrocde )
8888   PORT_START /* IN0 */   /* Player 1 Handle */
8989    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_PLAYER(1) PORT_8WAY
9090    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_PLAYER(1) PORT_8WAY
src/mess/drivers/kaypro.c
r1245r1246
6565 * terminal to alert the user in case of a BEL.
6666 */
6767
68INPUT_PORTS_START( kaypro )
68static INPUT_PORTS_START( kaypro )
6969    PORT_START /* IN0 */
7070    PORT_BIT(0xff, 0xff, IPT_UNUSED)
7171
src/mess/drivers/n64.c
r1245r1246
3636   AM_RANGE(0x04001000, 0x04001fff) AM_RAM AM_BASE(&rsp_imem) AM_SHARE(2)
3737ADDRESS_MAP_END
3838
39INPUT_PORTS_START( n64 )
39static INPUT_PORTS_START( n64 )
4040   PORT_START_TAG("P1")
4141      PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 )        PORT_PLAYER(1) PORT_NAME("Button A")
4242      PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON2 )        PORT_PLAYER(1) PORT_NAME("Button B")
src/mess/drivers/atarist.c
r1245r1246
10561056
10571057/* Input Ports */
10581058
1059INPUT_PORTS_START( ikbd )
1059static INPUT_PORTS_START( ikbd )
10601060   PORT_START_TAG("P31")
10611061   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Control") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL))
10621062   PORT_BIT( 0xef, IP_ACTIVE_LOW, IPT_UNUSED )
r1245r1246
11871187   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad Enter") PORT_CODE(KEYCODE_ENTER_PAD)
11881188INPUT_PORTS_END
11891189
1190INPUT_PORTS_START( atarist )
1190static INPUT_PORTS_START( atarist )
11911191   PORT_START_TAG("config")
11921192   PORT_CONFNAME( 0x01, 0x00, "Input Port 0 Device")
11931193   PORT_CONFSETTING( 0x00, "Mouse" )
r1245r1246
12201220   PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(5) PORT_MINMAX(0, 255) PORT_PLAYER(1)   
12211221INPUT_PORTS_END
12221222
1223INPUT_PORTS_START( atariste )
1223static INPUT_PORTS_START( atariste )
12241224   PORT_START_TAG("config")
12251225   PORT_CONFNAME( 0x01, 0x00, "Input Port 0 Device")
12261226   PORT_CONFSETTING( 0x00, "Mouse" )
r1245r1246
12751275   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(1)
12761276INPUT_PORTS_END
12771277
1278INPUT_PORTS_START( stbook )
1278static INPUT_PORTS_START( stbook )
12791279   PORT_START_TAG("SW400")
12801280   PORT_DIPNAME( 0x80, 0x80, "DMA sound hardware")
12811281   PORT_DIPSETTING( 0x00, DEF_STR( No ) )
src/mess/drivers/geneve.c
r1245r1246
250250*/
251251
252252/* 101-key PC XT keyboard + TI joysticks */
253INPUT_PORTS_START(geneve)
253static INPUT_PORTS_START(geneve)
254254
255255   PORT_START   /* config */
256256      PORT_BIT( config_speech_mask << config_speech_bit, 1 << config_speech_bit, IPT_DIPSWITCH_NAME) PORT_NAME("Speech synthesis")
src/mess/drivers/sg1000.c
r1245r1246
127127
128128/* Input Ports */
129129
130INPUT_PORTS_START( tvdraw )
130static INPUT_PORTS_START( tvdraw )
131131   PORT_START_TAG("TVDRAW_X")
132132   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1)
133133
r1245r1246
138138   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Pen")
139139INPUT_PORTS_END
140140
141INPUT_PORTS_START( sg1000 )
141static INPUT_PORTS_START( sg1000 )
142142   PORT_START_TAG("PA7")
143143   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
144144   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
r1245r1246
162162   PORT_INCLUDE( tvdraw )
163163INPUT_PORTS_END
164164
165INPUT_PORTS_START( sk1100 )
165static INPUT_PORTS_START( sk1100 )
166166   PORT_START_TAG("PA0")
167167   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
168168   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_CHAR('Q')
r1245r1246
284284   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("RESET") PORT_CODE(KEYCODE_F10)
285285INPUT_PORTS_END
286286
287INPUT_PORTS_START( sc3000 )
287static INPUT_PORTS_START( sc3000 )
288288   PORT_INCLUDE( sk1100 )
289289   PORT_INCLUDE( tvdraw )
290290INPUT_PORTS_END
291291
292INPUT_PORTS_START( sf7000 )
292static INPUT_PORTS_START( sf7000 )
293293   PORT_INCLUDE( sk1100 )
294294
295295   PORT_START_TAG("BAUD")
src/mess/drivers/ip22.c
r1245r1246
14561456   nIOC_ParReadCnt = 0;
14571457}
14581458
1459INPUT_PORTS_START( ip225015 )
1459static INPUT_PORTS_START( ip225015 )
14601460   PORT_START   // unused IN0
14611461   PORT_START   // unused IN1
14621462   PORT_START   // unused IN2
src/mess/drivers/c128.c
r1245r1246
441441   PORT_BIT(0x0002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Special (RighYt-Shift CRSR-DOWN) CRSR-UP") PORT_CODE(KEYCODE_8_PAD)\
442442   PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Special (Right-Shift CRSR-RIGHT) CRSR-LEFT") PORT_CODE(KEYCODE_4_PAD)\
443443
444INPUT_PORTS_START (c128)
444static INPUT_PORTS_START (c128)
445445    C64_DIPS
446446    C128_DIPS
447447    PORT_START
r1245r1246
538538    DIPS_KEYS_BOTH
539539INPUT_PORTS_END
540540
541INPUT_PORTS_START (c128ger)
541static INPUT_PORTS_START (c128ger)
542542    C64_DIPS
543543    C128_DIPS
544544    PORT_START
r1245r1246
635635    DIPS_KEYS_BOTH
636636INPUT_PORTS_END
637637
638INPUT_PORTS_START (c128fra)
638static INPUT_PORTS_START (c128fra)
639639    C64_DIPS
640640    C128_DIPS
641641    PORT_START
r1245r1246
732732    DIPS_KEYS_BOTH
733733INPUT_PORTS_END
734734
735INPUT_PORTS_START (c128ita)
735static INPUT_PORTS_START (c128ita)
736736    C64_DIPS
737737    C128_DIPS
738738    PORT_START
r1245r1246
829829    DIPS_KEYS_BOTH
830830INPUT_PORTS_END
831831
832INPUT_PORTS_START (c128swe)
832static INPUT_PORTS_START (c128swe)
833833    C64_DIPS
834834    C128_DIPS
835835    PORT_START
src/mess/drivers/lviv.c
r1245r1246
311311
312312
313313/* keyboard input */
314INPUT_PORTS_START (lviv)
314static INPUT_PORTS_START (lviv)
315315   PORT_START /* 2nd PPI port A bit 0 low */
316316      PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6  &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&')
317317      PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7  '") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'')
src/mess/drivers/exidy.c
r1245r1246
660660   AM_RANGE(0xff, 0xff) AM_READWRITE( exidy_ff_port_r, exidy_ff_port_w )
661661ADDRESS_MAP_END
662662
663INPUT_PORTS_START(exidy)
663static INPUT_PORTS_START(exidy)
664664   PORT_START
665665   /* vblank */
666666   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK)
src/mess/drivers/pc8801.c
r1245r1246
209209
210210
211211
212INPUT_PORTS_START( pc88sr )
212static INPUT_PORTS_START( pc88sr )
213213   /* [0] */
214214   PORT_START
215215   PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("pad 0") PORT_CODE(KEYCODE_0_PAD) PORT_CHAR(UCHAR_MAMEKEY(0_PAD))
src/mess/drivers/p2000t.c
r1245r1246
103103
104104/* Keyboard input */
105105
106INPUT_PORTS_START (p2000t)
106static INPUT_PORTS_START (p2000t)
107107   PORT_START
108108   PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT)
109109   PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6)
src/mess/drivers/pet.c
r1245r1246
406406   PORT_DIPSETTING(0x80, DEF_STR( On ) )\
407407
408408
409INPUT_PORTS_START (pet)
409static INPUT_PORTS_START (pet)
410410   PET_KEYBOARD
411411    PORT_START /* 11 - used to be 5 */
412412    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
425425   PORT_DIPSETTING(  1, DEF_STR( Yes ) )
426426INPUT_PORTS_END
427427
428INPUT_PORTS_START (petb)
428static INPUT_PORTS_START (petb)
429429   PET_B_KEYBOARD
430430    PORT_START   /* 11 - used to be 5 */
431431    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
439439   PORT_DIPSETTING(  1, DEF_STR( Yes ) )
440440INPUT_PORTS_END
441441
442INPUT_PORTS_START (cbm8096)
442static INPUT_PORTS_START (cbm8096)
443443   PET_B_KEYBOARD
444444    PORT_START   /* 11 - used to be 5 */
445445    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
455455   PORT_DIPSETTING(  1, DEF_STR( Yes ) )
456456INPUT_PORTS_END
457457
458INPUT_PORTS_START (superpet)
458static INPUT_PORTS_START (superpet)
459459   PET_B_KEYBOARD
460460    PORT_START   /* 11 - used to be 5 */
461461    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
src/mess/drivers/a2600.c
r1245r1246
17841784}
17851785
17861786
1787INPUT_PORTS_START( a2600 )
1787static INPUT_PORTS_START( a2600 )
17881788
17891789   PORT_START /* [0] */
17901790   PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_SENSITIVITY(40) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_MINMAX(0,255) PORT_CATEGORY(11) PORT_PLAYER(1) PORT_REVERSE
src/mess/drivers/studio2.c
r1245r1246
149149
150150/* Input Ports */
151151
152INPUT_PORTS_START( studio2 )
152static INPUT_PORTS_START( studio2 )
153153   PORT_START
154154   PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_X)
155155   PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 1") PORT_CODE(KEYCODE_1)
src/mess/drivers/pcw.c
r1245r1246
794794      &3FF0  &3FF1  &3FF2  &3FF3  &3FF4  &3FF5  &3FF6  &3FF7  &3FF8  &3FF9  &3FFA
795795*/
796796
797INPUT_PORTS_START(pcw)
797static INPUT_PORTS_START(pcw)
798798   /* keyboard "ports". These are poked automatically into the PCW address space */
799799
800800   /* 0x03ff0 */
src/mess/drivers/mk2.c
r1245r1246
5151   AM_RANGE( 0x1000, 0x1fff) AM_ROM
5252ADDRESS_MAP_END
5353
54INPUT_PORTS_START( mk2 )
54static INPUT_PORTS_START( mk2 )
5555   PORT_START
5656PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("NEW GAME") PORT_CODE(KEYCODE_F3) // seams to be direct wired to reset
5757   PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_F1)
src/mess/drivers/c16.c
r1245r1246
442442   PORT_DIPSETTING(0x10, DEF_STR( On ) )
443443INPUT_PORTS_END
444444
445INPUT_PORTS_START (c16)
445static INPUT_PORTS_START (c16)
446446   PORT_INCLUDE( ports_both )
447447   PORT_START
448448   PORT_BIT (0xc0, 0x0, IPT_UNUSED)         /* no real floppy */
r1245r1246
465465   PORT_BIT (0xc, 0x0, IPT_UNUSED)       /* c16 */
466466INPUT_PORTS_END
467467
468INPUT_PORTS_START (c16c)
468static INPUT_PORTS_START (c16c)
469469   PORT_INCLUDE( ports_both )
470470   PORT_START
471471   PORT_BIT (0xc0, 0x40, IPT_UNUSED)         /* c1551 floppy */
r1245r1246
482482   PORT_BIT (0xc, 0x0, IPT_UNUSED)       /* c16 */
483483INPUT_PORTS_END
484484
485INPUT_PORTS_START (c16v)
485static INPUT_PORTS_START (c16v)
486486   PORT_INCLUDE( ports_both )
487487   PORT_START
488488   PORT_BIT (0xc0, 0x80, IPT_UNUSED)         /* vc1541 floppy */
r1245r1246
499499   PORT_BIT (0xc, 0x0, IPT_UNUSED)       /* c16 */
500500INPUT_PORTS_END
501501
502INPUT_PORTS_START (plus4)
502static INPUT_PORTS_START (plus4)
503503   PORT_INCLUDE( ports_both )
504504   PORT_START
505505   PORT_BIT (0xc0, 0x00, IPT_UNUSED)         /* no real floppy */
r1245r1246
522522   PORT_BIT (0xc, 0x4, IPT_UNUSED)       /* plus4 */
523523INPUT_PORTS_END
524524
525INPUT_PORTS_START (plus4c)
525static INPUT_PORTS_START (plus4c)
526526   PORT_INCLUDE( ports_both )
527527   PORT_START
528528   PORT_BIT (0xc0, 0x40, IPT_UNUSED)         /* c1551 floppy */
r1245r1246
539539   PORT_BIT (0xc, 0x4, IPT_UNUSED)       /* plus4 */
540540INPUT_PORTS_END
541541
542INPUT_PORTS_START (plus4v)
542static INPUT_PORTS_START (plus4v)
543543   PORT_INCLUDE( ports_both )
544544   PORT_START
545545   PORT_BIT (0xc0, 0x80, IPT_UNUSED)         /* vc1541 floppy */
r1245r1246
557557INPUT_PORTS_END
558558
559559#if 0
560INPUT_PORTS_START (c364)
560static INPUT_PORTS_START (c364)
561561   PORT_INCLUDE( ports_both )
562562   PORT_START
563563   PORT_BIT (0xc0, 0x00, IPT_UNUSED)         /* no real floppy */
src/mess/drivers/osi.c
r1245r1246
4545
4646/* Input Ports */
4747
48INPUT_PORTS_START( sb2m600 )
48static INPUT_PORTS_START( sb2m600 )
4949   PORT_START_TAG("ROW0")
5050   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT LOCK") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) PORT_TOGGLE
5151   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("RIGHT SHIFT") PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
r1245r1246
127127   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
128128INPUT_PORTS_END
129129
130INPUT_PORTS_START( uk101 )
130static INPUT_PORTS_START( uk101 )
131131   PORT_INCLUDE(sb2m600)
132132
133133   PORT_MODIFY("ROW0")
src/mess/drivers/oric.c
r1245r1246
330330   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("L (EHL)") PORT_CODE(KEYCODE_L) \
331331   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("8 (") PORT_CODE(KEYCODE_8)
332332
333INPUT_PORTS_START(oric)
333static INPUT_PORTS_START(oric)
334334   INPUT_PORT_ORIC
335335   PORT_START_TAG("oric_floppy_interface")
336336   /* floppy interface  */
r1245r1246
350350   PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_VBLANK)
351351INPUT_PORTS_END
352352
353INPUT_PORTS_START(orica)
353static INPUT_PORTS_START(orica)
354354   INPUT_PORT_ORICA
355355   PORT_START_TAG("oric_floppy_interface")
356356   /* floppy interface  */
r1245r1246
370370   PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_VBLANK)
371371INPUT_PORTS_END
372372
373INPUT_PORTS_START(prav8d)
373static INPUT_PORTS_START(prav8d)
374374   INPUT_PORT_PRAV8D
375375   /* force apple2 disc interface for pravetz */
376376   PORT_START
r1245r1246
384384   PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_VBLANK)
385385INPUT_PORTS_END
386386
387INPUT_PORTS_START(telstrat)
387static INPUT_PORTS_START(telstrat)
388388   INPUT_PORT_ORICA
389389   PORT_START
390390   /* vsync cable hardware. This is a simple cable connected to the video output
src/mess/drivers/enterp.c
r1245r1246
401401*/
402402
403403
404INPUT_PORTS_START( ep128 )
404static INPUT_PORTS_START( ep128 )
405405   /* keyboard line 0 */
406406    PORT_START
407407    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("n") PORT_CODE(KEYCODE_N)
src/mess/drivers/mc10.c
r1245r1246
5757 */
5858
5959/*  Port                                        Key description                 Emulated key                  Natural key     Shift 1         Shift 2 (Ctrl) */
60INPUT_PORTS_START( mc10 )
60static INPUT_PORTS_START( mc10 )
6161   PORT_START /* KEY ROW 0 */
6262   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("@     INPUT")        PORT_CODE(KEYCODE_OPENBRACE)  PORT_CHAR('@')
6363   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A     \xE2\x86\x90") PORT_CODE(KEYCODE_A)          PORT_CHAR('A')  PORT_CHAR('~')  PORT_CHAR(UCHAR_MAMEKEY(LEFT))
r1245r1246
129129
130130/* Alice uses an AZERTY keyboard */
131131/*  Port                                        Key description                 Emulated key                  Natural key     Shift 1         Shift 2 (Ctrl) */
132INPUT_PORTS_START( alice )
132static INPUT_PORTS_START( alice )
133133   PORT_START /* KEY ROW 0 */
134134   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("@     INPUT")        PORT_CODE(KEYCODE_OPENBRACE)  PORT_CHAR('@')
135135   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q     \xE2\x86\x90") PORT_CODE(KEYCODE_A)          PORT_CHAR('Q')  PORT_CHAR('~')  PORT_CHAR(UCHAR_MAMEKEY(LEFT))
src/mess/drivers/atom.c
r1245r1246
114114
115115/* not implemented: BREAK */
116116
117INPUT_PORTS_START (atom)
117static INPUT_PORTS_START (atom)
118118   PORT_START /* 0 VBLANK */
119119    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
120120
src/mess/drivers/mekd2.c
r1245r1246
107107   AM_RANGE(0xe000, 0xe3ff) AM_ROM AM_MIRROR(0x1c00)   /* JBUG ROM */
108108ADDRESS_MAP_END
109109
110INPUT_PORTS_START( mekd2 )
110static INPUT_PORTS_START( mekd2 )
111111   PORT_START         /* IN0 keys row 0 */
112112INPUT_PORTS_END
113113
src/mess/drivers/at.c
r1245r1246
230230ADDRESS_MAP_END
231231#endif
232232
233INPUT_PORTS_START( atcga )
233static INPUT_PORTS_START( atcga )
234234   PORT_START /* IN0 */
235235   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
236236   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
306306   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
307307INPUT_PORTS_END
308308
309INPUT_PORTS_START( atvga )
309static INPUT_PORTS_START( atvga )
310310   PORT_START /* IN0 */
311311   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
312312   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
src/mess/drivers/coleco.c
r1245r1246
8585   AM_RANGE(0xe0, 0xff) AM_READWRITE(coleco_paddle_r, SN76496_0_w)
8686ADDRESS_MAP_END
8787
88INPUT_PORTS_START( coleco )
88static INPUT_PORTS_START( coleco )
8989    PORT_START_TAG("IN0")
9090    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("0 (pad 1)") PORT_CODE(KEYCODE_0)
9191    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("1 (pad 1)") PORT_CODE(KEYCODE_1)
src/mess/drivers/ex800.c
r1245r1246
357357******************************************************************************/
358358 
359359 
360INPUT_PORTS_START( ex800 )
360static INPUT_PORTS_START( ex800 )
361361   PORT_START_TAG("ONLISW")
362362   PORT_BIT(0xfe, IP_ACTIVE_HIGH, IPT_UNUSED)
363363   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ON LINE")   PORT_CODE(KEYCODE_F9)
src/mess/drivers/apf.c
r1245r1246
414414   AM_RANGE( 0x0e000, 0x0e7ff) AM_ROM AM_REGION(REGION_CPU1, 0x10000) AM_MIRROR(0x1800)
415415ADDRESS_MAP_END
416416
417INPUT_PORTS_START( apf_m1000)
417static INPUT_PORTS_START( apf_m1000)
418418   /* line 0 */
419419   PORT_START
420420   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("q") PORT_CODE(KEYCODE_Q)
r1245r1246
461461INPUT_PORTS_END
462462
463463
464INPUT_PORTS_START( apf_imagination)
464static INPUT_PORTS_START( apf_imagination)
465465   /* temp assignments , these are the keypad */
466466   PORT_START
467467   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("q") PORT_CODE(KEYCODE_0_PAD)
src/mess/drivers/snes.c
r1245r1246
6060
6161
6262
63INPUT_PORTS_START( snes )
63static INPUT_PORTS_START( snes )
6464   PORT_START  /* IN 0 : Joypad 1 - L */
6565   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("P1 Button A")  PORT_PLAYER(1) PORT_CODE(KEYCODE_D)
6666   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("P1 Button X")  PORT_PLAYER(1) PORT_CODE(KEYCODE_S)
src/mess/drivers/vc20.c
r1245r1246
212212   AM_RANGE(0xc000, 0xffff) AM_ROM
213213ADDRESS_MAP_END
214214
215INPUT_PORTS_START( vic20_joystick )
215static INPUT_PORTS_START( vic20_joystick )
216216   PORT_START_TAG( TAG_JOYSTICK )
217217   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_NAME("Joystick Up")  PORT_8WAY
218218   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN) PORT_NAME("Joystick Down")  PORT_8WAY
r1245r1246
228228   PORT_BIT(0xff,128,IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(20) PORT_MINMAX(0,255) PORT_CODE_DEC(KEYCODE_END) PORT_CODE_INC(KEYCODE_PGDN) PORT_PLAYER(2) PORT_REVERSE
229229INPUT_PORTS_END
230230
231INPUT_PORTS_START( vic20_lightpen_6560 )
231static INPUT_PORTS_START( vic20_lightpen_6560 )
232232   PORT_START_TAG( TAG_LIGHTPENX )
233233   PORT_BIT (0xff, 0, IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(2) PORT_MINMAX(0,(VIC6560_MAME_XSIZE - 1)) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(3)
234234   PORT_START_TAG( TAG_LIGHTPENY )
235235   PORT_BIT (0xff, 0, IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(2) PORT_MINMAX(0,(VIC6560_MAME_YSIZE - 1)) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(4)
236236INPUT_PORTS_END
237237
238INPUT_PORTS_START( vic20_lightpen_6561 )
238static INPUT_PORTS_START( vic20_lightpen_6561 )
239239   PORT_START_TAG( TAG_LIGHTPENX )
240240   PORT_BIT (0xff, 0, IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(2) PORT_MINMAX(0,(VIC6561_MAME_XSIZE - 1)) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(3)
241241   PORT_START_TAG( TAG_LIGHTPENY )
242242   PORT_BIT (0x1ff, 0, IPT_PADDLE) PORT_SENSITIVITY(30) PORT_KEYDELTA(2) PORT_MINMAX(0,(VIC6561_MAME_YSIZE - 1)) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(4)
243243INPUT_PORTS_END
244244
245INPUT_PORTS_START( vic20_keyboard )
245static INPUT_PORTS_START( vic20_keyboard )
246246   PORT_START_TAG( TAG_KEYBOARD_ROW0 )
247247   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL INST") PORT_CODE(KEYCODE_BACKSPACE)
248248   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Pound") PORT_CODE(KEYCODE_MINUS)
r1245r1246
327327   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
328328INPUT_PORTS_END
329329
330INPUT_PORTS_START( vic20_expansion )
330static INPUT_PORTS_START( vic20_expansion )
331331   PORT_START_TAG( TAG_EXPANSION )
332332   PORT_DIPNAME ( 0x07, 0, "RAM Cartridge")
333333   PORT_DIPSETTING(   0, DEF_STR( None ) )
r1245r1246
353353   PORT_DIPSETTING( 0x80, DEF_STR( Yes ) )
354354INPUT_PORTS_END
355355
356INPUT_PORTS_START( vic20_devices )
356static INPUT_PORTS_START( vic20_devices )
357357   PORT_START_TAG( TAG_DEVICES )
358358   PORT_DIPNAME   ( 0x80, 0x80, DEF_STR( Joystick ))
359359   PORT_DIPSETTING( 0x00, DEF_STR( No ) )
r1245r1246
381381   PORT_DIPSETTING(  1, DEF_STR( Yes ) )
382382INPUT_PORTS_END
383383
384INPUT_PORTS_START (vic20)
384static INPUT_PORTS_START (vic20)
385385   PORT_INCLUDE( vic20_joystick )
386386   PORT_INCLUDE( vic20_lightpen_6560 )
387387   PORT_INCLUDE (vic20_expansion )
r1245r1246
390390INPUT_PORTS_END
391391
392392// some different labels to vic20
393INPUT_PORTS_START (vic1001)
393static INPUT_PORTS_START (vic1001)
394394   PORT_INCLUDE( vic20_joystick )
395395   PORT_INCLUDE( vic20_lightpen_6560 )
396396   PORT_INCLUDE( vic20_expansion )
r1245r1246
479479   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
480480INPUT_PORTS_END
481481
482INPUT_PORTS_START (vic20i)
482static INPUT_PORTS_START (vic20i)
483483   PORT_INCLUDE( vic20_joystick )
484484   PORT_INCLUDE( vic20_lightpen_6560 )
485485   PORT_INCLUDE( vic20_expansion )
r1245r1246
516516   PORT_INCLUDE( vic20_keyboard )
517517INPUT_PORTS_END
518518
519INPUT_PORTS_START (vc20)
519static INPUT_PORTS_START (vc20)
520520   PORT_INCLUDE( vic20_joystick )
521521   PORT_INCLUDE( vic20_lightpen_6561 )
522522   PORT_INCLUDE( vic20_expansion )
r1245r1246
525525INPUT_PORTS_END
526526
527527// some different labels to vc20
528INPUT_PORTS_START (vic20swe)
528static INPUT_PORTS_START (vic20swe)
529529   PORT_INCLUDE( vic20_joystick )
530530   PORT_INCLUDE( vic20_lightpen_6561 )
531531   PORT_INCLUDE( vic20_expansion )
src/mess/drivers/electron.c
r1245r1246
6060   AM_RANGE(0xff00, 0xffff) AM_ROM AM_REGION(REGION_USER1, 0x43f00)   /* OS ROM continued */
6161ADDRESS_MAP_END
6262
63INPUT_PORTS_START( electron )
63static INPUT_PORTS_START( electron )
6464   /* Keyboard line 0 */
6565   PORT_START
6666   PORT_BIT(0x01,  IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RIGHT CURSOR") PORT_CODE(KEYCODE_RIGHT)
src/mess/drivers/saturn.c
r1245r1246
19721972   AM_RANGE(0x100000, 0x100fff) AM_READWRITE(SCSP_0_r, SCSP_0_w)
19731973ADDRESS_MAP_END
19741974
1975INPUT_PORTS_START( saturn )
1975static INPUT_PORTS_START( saturn )
19761976   PORT_START
19771977   PORT_DIPNAME( 0x01, 0x01, "PDR1" )
19781978   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
src/mess/drivers/ql.c
r1245r1246
241241
242242/* Input Ports */
243243
244INPUT_PORTS_START( ql )
244static INPUT_PORTS_START( ql )
245245   PORT_START_TAG("ROW0")
246246   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F1) PORT_NAME("F1")
247247   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F2) PORT_NAME("F2")
src/mess/drivers/ti990_10.c
r1245r1246
288288   vdt911_init();
289289}
290290
291INPUT_PORTS_START(ti990_10)
291static INPUT_PORTS_START(ti990_10)
292292   VDT911_KEY_PORTS
293293INPUT_PORTS_END
294294
src/mess/drivers/amiga.c
r1245r1246
101101  Inputs
102102***************************************************************************/
103103
104INPUT_PORTS_START( amiga_common )
104static INPUT_PORTS_START( amiga_common )
105105   PORT_START_TAG("input")
106106   PORT_CONFNAME( 0x20, 0x00, "Input Port 0 Device")
107107   PORT_CONFSETTING( 0x00, "Mouse" )
r1245r1246
159159INPUT_PORTS_END
160160
161161
162INPUT_PORTS_START( amiga )
162static INPUT_PORTS_START( amiga )
163163   PORT_START_TAG("hardware")
164164   PORT_CONFNAME( 0x08, 0x08, "Battery backed-up RTC")
165165   PORT_CONFSETTING( 0x00, "Not Installed" )
r1245r1246
170170
171171
172172/* TODO: Support for the CDTV remote control */
173INPUT_PORTS_START( cdtv )
173static INPUT_PORTS_START( cdtv )
174174   PORT_INCLUDE( amiga_common )
175175INPUT_PORTS_END
176176
src/mess/drivers/channelf.c
r1245r1246
201201
202202
203203
204INPUT_PORTS_START( channelf )
204static INPUT_PORTS_START( channelf )
205205   PORT_START /* Front panel buttons */
206206   PORT_BIT ( 0x01, IP_ACTIVE_HIGH, IPT_START )   /* TIME  (1) */
207207   PORT_BIT ( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON5 )   /* HOLD  (2) */
src/mess/drivers/apple1.c
r1245r1246
153153
154154/* keyboard input */
155155
156INPUT_PORTS_START( apple1 )
156static INPUT_PORTS_START( apple1 )
157157   PORT_START   /* 0: first sixteen keys */
158158   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0')
159159   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) PORT_CHAR('1')
src/mess/drivers/abc80x.c
r1245r1246
347347
348348/* Input Ports */
349349
350INPUT_PORTS_START( abc77 )
350static INPUT_PORTS_START( abc77 )
351351   PORT_START_TAG("X0")
352352   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
353353   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
r1245r1246
486486   PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
487487INPUT_PORTS_END
488488
489INPUT_PORTS_START( abc800 )
489static INPUT_PORTS_START( abc800 )
490490   PORT_INCLUDE(abc77)
491491INPUT_PORTS_END
492492
493INPUT_PORTS_START( abc802 )
493static INPUT_PORTS_START( abc802 )
494494   PORT_INCLUDE(abc77)
495495INPUT_PORTS_END
496496
497INPUT_PORTS_START( abc806 )
497static INPUT_PORTS_START( abc806 )
498498   PORT_INCLUDE(abc77)
499499INPUT_PORTS_END
500500
src/mess/drivers/tmc2000e.c
r1245r1246
7474
7575/* Input Ports */
7676
77INPUT_PORTS_START( tmc2000e )
77static INPUT_PORTS_START( tmc2000e )
7878   PORT_START_TAG("DSW0")   // System Configuration DIPs
7979   PORT_DIPNAME( 0x80, 0x00, "Keyboard Type" )
8080   PORT_DIPSETTING(    0x00, "ASCII" )
src/mess/drivers/tmc1800.c
r1245r1246
141141
142142/* Input Ports */
143143
144INPUT_PORTS_START( tmc1800 )
144static INPUT_PORTS_START( tmc1800 )
145145   PORT_START_TAG("IN0")
146146   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_CHAR('0')
147147   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_CHAR('1')
src/mess/drivers/crvision.c
r1245r1246
3030
3131/* Input Ports */
3232
33INPUT_PORTS_START( crvision )
33static INPUT_PORTS_START( crvision )
3434   
3535   // Player 1 Joystick
3636
src/mess/drivers/a7800.c
r1245r1246
4848
4949
5050
51INPUT_PORTS_START( a7800 )
51static INPUT_PORTS_START( a7800 )
5252   PORT_START_TAG("joysticks")            /* IN0 */
5353   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP)    PORT_PLAYER(2) PORT_8WAY
5454   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN)  PORT_PLAYER(2) PORT_8WAY
src/mess/drivers/nascom1.c
r1245r1246
128128
129129/* Keyboard input */
130130
131INPUT_PORTS_START (nascom1)
131static INPUT_PORTS_START (nascom1)
132132   PORT_START   /* 0: count = 0 */
133133   PORT_BIT(0x6f, IP_ACTIVE_LOW, IPT_UNUSED)
134134   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT)
src/mess/drivers/acrnsys1.c
r1245r1246
3636******************************************************************************/
3737 
3838 
39INPUT_PORTS_START( acrnsys1 )
39static INPUT_PORTS_START( acrnsys1 )
4040   PORT_START_TAG("keyboard_0")
4141   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('M')
4242   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('G')
src/mess/drivers/mtx.c
r1245r1246
622622   AM_RANGE( 0x08, 0x0b) AM_READWRITE( mtx_ctc_r, mtx_ctc_w )
623623ADDRESS_MAP_END
624624
625INPUT_PORTS_START( mtx512 )
625static INPUT_PORTS_START( mtx512 )
626626 PORT_START /* 0 */
627627  PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1)
628628  PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 #") PORT_CODE(KEYCODE_3)
src/mess/drivers/microtan.c
r1245r1246
5353   AM_RANGE(0xf000, 0xffff) AM_ROM
5454ADDRESS_MAP_END
5555
56INPUT_PORTS_START( microtan )
56static INPUT_PORTS_START( microtan )
5757    PORT_START // DIP switches
5858    PORT_DIPNAME( 0x03, 0x00, "Memory size" )
5959    PORT_DIPSETTING(   0x00, "1K" )
src/mess/drivers/einstein.c
r1245r1246
14711471   einstein_80col_init();
14721472}
14731473
1474INPUT_PORTS_START(einstein)
1474static INPUT_PORTS_START(einstein)
14751475   /* line 0 */
14761476   PORT_START
14771477   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("BREAK") PORT_CODE(KEYCODE_LALT)
src/mess/drivers/ti99_2.c
r1245r1246
302302
303303
304304/* ti99/2 : 54-key keyboard */
305INPUT_PORTS_START(ti99_2)
305static INPUT_PORTS_START(ti99_2)
306306
307307   PORT_START    /* col 0 */
308308      PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 ! DEL") PORT_CODE(KEYCODE_1)
src/mess/drivers/intv.c
r1245r1246
138138   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, intvkbd_charlayout, 0, 256 )
139139GFXDECODE_END
140140
141INPUT_PORTS_START( intv )
141static INPUT_PORTS_START( intv )
142142   PORT_START /* IN0 */   /* Right Player Controller Starts Here */
143143    PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)
144144    PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
r1245r1246
192192 Row 9  DEL     '       L       J       G       D       NC      A
193193*/
194194
195INPUT_PORTS_START( intvkbd )
195static INPUT_PORTS_START( intvkbd )
196196   PORT_START /* IN0 */   /* Keyboard Row 0 */
197197    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NC")
198198    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NC")
src/mess/drivers/jupiter.c
r1245r1246
101101
102102/* keyboard input */
103103
104INPUT_PORTS_START (jupiter)
104static INPUT_PORTS_START (jupiter)
105105   PORT_START   /* 0: 0xFEFE */
106106   PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_RSHIFT)
107107   PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SYM SHFT") PORT_CODE(KEYCODE_LSHIFT)
src/mess/drivers/mephisto.c
r1245r1246
125125
126126
127127
128INPUT_PORTS_START( mephisto )
128static INPUT_PORTS_START( mephisto )
129129  // PORT_START_TAG("keyboard_1")
130130  PORT_START  //Port $2c00
131131  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_F1)
src/mess/drivers/ssystem3.c
r1245r1246
8181   AM_RANGE( 0xc000, 0xffff) AM_ROM
8282ADDRESS_MAP_END
8383
84INPUT_PORTS_START( ssystem3 )
84static INPUT_PORTS_START( ssystem3 )
8585   PORT_START
8686PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("NEW GAME") PORT_CODE(KEYCODE_F3) // seams to be direct wired to reset
8787   PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_F1)
src/mess/drivers/vtech1.c
r1245r1246
170170 Input Ports
171171******************************************************************************/
172172
173INPUT_PORTS_START(vtech1)
173static INPUT_PORTS_START(vtech1)
174174   PORT_START_TAG("keyboard_0")
175175   PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED)
176176   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R       RETURN  LEFT$")   PORT_CODE(KEYCODE_R)     PORT_CHAR('R')
src/mess/drivers/amstrad.c
r1245r1246
20742074
20752075/* Steph 2000-10-27   I remapped the 'Machine Name' Dip Switches (easier to understand) */
20762076
2077INPUT_PORTS_START(amstrad)
2077static INPUT_PORTS_START(amstrad)
20782078
20792079   PORT_INCLUDE( amstrad_keyboard )
20802080
r1245r1246
21372137
21382138INPUT_PORTS_END
21392139
2140INPUT_PORTS_START(kccomp)
2140static INPUT_PORTS_START(kccomp)
21412141   PORT_INCLUDE( amstrad_keyboard )
21422142INPUT_PORTS_END
21432143
2144INPUT_PORTS_START(plus)
2144static INPUT_PORTS_START(plus)
21452145   PORT_INCLUDE( amstrad_keyboard )
21462146
21472147   PORT_START
src/mess/drivers/sms.c
r1245r1246
137137ADDRESS_MAP_END
138138
139139
140INPUT_PORTS_START( sms )
140static INPUT_PORTS_START( sms )
141141
142142   PORT_START   /* IN0 */
143143   PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_CATEGORY(10) PORT_PLAYER(1) PORT_8WAY
src/mess/drivers/a310.c
r1245r1246
756756ADDRESS_MAP_END
757757
758758
759INPUT_PORTS_START( a310 )
759static INPUT_PORTS_START( a310 )
760760   PORT_START /* DIP switches */
761761   PORT_BIT(0xfd, 0xfd, IPT_UNUSED)
762762
src/mess/drivers/avigo.c
r1245r1246
827827
828828
829829
830INPUT_PORTS_START(avigo)
830static INPUT_PORTS_START(avigo)
831831   PORT_START
832832   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("PAGE UP") PORT_CODE(KEYCODE_PGUP)
833833   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("PAGE DOWN") PORT_CODE(KEYCODE_PGDN)
src/mess/drivers/psx.c
r1245r1246
724724   psx_driver_init();
725725}
726726
727INPUT_PORTS_START( psx )
727static INPUT_PORTS_START( psx )
728728   PORT_START_TAG("IN0")
729729   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_PLAYER(1)
730730   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_PLAYER(1)
src/mess/drivers/coupe.c
r1245r1246
269269static GFXDECODE_START( coupe_gfxdecodeinfo )
270270GFXDECODE_END
271271
272INPUT_PORTS_START( coupe )
272static INPUT_PORTS_START( coupe )
273273   PORT_START // FE  0
274274   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT)
275275   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
src/mess/drivers/tutor.c
r1245r1246
443443
444444
445445/* tutor keyboard: 56 keys */
446INPUT_PORTS_START(tutor)
446static INPUT_PORTS_START(tutor)
447447
448448   PORT_START    /* col 0 */
449449      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1)
src/mess/drivers/cybiko.c
r1245r1246
126126#define CYBIKO_PORT_BIT_U( mask)  \
127127   PORT_BIT( mask, IP_ACTIVE_LOW, IPT_UNUSED)
128128
129INPUT_PORTS_START( cybiko)
129static INPUT_PORTS_START( cybiko)
130130   PORT_START // A1
131131   CYBIKO_PORT_BIT_K( 0x01) PORT_NAME( "F7"    ) PORT_CODE( KEYCODE_F7        ) PORT_CHAR( UCHAR_MAMEKEY( F7    ))
132132   CYBIKO_PORT_BIT_K( 0x02) PORT_NAME( "Esc"   ) PORT_CODE( KEYCODE_ESC       ) PORT_CHAR( UCHAR_MAMEKEY( ESC   ))
src/mess/drivers/trs80.c
r1245r1246
175175   only the shift bit was there in the TRS80
176176***************************************************************************/
177177
178INPUT_PORTS_START( trs80 )
178static INPUT_PORTS_START( trs80 )
179179   PORT_START /* IN0 */
180180   PORT_CONFNAME(     0x80, 0x80,   "Floppy Disc Drives")
181181   PORT_CONFSETTING(   0x00, DEF_STR( Off ) )
src/mess/drivers/odyssey2.c
r1245r1246
2727   AM_RANGE( I8039_t1,  I8039_t1)   AM_READ( odyssey2_t1_r )
2828ADDRESS_MAP_END
2929
30INPUT_PORTS_START( odyssey2 )
30static INPUT_PORTS_START( odyssey2 )
3131   PORT_START      /* IN0 */
3232   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_CHAR('0')
3333   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_CHAR('1')
src/mess/drivers/apple2.c
r1245r1246
284284   //PORT_INCLUDE( apple2_paddle )
285285INPUT_PORTS_END
286286
287INPUT_PORTS_START( apple2 )
287static INPUT_PORTS_START( apple2 )
288288    PORT_START_TAG("keyb_0")
289289    PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED)
290290    PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x90")      PORT_CODE(KEYCODE_LEFT)
r1245r1246
374374   PORT_INCLUDE( apple2_gameport )
375375INPUT_PORTS_END
376376
377INPUT_PORTS_START( apple2p )
377static INPUT_PORTS_START( apple2p )
378378   PORT_INCLUDE( apple2 )
379379
380380   PORT_START_TAG("reset_dip")
r1245r1246
491491    PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RESET")      PORT_CODE(KEYCODE_F12)
492492INPUT_PORTS_END
493493
494INPUT_PORTS_START( apple2e )
494static INPUT_PORTS_START( apple2e )
495495   PORT_INCLUDE( apple2_common )
496496   PORT_INCLUDE( apple2_special )
497497   PORT_INCLUDE( apple2_gameport )
src/mess/drivers/primo.c
r1245r1246
141141   AM_RANGE( 0x4000, 0xffff ) AM_RAM
142142ADDRESS_MAP_END
143143
144INPUT_PORTS_START( primo )
144static INPUT_PORTS_START( primo )
145145   PORT_START_TAG( "IN0" )
146146      PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Y")      PORT_CODE(KEYCODE_Y)      PORT_CHAR('y')
147147      PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Up")   PORT_CODE(KEYCODE_UP)      PORT_CHAR(UCHAR_MAMEKEY(UP))
src/mess/drivers/ti85.c
r1245r1246
197197ADDRESS_MAP_END
198198       
199199/* keyboard input */
200INPUT_PORTS_START (ti81)
200static INPUT_PORTS_START (ti81)
201201   PORT_START   /* bit 0 */
202202      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN)
203203      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER)
r1245r1246
259259      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ON/OFF") PORT_CODE(KEYCODE_Q)
260260INPUT_PORTS_END
261261
262INPUT_PORTS_START (ti85)
262static INPUT_PORTS_START (ti85)
263263   PORT_START   /* bit 0 */
264264      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN)
265265      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER)
src/mess/drivers/svision.c
r1245r1246
265265   AM_RANGE( 0xc000, 0xffff) AM_ROMBANK(2)
266266ADDRESS_MAP_END
267267
268INPUT_PORTS_START( svision )
268static INPUT_PORTS_START( svision )
269269   PORT_START
270270   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT)
271271   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
r1245r1246
277277   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START) PORT_NAME("Start/Pause")
278278INPUT_PORTS_END
279279
280INPUT_PORTS_START( svisions )
280static INPUT_PORTS_START( svisions )
281281   PORT_START
282282   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1)
283283   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
src/mess/drivers/c64.c
r1245r1246
236236   AM_RANGE(0xe000, 0xffff) AM_READWRITE(MRA8_BANK7, MWA8_BANK8)      /* ram or kernel rom or external romh */
237237ADDRESS_MAP_END
238238
239INPUT_PORTS_START(c64_keyboard)
239static INPUT_PORTS_START(c64_keyboard)
240240   PORT_START                                                                              \
241241   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Arrow-Left") PORT_CODE(KEYCODE_TILDE)
242242   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1 !   BLK   ORNG") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
r1245r1246
314314   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("(Right-Shift Cursor-Right)Special CRSR Left") PORT_CODE(KEYCODE_4_PAD)
315315INPUT_PORTS_END
316316
317INPUT_PORTS_START(vic64s_keyboard)
317static INPUT_PORTS_START(vic64s_keyboard)
318318   PORT_START
319319   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Arrow-Left") PORT_CODE(KEYCODE_TILDE)
320320   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1 !   BLK   ORNG") PORT_CODE(KEYCODE_1)
r1245r1246
392392   PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("(Right-Shift Cursor-Right)Special CRSR Left") PORT_CODE(KEYCODE_4_PAD)
393393INPUT_PORTS_END
394394
395INPUT_PORTS_START (ultimax)
395static INPUT_PORTS_START (ultimax)
396396    C64_DIPS
397397   PORT_START
398398   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
414414   PORT_INCLUDE(c64_keyboard)
415415INPUT_PORTS_END
416416
417INPUT_PORTS_START (c64gs)
417static INPUT_PORTS_START (c64gs)
418418    C64_DIPS
419419    PORT_START
420420    PORT_BIT (0xff00, 0x0, IPT_UNUSED)
r1245r1246
443443    PORT_BIT (0xf000, 0x0, IPT_UNUSED)
444444INPUT_PORTS_END
445445
446INPUT_PORTS_START (c64)
446static INPUT_PORTS_START (c64)
447447    C64_DIPS
448448    PORT_START
449449    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
470470   PORT_INCLUDE(c64_keyboard)
471471INPUT_PORTS_END
472472
473INPUT_PORTS_START (vic64s)
473static INPUT_PORTS_START (vic64s)
474474    C64_DIPS
475475    PORT_START
476476    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
497497    PORT_INCLUDE(vic64s_keyboard)
498498INPUT_PORTS_END
499499
500INPUT_PORTS_START (sx64)
500static INPUT_PORTS_START (sx64)
501501   C64_DIPS
502502   PORT_START
503503   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
r1245r1246
517517   PORT_INCLUDE(c64_keyboard)
518518INPUT_PORTS_END
519519
520INPUT_PORTS_START (vip64)
520static INPUT_PORTS_START (vip64)
521521    C64_DIPS
522522    PORT_START
523523    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
src/mess/drivers/svi318.c
r1245r1246
109109   * Numcerical keypad (SVI-328 only)
110110*/
111111
112INPUT_PORTS_START( svi318_keys )
112static INPUT_PORTS_START( svi318_keys )
113113
114114 PORT_START /* 0 */
115115  PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 )") PORT_CODE(KEYCODE_0)
r1245r1246
202202  PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("RIGHT") PORT_CODE(KEYCODE_RIGHT)
203203INPUT_PORTS_END
204204
205INPUT_PORTS_START( svi318 )
205static INPUT_PORTS_START( svi318 )
206206
207207 PORT_INCLUDE( svi318_keys )
208208
r1245r1246
244244INPUT_PORTS_END
245245
246246
247INPUT_PORTS_START ( svi328 )
247static INPUT_PORTS_START ( svi328 )
248248
249249 PORT_INCLUDE(svi318_keys)
250250
src/mess/drivers/ti99_4p.c
r1245r1246
9191   plus two optional joysticks.
9292*/
9393
94INPUT_PORTS_START(ti99_4p)
94static INPUT_PORTS_START(ti99_4p)
9595
9696   /* 1 port for config */
9797   PORT_START   /* config */
src/mess/drivers/pc.c
r1245r1246
322322
323323
324324
325INPUT_PORTS_START( pcmda )
325static INPUT_PORTS_START( pcmda )
326326   PORT_START /* IN0 */
327327   PORT_BIT ( 0x80, 0x80,    IPT_VBLANK )
328328   PORT_BIT ( 0x7f, 0x7f,    IPT_UNUSED )
r1245r1246
397397   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
398398INPUT_PORTS_END
399399
400INPUT_PORTS_START( pccga )
400static INPUT_PORTS_START( pccga )
401401   PORT_START /* IN0 */
402402   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
403403   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
489489    PORT_CONFSETTING(0x80, "Paradise")
490490INPUT_PORTS_END
491491
492INPUT_PORTS_START( europc )
492static INPUT_PORTS_START( europc )
493493   PORT_START /* IN0 */
494494   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
495495   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
545545   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
546546INPUT_PORTS_END
547547
548INPUT_PORTS_START( bondwell )
548static INPUT_PORTS_START( bondwell )
549549   PORT_START /* IN0 */
550550   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
551551   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
622622   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
623623INPUT_PORTS_END
624624
625INPUT_PORTS_START( xtcga )
625static INPUT_PORTS_START( xtcga )
626626   PORT_START /* IN0 */
627627   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
628628   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
716716    PORT_CONFSETTING(0x80, "Paradise")
717717INPUT_PORTS_END
718718
719INPUT_PORTS_START( tandy1t )
719static INPUT_PORTS_START( tandy1t )
720720   PORT_START /* IN0 */
721721   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
722722   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
762762   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
763763INPUT_PORTS_END
764764
765INPUT_PORTS_START( pc200 )
765static INPUT_PORTS_START( pc200 )
766766   PORT_START /* IN0 */
767767   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
768768   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
850850
851851INPUT_PORTS_END
852852
853INPUT_PORTS_START( pc1512 )
853static INPUT_PORTS_START( pc1512 )
854854   PORT_START /* IN0 */
855855   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
856856   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
r1245r1246
924924    PORT_BIT ( 0xE0, 0x20, IPT_UNUSED )   /* Chipset is always PC1512 */
925925INPUT_PORTS_END
926926
927INPUT_PORTS_START( pc1640 )
927static INPUT_PORTS_START( pc1640 )
928928   PORT_START   /* IN0 */
929929   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
930930   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
r1245r1246
10461046
10471047INPUT_PORTS_END
10481048
1049INPUT_PORTS_START( xtvga )
1049static INPUT_PORTS_START( xtvga )
10501050   PORT_START /* IN0 */
10511051   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
10521052   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
src/mess/drivers/pce.c
r1245r1246
114114ADDRESS_MAP_END
115115
116116/* todo: alternate forms of input (multitap, mouse, etc.) */
117INPUT_PORTS_START( pce )
117static INPUT_PORTS_START( pce )
118118
119119    PORT_START  /* Player 1 controls */
120120    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* button I */
src/mess/drivers/ti99_4x.c
r1245r1246
103103*/
104104
105105/* TI99/4a: 48-key keyboard, plus two optional joysticks (2 shift keys) */
106INPUT_PORTS_START(ti99_4a)
106static INPUT_PORTS_START(ti99_4a)
107107
108108   /* 1 port for config */
109109   PORT_START   /* config */
r1245r1246
244244#define JOYSTICK_SENSITIVITY   100
245245
246246/* TI99/4: 41-key keyboard, plus two optional joysticks  (2 space keys) */
247INPUT_PORTS_START(ti99_4)
247static INPUT_PORTS_START(ti99_4)
248248
249249   /* 1 port for config */
250250   PORT_START   /* config */
src/mess/drivers/ip20.c
r1245r1246
580580   wd33c93_init(&scsi_intf);
581581}
582582
583INPUT_PORTS_START( ip204415 )
583static INPUT_PORTS_START( ip204415 )
584584   PORT_START
585585   PORT_BIT ( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
586586INPUT_PORTS_END
src/mess/drivers/vc4000.c
r1245r1246
5353   AM_RANGE( S2650_SENSE_PORT,S2650_SENSE_PORT) AM_READ( vc4000_vsync_r)
5454ADDRESS_MAP_END
5555
56INPUT_PORTS_START( vc4000 )
56static INPUT_PORTS_START( vc4000 )
5757   PORT_START
5858   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_F1)
5959   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Game Select") PORT_CODE(KEYCODE_F2)
src/mess/drivers/galaxy.c
r1245r1246
4848   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxy_charlayout, 0, 2 )
4949GFXDECODE_END
5050
51INPUT_PORTS_START (galaxy)
51static INPUT_PORTS_START (galaxy)
5252   PORT_START /* line 0 */
5353      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED)
5454      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)
src/mess/drivers/bbc.c
r1245r1246
313313   memcpy(colortable,bbc_colour_table,sizeof(bbc_colour_table));
314314}
315315
316INPUT_PORTS_START(bbca)
316static INPUT_PORTS_START(bbca)
317317
318318   /* KEYBOARD COLUMN 0 */
319319   PORT_START
src/mess/drivers/compis.c
r1245r1246
8181ADDRESS_MAP_END
8282
8383/* COMPIS Keyboard */
84INPUT_PORTS_START (compis)
84static INPUT_PORTS_START (compis)
8585   PORT_START /* 0 */
8686   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC)
8787   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1)
src/mess/drivers/vtech2.c
r1245r1246
9393   AM_RANGE(0x45, 0x45) AM_WRITE(laser_two_color_w)
9494ADDRESS_MAP_END
9595
96INPUT_PORTS_START( laser350 )
96static INPUT_PORTS_START( laser350 )
9797   PORT_START /* IN0 KEY ROW 0 */
9898    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
9999   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT)
r1245r1246
194194
195195INPUT_PORTS_END
196196
197INPUT_PORTS_START( laser500 )
197static INPUT_PORTS_START( laser500 )
198198   PORT_START /* IN0 KEY ROW 0 */
199199    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
200200   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT)
src/mess/drivers/kc.c
r1245r1246
302302
303303
304304
305INPUT_PORTS_START( kc85 )
305static INPUT_PORTS_START( kc85 )
306306   KC_KEYBOARD
307307INPUT_PORTS_END
308308

Previous 15994 Revisions Next


© 1998-2018 The MESS Team