<commit_before>// ***WARNING***:
// Many trait impls are highly dependent on the fact that this enum is identical to
// the keycodes enum from SDL2
enum_from_primitive! {
    /// Definitions for mouse buttons.  Intended to be used with nitro::input::Input.
    #[derive(Eq, PartialEq, Copy, Clone, Debug, Serialize, Deserialize)]
    pub enum MouseButton {
        Unknown,
        Left,
        Right,
        Middle,
        X1,
        X2,
        Button6,
        Button7,
        Button8,
    }
}

/// Used to get input from the player's mouse, access from nitro::App.input.mouse
pub struct Mouse {
    mouse_util: MouseUtil,
    pos: Vector,
    relative_pos: Vector,
}

impl Mouse {
    pub fn pos(&self) -> Vector {
        pos
    }

    pub fn set_show_cursor(&mut self, input: bool) {
        mouse_util.show_cursor(input);
    }

    pub fn set_relative_mode(&mut self, input: bool) {
        mouse_util.set_relative_mouse_mode(input);
    }
}

pub fn new(mouse_util: MouseUtil) -> Mouse {
    Mouse {
        mouse_util: mouse_util,
        pos: Vector::new(0.0, 0.0),
        relative_pos: Vector::new(0.0, 0.0),
    }
}

pub fn process_event(mouse: &mut Mouse, event: &Event) {
    match *input_event {
        _ => {}
    }
}<commit_msg>Adding changes to track on development<commit_after>// ***WARNING***:
// Many trait impls are highly dependent on the fact that this enum is identical to
// the keycodes enum from SDL2
enum_from_primitive! {
    /// Definitions for mouse buttons.  Intended to be used with nitro::input::Input.
    #[derive(Eq, PartialEq, Copy, Clone, Debug, Serialize, Deserialize)]
    pub enum MouseButton {
        Unknown,
        Left,
        Right,
        Middle,
        X1,
        X2,
        Button6,
        Button7,
        Button8,
    }
}

/// Used to get input from the player's mouse, access from nitro::App.input.mouse
pub struct Mouse {
    mouse_util: MouseUtil,
    pos: Vector,
    relative_pos: Vector,
}

impl Mouse {
    pub fn pos(&self) -> Vector {
        pos
    }

    pub fn set_show_cursor(&mut self, input: bool) {
        mouse_util.show_cursor(input);
    }

    pub fn set_relative_mode(&mut self, input: bool) {
        mouse_util.set_relative_mouse_mode(input);
    }
}

pub fn new(mouse_util: MouseUtil) -> Mouse {
    Mouse {
        mouse_util: mouse_util,
        pos: Vector::new(0.0, 0.0),
        relative_pos: Vector::new(0.0, 0.0),
    }
}

pub fn process_event(mouse: &mut Mouse, event: &Event) {
    match *input_event {
        Event::MouseMotion{ x, y, .. } => {
            mouse.pos = IntVector::new(x, y);
        }
        _ => {}
    }
}
{'fraction_non_alphanumeric': 0.11630558722919042, 'fraction_numerical': 0.010642341315089319, 'mean_word_length': 2.3106918238993712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1432220', 'n_tokens_mistral': 859, 'n_tokens_neox': 841, 'n_words': 243}