Implement new events system
This commit is contained in:
parent
3aab801f29
commit
ae65b423dd
6 changed files with 117 additions and 96 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use {events, libc};
|
||||
use super::ffi;
|
||||
use Element;
|
||||
use VirtualKeyCode;
|
||||
|
||||
pub fn keycode_to_element(scancode: libc::c_uint) -> Option<Element> {
|
||||
pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> {
|
||||
Some(match scancode {
|
||||
//ffi::XK_BackSpace => events::Backspace,
|
||||
ffi::XK_Tab => events::Tab,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue