+inline bool match_controller_helper(const Proto &msg, int field_number, int controller)
+{
+ return (get_controller_mapping_helper(msg, field_number, -1) == controller);
+}
+
+template <class Proto>
+inline int get_button_mapping_helper(const Proto &msg, int field_number, int default_value)