I was having issues using multiple encoder objects with their buttons.
Only the first object that runs the service function would update their value.
The actual encoder part of the object runs fine and keeps their individual positions.
My solution (not sure if ideal) was to remove the static variables keyDownTicks, doubleClickTicks, lastButtonCheck from the service function and move them to the header file.
I was having issues using multiple encoder objects with their buttons.
Only the first object that runs the service function would update their value.
The actual encoder part of the object runs fine and keeps their individual positions.
My solution (not sure if ideal) was to remove the static variables keyDownTicks, doubleClickTicks, lastButtonCheck from the service function and move them to the header file.