diff options
Diffstat (limited to 'winit/src')
| -rw-r--r-- | winit/src/conversion.rs | 10 | ||||
| -rw-r--r-- | winit/src/lib.rs | 2 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index ef789296..478dbddd 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -1,7 +1,7 @@  //! Convert [`winit`] types into [`iced_runtime`] types, and viceversa.  //!  //! [`winit`]: https://github.com/rust-windowing/winit -//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime +//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.12/runtime  use crate::core::keyboard;  use crate::core::mouse;  use crate::core::touch; @@ -392,7 +392,7 @@ pub fn mouse_interaction(  /// Converts a `MouseButton` from [`winit`] to an [`iced`] mouse button.  ///  /// [`winit`]: https://github.com/rust-windowing/winit -/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10 +/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12  pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {      match mouse_button {          winit::event::MouseButton::Left => mouse::Button::Left, @@ -408,7 +408,7 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {  /// state.  ///  /// [`winit`]: https://github.com/rust-windowing/winit -/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10 +/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12  pub fn modifiers(      modifiers: winit::keyboard::ModifiersState,  ) -> keyboard::Modifiers { @@ -435,7 +435,7 @@ pub fn cursor_position(  /// Converts a `Touch` from [`winit`] to an [`iced`] touch event.  ///  /// [`winit`]: https://github.com/rust-windowing/winit -/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10 +/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12  pub fn touch_event(      touch: winit::event::Touch,      scale_factor: f64, @@ -466,7 +466,7 @@ pub fn touch_event(  /// Converts a `VirtualKeyCode` from [`winit`] to an [`iced`] key code.  ///  /// [`winit`]: https://github.com/rust-windowing/winit -/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10 +/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12  pub fn key(key: winit::keyboard::Key) -> keyboard::Key {      use keyboard::key::Named;      use winit::keyboard::NamedKey; diff --git a/winit/src/lib.rs b/winit/src/lib.rs index 948576a2..3b1b0d3a 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -11,7 +11,7 @@  //! Additionally, a [`conversion`] module is available for users that decide to  //! implement a custom event loop.  //! -//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime +//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.12/runtime  //! [`winit`]: https://github.com/rust-windowing/winit  //! [`conversion`]: crate::conversion  #