Update examples so they build
@ -7,6 +7,7 @@ use ctru::services::hid::{Hid, KeyPad};
fn main() {
// Setup services
ctru::init();
let apt = Apt::init().unwrap();
let hid = Hid::init().unwrap();
let gfx = Gfx::default();
// Initialize services
@ -9,6 +9,7 @@ fn main() {
// Initialize ctrulib service handles.
// Service handles are internally reference-counted. When all instances of a
// service handle go out of scope, the service will be closed.
// The APT service handles application management functions, such as enabling sleep
// mode and jumping to the home menu or to other applications
use ctru::applets::swkbd::{Swkbd, Button};