Struct sdl2::mouse::MouseUtil [−][src]
pub struct MouseUtil { /* fields omitted */ }
Expand description
Mouse utility functions. Access with Sdl::mouse()
.
let sdl_context = sdl2::init().unwrap();
// Hide the cursor
sdl_context.mouse().show_cursor(false);
Implementations
Gets the id of the window which currently has mouse focus.