/// Create a model for the game controller
Create a model for the game controller
Create a model for the game controller
pub fn new() -> Model {
        Model {
            keys_down: [false; 7],
            current_note_index: 0,
            next_notes: [
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
                VecDeque::with_capacity(32),
            ],
            notes_for_hitsound: [None; 7],
            long_notes_held: [None; 7],
        }
    }
pub fn new ( ) -> Model { Model { keys_down : [ false ; 7 ] , current_note_index : 0 , next_notes : [ VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , VecDeque :: with_capacity ( 32 ) , ] , notes_for_hitsound : [ None ; 7 ] , long_notes_held : [ None ; 7 ] , } }
Create a model for the game controller
Create a model for the game controller