aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/hello-both-screens.rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-07-29 15:39:11 -0600
committerFenrir <[email protected]>2017-07-29 21:49:23 -0600
commitf70d1c9706c8fa8090e38558cf9ed7fc361c82fa (patch)
treeb21b28bc96041c013ae43d60a7d026c019220b11 /examples/src/bin/hello-both-screens.rs
parentBump version (diff)
downloadctru-rs-f70d1c9706c8fa8090e38558cf9ed7fc361c82fa.tar.xz
ctru-rs-f70d1c9706c8fa8090e38558cf9ed7fc361c82fa.zip
Update examples
Diffstat (limited to 'examples/src/bin/hello-both-screens.rs')
-rw-r--r--examples/src/bin/hello-both-screens.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/hello-both-screens.rs b/examples/src/bin/hello-both-screens.rs
index ade33d4..627d9b0 100644
--- a/examples/src/bin/hello-both-screens.rs
+++ b/examples/src/bin/hello-both-screens.rs
@@ -3,7 +3,7 @@ extern crate ctru;
use ctru::gfx::{Gfx, Screen};
use ctru::console::Console;
use ctru::services::apt::Apt;
-use ctru::services::hid::{Hid, PadKey};
+use ctru::services::hid::{self, Hid};
fn main() {
// Initialize services
@@ -35,7 +35,7 @@ fn main() {
gfx.swap_buffers();
hid.scan_input();
- if hid.key_down(PadKey::Start) {
+ if hid.keys_down().contains(hid::KEY_START) {
break;
}
}