Controlp5 - Multiple buttons that use one function

Also not what I mean, but I have an alternative to my problem because I am seeing that what I want isn’t possible: Controlp5 - Buttons with private functions by using a private function.