Skip to content

Provide Ui methods that indicate whether or not user input is currently being captured. #612

@mitchmindtree

Description

@mitchmindtree

The method would return None if the input is not captured, otherwise returning Some(widget::Index) with the index of the widget currently capturing the input. I.e.

if ui.is_mouse_captured().is_none() {
    // Do stuff with mouse
}

if ui.is_keyboard_captured().is_none() {
    // Do stuff with keyboard
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions