  
      if self.CS.brake_error:
        events.add(EventName.brakeUnavailable)
  
      if self.CS.CP.openpilotLongitudinalControl and self.CS.cruise_buttons[-1] != self.CS.prev_cruise_buttons:
        buttonEvents = [create_button_event(self.CS.cruise_buttons[-1], self.CS.prev_cruise_buttons, BUTTONS_DICT)]
        # Handle CF_Clu_CruiseSwState changing buttons mid-press
        if self.CS.cruise_buttons[-1] != 0 and self.CS.prev_cruise_buttons != 0:
          buttonEvents.append(create_button_event(0, self.CS.prev_cruise_buttons, BUTTONS_DICT))
  
        ret.buttonEvents = buttonEvents
        events.events.extend(create_button_enable_events(ret.buttonEvents))
  
      # low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s)
      if ret.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.:
        self.low_speed_alert = True
      if ret.vEgo > (self.CP.minSteerSpeed + 4.):
        self.low_speed_alert = False
 
</s> remove     # handle button presses
    events.events.extend(create_button_enable_events(ret.buttonEvents, self.CP.pcmCruise))

 </s> add  </s> remove     events.events.extend(create_button_enable_events(ret.buttonEvents, pcm_cruise=self.CP.pcmCruise))
 </s> add  </s> remove     # handle button presses
    events.events.extend(create_button_enable_events(ret.buttonEvents, pcm_cruise=self.CP.pcmCruise))

 </s> add 
  
      if self.CS.brake_error:
        events.add(EventName.brakeUnavailable)
  









      # low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s)
      if ret.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.:
        self.low_speed_alert = True
      if ret.vEgo > (self.CP.minSteerSpeed + 4.):
        self.low_speed_alert = False
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Common button enable/cancel event creation (#25445)

* handle button presses in create_common_events

* remove from imports

* Handle

* Fix Honda (it hardcodes pcmCruise)

* Update selfdrive/car/volkswagen/interface.py

* Update selfdrive/car/volkswagen/interface.py 
selfdrive/car/hyundai/interface.py