Skip to content

Commit 71fa555

Browse files
committed
move ImeOptions + InputType to src/input.rs + fills out
This adds and documents the remaining `ImeOptions` (addressing TODO comment) `ImeOptions` now has a getter/setter for the action, based on the `TextInputAction` enum added in #216 There is also a separate `InputTypeClass` that lets you query the mutually-exclusive type class bits from an `InputType`
1 parent b26a5bd commit 71fa555

4 files changed

Lines changed: 383 additions & 225 deletions

File tree

android-activity/src/game_activity/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@ use ndk::configuration::Configuration;
2323
use ndk::native_window::NativeWindow;
2424

2525
use crate::error::InternalResult;
26-
use crate::input::{device_key_character_map, Axis, KeyCharacterMap, TextInputAction};
2726
use crate::util::{
2827
abort_on_panic, forward_stdio_to_logcat, init_android_main_thread, log_panic,
2928
try_get_path_from_ptr,
3029
};
3130
use crate::{
32-
AndroidApp, ConfigurationRef, ImeOptions, InputStatus, InputType, MainEvent, PollEvent, Rect,
33-
WindowManagerFlags,
31+
AndroidApp, ConfigurationRef, InputStatus, MainEvent, PollEvent, Rect, WindowManagerFlags,
3432
};
3533

3634
mod ffi;
3735

3836
pub mod input;
39-
use crate::input::{TextInputState, TextSpan};
37+
use crate::input::{
38+
device_key_character_map, Axis, ImeOptions, InputType, KeyCharacterMap, TextInputAction,
39+
TextInputState, TextSpan,
40+
};
4041
use input::{InputEvent, KeyEvent, MotionEvent};
4142

4243
// The only time it's safe to update the android_app->savedState pointer is

0 commit comments

Comments
 (0)