Hold key with mapKeyFor in ControlP5

edited June 2015 in Library Questions

hello,

I am checking the ControlP5 library, and came to the mapKeyFor. Basically I want to press the key and hold it to increase some value, without having to tap it all the time.

cp5.mapKeyFor(new ControlKey() {public void keyEvent() {Rotation[0] -= 1;}}, 'w');

I couldnt find any documentation specific about this method, nor other tutorials. Any help?

Thanks

Sign In or Register to comment.