map_str_to_val
int new_mode = map_str_to_val(pointer_mode_map, buf, count);
int new_mode = map_str_to_val(coordinate_mode_map, buf, count);
int new_mode = map_str_to_val(tool_mode_map, buf, count);
int new_button = map_str_to_val(stylus_button_map, buf, count);
int new_button = map_str_to_val(stylus_button_map, buf, count);
int new_button = map_str_to_val(mouse_button_map, buf, count);
int new_button = map_str_to_val(mouse_button_map, buf, count);
int new_button = map_str_to_val(mouse_button_map, buf, count);