Implement virtual key translation for emscripten (#289)
* Implement virtual key translation * Remove unused std::mem import from the right file * Install git on CircleCI instances * Fix CircleCI config script * Fix type error in emscripten keyboard events
This commit is contained in:
parent
52a7b07c79
commit
192bd798e3
3 changed files with 461 additions and 6 deletions
|
|
@ -2,7 +2,6 @@
|
|||
#![allow(non_snake_case)]
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
use std::mem;
|
||||
use std::os::raw::{c_int, c_char, c_void, c_ulong, c_double};
|
||||
|
||||
pub type EM_BOOL = c_int;
|
||||
|
|
@ -65,6 +64,11 @@ pub const EMSCRIPTEN_EVENT_POINTERLOCKERROR: c_int = 38;
|
|||
|
||||
pub const EM_HTML5_SHORT_STRING_LEN_BYTES: usize = 32;
|
||||
|
||||
pub const DOM_KEY_LOCATION_STANDARD: c_ulong = 0x00;
|
||||
pub const DOM_KEY_LOCATION_LEFT: c_ulong = 0x01;
|
||||
pub const DOM_KEY_LOCATION_RIGHT: c_ulong = 0x02;
|
||||
pub const DOM_KEY_LOCATION_NUMPAD: c_ulong = 0x03;
|
||||
|
||||
pub type em_callback_func = Option<unsafe extern "C" fn()>;
|
||||
|
||||
pub type em_key_callback_func = Option<unsafe extern "C" fn(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue