Hello,
I'm using teensy 4.1 for a extreme joystick project and I have problems with using joystick.axis.
My error messages are
Code:
ThrottleQuadrantLatest: In function 'void Quadrant()':
ThrottleQuadrantLatest:179: error: 'class usb_joystick_class' has no member named 'Rx'
   Joystick.Rx(potPinVal[0]);
            ^
ThrottleQuadrantLatest:181: error: 'class usb_joystick_class' has no member named 'Ry'
   Joystick.Ry(potPinVal[1]);
            ^
'class usb_joystick_class' has no member named 'Rx'

Code
ThrottleQuadrantLatest.ino
Wiring
Click image for larger version. 

Name:	1.png 
Views:	4 
Size:	298.1 KB 
ID:	22228
I'm using arduino software and Keypad and Encoder libraries.

So what should i put after Joystick. to change joystick values?