aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-07-29 21:48:34 -0600
committerFenrir <[email protected]>2017-07-29 21:49:35 -0600
commit28c95a990c573e0a7756f36f1fca7289adcdb410 (patch)
treeac8e42f4a3ad0111015754452285beb04ab450b0
parentUpdate examples (diff)
downloadctru-rs-28c95a990c573e0a7756f36f1fca7289adcdb410.tar.xz
ctru-rs-28c95a990c573e0a7756f36f1fca7289adcdb410.zip
Fix documentation
-rw-r--r--ctru-rs/src/services/hid.rs8
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)
}
}