Can you have more than one layer active at a time?

This does not work when one of the inputs is a GPIO

I have not yet found an example which shows how to have more than one layer active. Very disappointing.

All I want to do is slow the mouse cursor down when button6 is held on my trackball, it seems a trivial ambition.