Crate bevy_guessture

source ·

Structs§

  • A resource containing all gesture templates that will be considered. Updating the templates member will affect all future match attempts.
  • An asset format for serialized guesture templat data. Load a .guessture file to automatically update GestureState::templates when the asset is completely loaded.
  • Plugin object to automatically integrate gesture recognition into your Bevy app.
  • A 2d path made up of (x, y) point values.
  • An event following a GestureRecord::Stop event, containing a complete path of points recorded from the mouse input.
  • A normalized gesture template.

Enums§

  • An event to toggle mouse path recording. Upon receiving a Stop event, the plugin will send a corresponding RecordedPath event containing the complete path since the original Start event was received.

Functions§

  • Given a set of templates and a path, returns the template that is the closest match. A score between 0.0 and 1.0 is returned along with the matching template; the closer to 1.0, the more exact the match. Returns an error if the matching process failed for any reason.
  • Given a set of templates and a path, returns the template that is the closest match. A score between 0.0 and 1.0 is returned along with the matching template; the closer to 1.0, the more exact the match. Returns an error if the matching process failed for any reason.

Type Aliases§