fn do_movement(pos: &mut u32, input: &Input) -> bool {
            if input.left() && input.right() {
                false
            } else if *pos > 0 && input.left() {
                *pos -= 1;
                true
            } else if *pos < 77 && input.right() {
                *pos += 1;
                true
            } else {
                false
            }
        }
/// Do movement function. Modifies pos according to input module.
///
/// Also returns if anything acually happened.
Do movement function. Modifies pos according to input module.
Also returns if anything acually happened.
Do movement function . Modifies pos according to input module . Also returns if anything acually happened .
fn do_movement(pos: &mut u32, input: &Input) -> bool {
            if input.left() && input.right() {
                false
            } else if *pos > 0 && input.left() {
                *pos -= 1;
                true
            } else if *pos < 77 && input.right() {
                *pos += 1;
                true
            } else {
                false
            }
        }
fn do_movement ( pos : & mut u32 , input : & Input ) -> bool { if input . left ( ) && input . right ( ) { false } else if * pos > 0 && input . left ( ) { * pos -= 1 ; true } else if * pos < 77 && input . right ( ) { * pos += 1 ; true } else { false } }
Do movement function.
Do movement function .
pos
&mut u32
input
&Input
pos
&mut u32
input
&Input