diff options
| author | Fenrir <[email protected]> | 2017-07-29 15:39:11 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-07-29 21:49:23 -0600 |
| commit | f70d1c9706c8fa8090e38558cf9ed7fc361c82fa (patch) | |
| tree | b21b28bc96041c013ae43d60a7d026c019220b11 /examples/src/bin/hello-both-screens.rs | |
| parent | Bump version (diff) | |
| download | ctru-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.rs | 4 |
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; } } |