Bonjour,
L'instanciation de la class c'est joystick joy(xPin,yPin,buttonPin) ;
et non joystick::joy(xPin,yPin,buttonPin) ;