From 28c95a990c573e0a7756f36f1fca7289adcdb410 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Sat, 29 Jul 2017 21:48:34 -0600 Subject: [PATCH] Fix documentation --- ctru-rs/src/services/hid.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctru-rs/src/services/hid.rs b/ctru-rs/src/services/hid.rs index de1be99..b70d890 100644 --- a/ctru-rs/src/services/hid.rs +++ b/ctru-rs/src/services/hid.rs @@ -81,18 +81,18 @@ impl Hid { /// Returns a bitflag struct representing which buttons have just been pressed /// on the current frame (and were not pressed on the previous frame). - pub fn keys_held(&self) -> KeyPad { + pub fn keys_down(&self) -> KeyPad { unsafe { - let keys = ::libctru::hidKeysHeld(); + let keys = ::libctru::hidKeysDown(); KeyPad::from_bits_truncate(keys) } } /// Returns a bitflag struct representing which buttons have been held down /// during the current frame. - pub fn keys_down(&self) -> KeyPad { + pub fn keys_held(&self) -> KeyPad { unsafe { - let keys = ::libctru::hidKeysDown(); + let keys = ::libctru::hidKeysHeld(); KeyPad::from_bits_truncate(keys) } }