Crate bevy_guessture

Source

Structs§

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

Enums§

Error
GestureRecord
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.
TemplateError

Functions§

find_matching_template
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.
find_matching_template_with_defaults
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§

PathCoord