pub struct InputContext {
pub mouse_wheel_line_scale: f32,
pub touch_area_margin: [f64; 4],
/* private fields */
}Fields§
§mouse_wheel_line_scale: f32§touch_area_margin: [f64; 4][left, top, right, bottom]
Implementations§
Source§impl InputContext
impl InputContext
pub fn with_gamepads(self) -> Self
pub fn with_gamepads_custom(self, gamepads: Gilrs) -> Self
pub fn gamepads(&self) -> Option<&Gilrs>
pub fn gamepads_mut(&mut self) -> Option<&mut Gilrs>
pub fn push_mapping( &mut self, mapping: impl Into<InputMappingRef>, ) -> ID<InputMapping>
pub fn pop_mapping(&mut self) -> Option<InputMappingRef>
pub fn top_mapping(&self) -> Option<&InputMappingRef>
pub fn remove_mapping( &mut self, id: ID<InputMapping>, ) -> Option<InputMappingRef>
pub fn mapping( &self, id: ID<InputMapping>, ) -> Option<RwLockReadGuard<'_, InputMapping>>
pub fn stack(&self) -> impl Iterator<Item = &InputMappingRef>
pub fn characters(&self) -> InputCharactersRef
pub fn maintain(&mut self)
pub fn on_event(&mut self, event: &WindowEvent<'_>)
Trait Implementations§
Source§impl Clone for InputContext
impl Clone for InputContext
Source§impl Debug for InputContext
impl Debug for InputContext
Auto Trait Implementations§
impl Freeze for InputContext
impl RefUnwindSafe for InputContext
impl Send for InputContext
impl !Sync for InputContext
impl Unpin for InputContext
impl UnwindSafe for InputContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more