Ejemplo n.º 1
0
void inputx_init(void)
{
	codes = NULL;
	inputx_timer = NULL;
	queue_chars = NULL;
	accept_char = NULL;
	charqueue_empty = NULL;
	keybuffer = NULL;

#if defined(MAME_DEBUG) && defined(NEW_DEBUGGER)
	debug_console_register_command("input", CMDFLAG_NONE, 0, 1, 1, execute_input);
#endif /* defined(MAME_DEBUG) && defined(NEW_DEBUGGER) */

	/* posting keys directly only makes sense for a computer */
	if (Machine->gamedrv->flags & GAME_COMPUTER)
	{
		codes = (struct InputCode *) auto_malloc(CODE_BUFFER_SIZE);
		if (!build_codes(Machine->input_ports, codes, TRUE))
			goto error;

		setup_keybuffer();
	}
	return;

error:
	codes = NULL;
}
Ejemplo n.º 2
0
void mbc55x_state::video_start()
{
	m_debug_video=0;

	logerror("video_start\n");

	if (machine().debug_flags & DEBUG_FLAG_ENABLED)
	{
		debug_console_register_command(machine(), "mbc55x_vid_debug", CMDFLAG_NONE, 0, 0, 1, video_debug);
	}
}
Ejemplo n.º 3
0
/* Video init */
void init_video(void)
{
	/* initialise 6845 */
	crtc6845_config(&beta_crtc6845_interface);
	crtc6845_set_personality(M6845_PERSONALITY_HD6845S);
	
	GCtrl=0;
	
	videoram=mess_ram;

	ClkMax=65000;
	FlashCount=0;
	FlashBit=0;
	DoubleHL=1;			/* Default to normal height */
	DoubleY=1;
	DrawInterlace=INTERLACE_OFF;	/* No interlace by default */
	
#ifdef MAME_DEBUG
	/* setup debug commands */
	if (options.mame_debug)
	{
		debug_console_register_command("beta_vid_log", CMDFLAG_NONE, 0, 0, 0,ToggleRegLog);
		debug_console_register_command("beta_vid_fill", CMDFLAG_NONE, 0, 0, 0,FillScreen);
		debug_console_register_command("beta_vid_box", CMDFLAG_NONE, 0, 0, 5,ScreenBox);
		debug_console_register_command("beta_vid", CMDFLAG_NONE, 0, 0, 0,VidToggle);
		debug_console_register_command("beta_vid_limits", CMDFLAG_NONE, 0, 0, 0,ShowVidLimits);
		debug_console_register_command("beta_vid_clkmax", CMDFLAG_NONE, 0, 0, 1,SetClkMax);
	}
	LogRegWrites=0;
#endif /* MAME_DEBUG */
}