Closed andreymal closed 1 year ago
I tried to make a typical event handling:
match event { sfml::window::Event::KeyPressed { scan, .. } => { match scan { sfml::ffi::window::Scancode::Escape => { /* ... */ }, _ => { /* ... */ }, } }, _ => { /* ... */} }
...but got an error[E0603]: module `ffi` is private
error[E0603]: module `ffi` is private
I guess someone forgot to add pub use crate::ffi::window::Scancode; in src/window/keyboard.rs
pub use crate::ffi::window::Scancode;
src/window/keyboard.rs
(UPD: and then pub use self::keyboard::Scancode in src/window/mod.rs)
pub use self::keyboard::Scancode
src/window/mod.rs
Oh no, scan is not even implemented for KeyReleased
scan
KeyReleased
Sorry, currently scancodes are not fully implemented. Pull requests are welcome!
This should be resolved by #313. Let me know if you have any problems!
I tried to make a typical event handling:
...but got an
error[E0603]: module `ffi` is private
I guess someone forgot to add
pub use crate::ffi::window::Scancode;
insrc/window/keyboard.rs
(UPD: and then
pub use self::keyboard::Scancode
insrc/window/mod.rs
)