PistonDevelopers / input

DEPRECATED - moved into the piston repo
MIT License
7 stars 11 forks source link

Add `ResizeArgs` to be passed with resize events #105

Open bvssvni opened 9 years ago

bvssvni commented 9 years ago
pub struct ResizeArgs {
    pub width: u32,
    pub height: u32,
    pub draw_width: u32,
    pub draw_height: u32,
}

The problem is that applications do not know the draw size when responding to resize events and need to get this from the window object manually.