most trailer brakes are a electromagnet that attracts to the drum, its attached to the brake shoes via a mechanism, as the wheel turns it rotates the mechanism and that applys the brakes, the controllers I've seen are connected via brake line or another method, and is usually proportional too