void Options::set_match_group(const std::string& str) { boost::shared_ptr<ControllerMatchRuleGroup> group(new ControllerMatchRuleGroup); process_name_value_string(str, boost::bind(&ControllerMatchRuleGroup::add_rule_from_string, group, _1, _2)); get_controller_slot().add_match_rule(group); }
void Options::add_match(const std::string& lhs, const std::string& rhs) { get_controller_slot().add_match_rule(ControllerMatchRule::from_string(lhs, rhs)); }
void Options::set_led(const std::string& value) { get_controller_slot().set_led_status(boost::lexical_cast<int>(value)); }
void Options::set_force_feedback(const std::string& value) { get_controller_slot().set_force_feedback(boost::lexical_cast<bool>(value)); }
void Options::set_ff_device(const std::string& value) { get_controller_slot().set_ff_device(value); }