I am very excited to translate some of my older projects to processing for PI.
In the past I used a call like this to monitor the 2 digital pins of my encoder:
wiringPiISR (encoderPinA,INT_EDGE_BOTH, &handleInterrupt); wiringPiISR (encoderPinB,INT_EDGE_BOTH, &handleInterrupt);
And then check the handleInterrupt() function for pin changes.
Is there any way of doing this in processing PI?