cursor state on w32

This commit is contained in:
Nathaniel Theis 2015-04-01 10:04:43 -07:00
parent a1b504d16c
commit e51dd82478
3 changed files with 78 additions and 19 deletions

View file

@ -2,7 +2,10 @@ use std::sync::atomic::AtomicBool;
use std::mem;
use std::ptr;
use std::ffi::CString;
use std::sync::Mutex;
use std::sync::{
Arc,
Mutex
};
use std::sync::mpsc::Receiver;
use libc;
use {CreationError, Event, MouseCursor};
@ -47,7 +50,7 @@ pub struct Window {
is_closed: AtomicBool,
/// The current cursor state.
cursor_state: Mutex<CursorState>,
cursor_state: Arc<Mutex<CursorState>>,
}
unsafe impl Send for Window {}