Awesome tip!
By 'freeware' do you mean something like the Unlicense? http://unlicense.org/
I have to be a bit of a stickler about this, because I'm modelling proper digital citizenship for my kids. :)
Also added
if ( dsx == 0 && dsy == 0 ) return;
to the beginning of scroll(int dsx, int dsy) so that no work is done if the requested scroll is zero.
I love this code. Most compact way of implementing this that I've seen. Very well done!
What license is this code under? I have some students interested in using it!
Recent Comments | Show All
2017/2/21
Scrolling Tutorial
2017/2/20
Scrolling Tutorial