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); }
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"); } }
void joystickb_lgrawinput_reg(adv_conf* context) { conf_int_register_enum_default(context, "device_lgrawinput_calibration", conf_enum(OPTION_STUB), CALIBRATION_AUTO); }
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); }