diff options
| author | Fenrir <[email protected]> | 2017-07-29 21:48:34 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-07-29 21:49:35 -0600 |
| commit | 28c95a990c573e0a7756f36f1fca7289adcdb410 (patch) | |
| tree | ac8e42f4a3ad0111015754452285beb04ab450b0 | |
| parent | Update examples (diff) | |
| download | ctru-rs-28c95a990c573e0a7756f36f1fca7289adcdb410.tar.xz ctru-rs-28c95a990c573e0a7756f36f1fca7289adcdb410.zip | |
Fix documentation
| -rw-r--r-- | ctru-rs/src/services/hid.rs | 8 |
1 files 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) } } |