Merge branch 'buttonlists' into reparse

This commit is contained in:
Dorota Czaplejewicz
2019-09-09 15:11:59 +00:00
6 changed files with 68 additions and 38 deletions

View File

@ -31,6 +31,13 @@ pub mod c {
unsafe { key.unwrap() }; // reference dropped
}
/// Compares pointers to the data
#[no_mangle]
pub extern "C"
fn squeek_key_equal(key: CKeyState, key2: CKeyState) -> u32 {
return Rc::ptr_eq(&key.clone_ref(), &key2.clone_ref()) as u32
}
#[no_mangle]
pub extern "C"
fn squeek_key_is_pressed(key: CKeyState) -> u32 {