"joy_rot.y=255"
This is NOT a comparison, you assign a value there.
Either use integer/ (int)/ floor() to get whole numbers or better use a comparison:

var input_right = (joy_rot.y > 192); // or some other value


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends