Ejemplo n.º 1
0
void soundb_sdl_reg(adv_conf* context)
{
	unsigned def_samples;

#ifdef __WIN32__ /* OSDEF Windows requires a special customization of the default number of sound sample with SDL 1.2.4 */
	def_samples = 2048;
#else
	def_samples = 512;
#endif

	conf_int_register_enum_default(context, "device_sdl_samples", conf_enum(OPTION), def_samples);
}
Ejemplo n.º 2
0
void mouseb_raw_reg(adv_conf* context)
{
	unsigned i;
	for (i = 0; i < RAW_MOUSE_MAX; ++i) {
		char buf[64];

		snprintf(buf, sizeof(buf), "device_raw_mousetype[%d]", i);
		conf_int_register_enum_default(context, buf, conf_enum(MOUSE_TYPE), MOUSE_PNP);

		snprintf(buf, sizeof(buf), "device_raw_mousedev[%d]", i);
		conf_string_register_default(context, buf, "auto");
	}
}
Ejemplo n.º 3
0
void joystickb_lgrawinput_reg(adv_conf* context)
{
	conf_int_register_enum_default(context, "device_lgrawinput_calibration", conf_enum(OPTION_STUB), CALIBRATION_AUTO);
}
Ejemplo n.º 4
0
void joystickb_lgallegro_reg(adv_conf* context)
{
	conf_int_register_enum_default(context, "device_lgallegro_calibration", conf_enum(OPTION_CALIB), CALIBRATION_AUTO);
	conf_int_register_enum_default(context, "device_lgallegro_filter", conf_enum(OPTION_FILTER), FILTER_AUTO);
}