Struct sdl2::mouse::MouseUtil [] [src]

pub struct MouseUtil { /* fields omitted */ }

Mouse utility functions. Access with Sdl::mouse().

let sdl_context = sdl2::init().unwrap();

// Hide the cursor
sdl_context.mouse().show_cursor(false);

Methods

impl MouseUtil
[src]

Gets the id of the window which currently has mouse focus.