Previous 15994 Revisions Next

r5221 Monday 13th July, 2009 at 17:55:47 UTC by Wilbert Pol
[PC drivers] Set the default keyboard protocol for AT and PC class drivers.
[src/mess/drivers]at.c pc.c
[src/mess/machine]kb_keytro.c kb_keytro.h

src/mess/machine/kb_keytro.c
r5220r5221
9090  Input port declaration
9191
9292***************************************************************************/
93INPUT_PORTS_START( kb_keytronic )
94   PORT_START( "kb_keytronic_0b" )
95   PORT_DIPNAME( 0x01, 0x00, "Protocol selection" )
96   PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" )
97   PORT_DIPSETTING( 0x01, "Standard PC and XT" )
98   PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" )
99   PORT_DIPSETTING( 0x00, "Native scan code set" )
100   PORT_DIPSETTING( 0x02, "IRMA Emulation" )
101   PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" )
102   PORT_DIPSETTING( 0x00, "Native scan code set" )
103   PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" )
104   PORT_DIPNAME( 0x08, 0x08, "Enable E0" )
105   PORT_DIPSETTING( 0x00, "Enable E0" )
106   PORT_DIPSETTING( 0x08, "Disable E0" )
107   PORT_DIPNAME( 0x10, 0x10, "Code tables" )
108   PORT_DIPSETTING( 0x00, "U.S. code tables" )
109   PORT_DIPSETTING( 0x10, "International code tables" )
110   PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED )
111   PORT_DIPNAME( 0x80, 0x80, "Key click" )
112   PORT_DIPSETTING( 0x00, "No key click" )
113   PORT_DIPSETTING( 0x80, "Key click" )
93static INPUT_PORTS_START( kb_keytronic_common )
11494
11595   PORT_START( "kb_keytronic_0f" )
11696   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD )   PORT_CODE(KEYCODE_5)         PORT_CHAR('5')                  /* 06 */
r5220r5221
290270INPUT_PORTS_END
291271
292272
273INPUT_PORTS_START( kb_keytronic_pc )
274   PORT_INCLUDE( kb_keytronic_common )
275
276   PORT_START( "kb_keytronic_0b" )
277   PORT_DIPNAME( 0x01, 0x01, "Protocol selection" )
278   PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" )
279   PORT_DIPSETTING( 0x01, "Standard PC and XT" )
280   PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" )
281   PORT_DIPSETTING( 0x00, "Native scan code set" )
282   PORT_DIPSETTING( 0x02, "IRMA Emulation" )
283   PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" )
284   PORT_DIPSETTING( 0x00, "Native scan code set" )
285   PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" )
286   PORT_DIPNAME( 0x08, 0x08, "Enable E0" )
287   PORT_DIPSETTING( 0x00, "Enable E0" )
288   PORT_DIPSETTING( 0x08, "Disable E0" )
289   PORT_DIPNAME( 0x10, 0x10, "Code tables" )
290   PORT_DIPSETTING( 0x00, "U.S. code tables" )
291   PORT_DIPSETTING( 0x10, "International code tables" )
292   PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED )
293   PORT_DIPNAME( 0x80, 0x80, "Key click" )
294   PORT_DIPSETTING( 0x00, "No key click" )
295   PORT_DIPSETTING( 0x80, "Key click" )
296INPUT_PORTS_END
297
298
299INPUT_PORTS_START( kb_keytronic_at )
300
301   PORT_INCLUDE( kb_keytronic_common )
302
303   PORT_START( "kb_keytronic_0b" )
304   PORT_DIPNAME( 0x01, 0x00, "Protocol selection" )
305   PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" )
306   PORT_DIPSETTING( 0x01, "Standard PC and XT" )
307   PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" )
308   PORT_DIPSETTING( 0x00, "Native scan code set" )
309   PORT_DIPSETTING( 0x02, "IRMA Emulation" )
310   PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" )
311   PORT_DIPSETTING( 0x00, "Native scan code set" )
312   PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" )
313   PORT_DIPNAME( 0x08, 0x00, "Enable E0" )
314   PORT_DIPSETTING( 0x00, "Enable E0" )
315   PORT_DIPSETTING( 0x08, "Disable E0" )
316   PORT_DIPNAME( 0x10, 0x10, "Code tables" )
317   PORT_DIPSETTING( 0x00, "U.S. code tables" )
318   PORT_DIPSETTING( 0x10, "International code tables" )
319   PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED )
320   PORT_DIPNAME( 0x80, 0x80, "Key click" )
321   PORT_DIPSETTING( 0x00, "No key click" )
322   PORT_DIPSETTING( 0x80, "Key click" )
323INPUT_PORTS_END
324
325
293326/* Write handler which is called when the clock signal may have changed */
294327WRITE8_HANDLER( kb_keytronic_set_clock_signal )
295328{
src/mess/machine/kb_keytro.h
r5220r5221
1111 */
1212void kb_keytronic_set_host_interface( running_machine *machine, write8_space_func clock_cb, write8_space_func data_cb );
1313
14INPUT_PORTS_EXTERN( kb_keytronic );
14INPUT_PORTS_EXTERN( kb_keytronic_pc );
15INPUT_PORTS_EXTERN( kb_keytronic_at );
1516MACHINE_DRIVER_EXTERN( kb_keytronic );
1617
1718#endif  /* __KB_KEYTRO_H_ */
src/mess/drivers/at.c
r5220r5221
322322   PORT_BIT( 0x02, 0x02,   IPT_UNUSED ) /* no turbo switch */
323323   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
324324
325   PORT_INCLUDE( kb_keytronic )      /* IN4 - IN11 */
325   PORT_INCLUDE( kb_keytronic_at )      /* IN4 - IN11 */
326326   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
327327   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
328328   PORT_INCLUDE( pcvideo_cga_at )
r5220r5221
408408   PORT_BIT( 0x02, 0x02,   IPT_UNUSED ) /* no turbo switch */
409409   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
410410
411   PORT_INCLUDE( kb_keytronic )      /* IN4 - IN11 */
411   PORT_INCLUDE( kb_keytronic_at )      /* IN4 - IN11 */
412412   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
413413   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
414414INPUT_PORTS_END
src/mess/drivers/pc.c
r5220r5221
530530   PORT_BIT( 0x02, 0x02,   IPT_UNUSED ) /* no turbo switch */
531531   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
532532
533   PORT_INCLUDE( kb_keytronic )
533   PORT_INCLUDE( kb_keytronic_pc )
534534   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
535535   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
536536INPUT_PORTS_END
r5220r5221
606606   PORT_BIT( 0x02, 0x02,   IPT_UNUSED ) /* no turbo switch */
607607   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
608608
609   PORT_INCLUDE( kb_keytronic )
609   PORT_INCLUDE( kb_keytronic_pc )
610610   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
611611   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
612612   PORT_INCLUDE( pcvideo_cga )
r5220r5221
683683   PORT_BIT( 0x02, 0x02,   IPT_UNUSED ) /* no turbo switch */
684684   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
685685
686   PORT_INCLUDE( kb_keytronic )      /* IN4 - IN11 */
686   PORT_INCLUDE( kb_keytronic_pc )      /* IN4 - IN11 */
687687   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
688688   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
689689   PORT_INCLUDE( pcvideo_cga )
r5220r5221
819819   PORT_BIT( 0x01, 0x01,   IPT_UNUSED )
820820
821821//   PORT_INCLUDE( at_keyboard )      /* IN4 - IN11 */
822    PORT_INCLUDE( kb_keytronic )
822    PORT_INCLUDE( kb_keytronic_pc )
823823   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
824824   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
825825   PORT_INCLUDE( pcvideo_cga )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team