cursor state on w32
This commit is contained in:
parent
a1b504d16c
commit
e51dd82478
3 changed files with 78 additions and 19 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue