|
|
|
@ -382,7 +382,7 @@ impl SoftwareKeyboard {
@@ -382,7 +382,7 @@ impl SoftwareKeyboard {
|
|
|
|
|
/// # let _runner = test_runner::GdbRunner::default();
|
|
|
|
|
/// # fn main() {
|
|
|
|
|
/// #
|
|
|
|
|
/// use ctru::applets::swkbd::{SoftwareKeyboard, CallbackInput};
|
|
|
|
|
/// use ctru::applets::swkbd::{SoftwareKeyboard, CallbackResult};
|
|
|
|
|
/// let mut keyboard = SoftwareKeyboard::default();
|
|
|
|
|
///
|
|
|
|
|
/// keyboard.set_filter_callback(|text| {
|
|
|
|
@ -678,7 +678,7 @@ impl ParentalLock {
@@ -678,7 +678,7 @@ impl ParentalLock {
|
|
|
|
|
/// # let apt = Apt::new().unwrap();
|
|
|
|
|
/// use ctru::applets::swkbd::{ParentalLock, Error};
|
|
|
|
|
///
|
|
|
|
|
/// let parental_lock = ParentalLock::new();
|
|
|
|
|
/// let mut parental_lock = ParentalLock::new();
|
|
|
|
|
///
|
|
|
|
|
/// match parental_lock.launch(&apt, &gfx) {
|
|
|
|
|
/// Ok(_) => println!("You can access parental-only features and settings."),
|
|
|
|
|