Skip to main content

input_handler

Function input_handler 

Source
fn input_handler(
    input: Res<'_, ButtonInput<KeyCode>>,
    placing_dir: ResMut<'_, CurrentPlacingDir>,
)
Expand description

Handles switching the direction of the train.