bevy/crates/bevy_winit/src
Aevyrie 61b98ec80f
Rename trigger.entity() to trigger.target() (#16716)
# Objective

- A `Trigger` has multiple associated `Entity`s - the entity observing
the event, and the entity that was targeted by the event.
- The field `entity: Entity` encodes no semantic information about what
the entity is used for, you can already tell that it's an `Entity` by
the type signature!

## Solution

- Rename `trigger.entity()` to `trigger.target()`

---

## Changelog

- `Trigger`s are associated with multiple entities. `Trigger::entity()`
has been renamed to `Trigger::target()` to reflect the semantics of the
entity being returned.

## Migration Guide

- Rename `Trigger::entity()` to `Trigger::target()`.
- Rename `ObserverTrigger::entity` to `ObserverTrigger::target`
2024-12-08 21:55:09 +00:00
..
accessibility.rs Remove accesskit re-export from bevy_a11y (#16257) 2024-11-08 21:01:16 +00:00
converters.rs Correctly feature gate custom_cursor (#16093) 2024-11-02 01:47:32 +00:00
cursor.rs Rename trigger.entity() to trigger.target() (#16716) 2024-12-08 21:55:09 +00:00
lib.rs bevy_winit(emit raw winit events) (#15884) 2024-12-03 17:20:43 +00:00
state.rs bevy_winit(emit raw winit events) (#15884) 2024-12-03 17:20:43 +00:00
system.rs Reduce iOS cpu usage (#16548) 2024-11-29 00:34:40 +00:00
winit_config.rs Reduce iOS cpu usage (#16548) 2024-11-29 00:34:40 +00:00
winit_monitors.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
winit_windows.rs Handle failed cursor grab mode changes so that the cursor grab mode change can be attempted again (#16293) 2024-11-09 23:30:57 +00:00