Esempio n. 1
0
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);
}
Esempio n. 2
0
void
Options::add_match(const std::string& lhs, const std::string& rhs)
{
  get_controller_slot().add_match_rule(ControllerMatchRule::from_string(lhs, rhs));
}
Esempio n. 3
0
void
Options::set_led(const std::string& value)
{
  get_controller_slot().set_led_status(boost::lexical_cast<int>(value));
}
Esempio n. 4
0
void
Options::set_force_feedback(const std::string& value)
{
  get_controller_slot().set_force_feedback(boost::lexical_cast<bool>(value));
}
Esempio n. 5
0
void
Options::set_ff_device(const std::string& value)
{
  get_controller_slot().set_ff_device(value);
}