diff --git a/src/ui/android.rs b/src/ui/android.rs index 2f8afdfb..f5b49d35 100644 --- a/src/ui/android.rs +++ b/src/ui/android.rs @@ -392,7 +392,7 @@ fn list_controllers_on_jvm(env: &mut Env<'_>) -> jni::errors::Result Vec { for joystick in get_joysticks().iter() { let name = unsafe { sdl3_sys::joystick::SDL_GetJoystickNameForID(*joystick) }; controllers.push(if name.is_null() { - "Unknown controller".to_string() + UNKNOWN_CONTROLLER_NAME.to_string() } else { unsafe { std::ffi::CStr::from_ptr(name).to_str().unwrap() }.to_string() }); @@ -1184,7 +1186,7 @@ pub fn init(ui: &mut ui::Ui) { { unsafe { std::ffi::CStr::from_ptr(name).to_str().unwrap() }.to_string() } else { - "Unknown controller".to_string() + UNKNOWN_CONTROLLER_NAME.to_string() }; let vendor_id =