We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4b7ea9 + f3f1163 commit ef3718aCopy full SHA for ef3718a
src/window/keyboard.rs
@@ -10,7 +10,7 @@ impl Key {
10
/// pressed or released while no window was focused and no events were
11
/// triggered.
12
#[must_use]
13
- pub fn is_key_pressed(self) -> bool {
+ pub fn is_pressed(self) -> bool {
14
thread_safety::set_window_thread();
15
16
unsafe { ffi::sfKeyboard_isKeyPressed(self) }
@@ -30,7 +30,7 @@ impl Scancode {
30
31
32
33
- pub fn is_scancode_pressed(self) -> bool {
34
35
unsafe { ffi::sfKeyboard_isScancodePressed(self) }
36
}
0 commit comments