Skip to content

Commit ef3718a

Browse files
Merge pull request #344 from dogunbound/isPressedRename
Use isPressed instead of denoting type in function name
2 parents d4b7ea9 + f3f1163 commit ef3718a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/window/keyboard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ impl Key {
1010
/// pressed or released while no window was focused and no events were
1111
/// triggered.
1212
#[must_use]
13-
pub fn is_key_pressed(self) -> bool {
13+
pub fn is_pressed(self) -> bool {
1414
thread_safety::set_window_thread();
1515

1616
unsafe { ffi::sfKeyboard_isKeyPressed(self) }
@@ -30,7 +30,7 @@ impl Scancode {
3030
/// pressed or released while no window was focused and no events were
3131
/// triggered.
3232
#[must_use]
33-
pub fn is_scancode_pressed(self) -> bool {
33+
pub fn is_pressed(self) -> bool {
3434
thread_safety::set_window_thread();
3535
unsafe { ffi::sfKeyboard_isScancodePressed(self) }
3636
}

0 commit comments

Comments
 (0)