Joystick library question

ChrisCurl

Active member
Does the joystick library track the last known values for the buttons and analog values, so that I can blindly set the read values in every loop() and it will determine when the HID report(s) need to be sent, or do I need to keep track of the last known values myself and only set/invoke the joystick functions when I detect that there has been a change?

The examples seem to indicate that the joystick library probably does track the last known values, as the example code doesn't have to look to see if it changes in loop(), but I am hoping for verification that this understanding is correct.

Thanks
 
Last edited:
Back
Top