Moved the prevButtonSet variable to state.h (to make it more global)
Merge branch 'master' into Robbin
Implemented support for changing textures depending on input + bugfix: input sometimes register several time when changing state