For the macOS Switch Control various physical and virtual switches can be used. Depending on the needs and application this can be mouse or keyboard switches, emulated switches via WLAN/Bluetooth or external switches via USB interface.
The figure on the right shows a free programmable USB Interface from XKeys for up to 3 switches, which is compatible to the macOS Switch Control.