diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-12-27 14:34:13 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-12-27 14:34:13 +0100 |
commit | 92ae05d6ce7d44be31cafe67a4ff3bb39e6cb11a (patch) | |
tree | 3e8a779660455dd991f542ee67dc00903f7afeb5 /examples/cursor.rs | |
parent | f76aba3d3778978bef0087f830ebf69954110233 (diff) | |
parent | bc811fa587ac3f9c996d71cfc285b8edad0bf9f7 (diff) | |
download | glutin-92ae05d6ce7d44be31cafe67a4ff3bb39e6cb11a.tar.gz glutin-92ae05d6ce7d44be31cafe67a4ff3bb39e6cb11a.zip |
Merge pull request #682 from regnierof/master
Fixed setting cursor and cursor state
Diffstat (limited to 'examples/cursor.rs')
-rw-r--r-- | examples/cursor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cursor.rs b/examples/cursor.rs index 167c5cb..995c662 100644 --- a/examples/cursor.rs +++ b/examples/cursor.rs @@ -11,15 +11,15 @@ mod support; #[cfg(target_os = "android")] android_start!(main); -fn main() { +fn main() { let window = glutin::WindowBuilder::new().build().unwrap(); - window.set_title("A fantastic window!"); + window.set_title("A fantastic window!"); unsafe { window.make_current().unwrap() }; let context = support::load(&window); let cursors = [MouseCursor::Default, MouseCursor::Crosshair, MouseCursor::Hand, MouseCursor::Arrow, MouseCursor::Move, MouseCursor::Text, MouseCursor::Wait, MouseCursor::Help, MouseCursor::Progress, MouseCursor::NotAllowed, MouseCursor::ContextMenu, MouseCursor::NoneCursor, MouseCursor::Cell, MouseCursor::VerticalText, MouseCursor::Alias, MouseCursor::Copy, MouseCursor::NoDrop, MouseCursor::Grab, MouseCursor::Grabbing, MouseCursor::AllScroll, MouseCursor::ZoomIn, MouseCursor::ZoomOut, MouseCursor::EResize, MouseCursor::NResize, MouseCursor::NeResize, MouseCursor::NwResize, MouseCursor::SResize, MouseCursor::SeResize, MouseCursor::SwResize, MouseCursor::WResize, MouseCursor::EwResize, MouseCursor::NsResize, MouseCursor::NeswResize, MouseCursor::NwseResize, MouseCursor::ColResize, MouseCursor::RowResize]; let mut cursor_idx = 0; - + for event in window.wait_events() { match event { Event::KeyboardInput(ElementState::Pressed, _, _) => { |