Removed warnings by explicitly casting to `u8` for controllers

And here.

I think I've caught all the bugs.