Crate bevy_cursor
source ·Expand description
A bevy
plugin to track information about the cursor.
- The entity id of the window on which the cursor is currently;
- The entity id of the camera on which the cursor is currently;
- The position of the cursor on the window (logical position);
- The 2D world position of the cursor (if the feature
2d
is enabled); - The ray emitted by the cursor through the camera (if the feature
3d
is enabled);
§Bevy compatible version
bevy | bevy_cursor |
---|---|
0.14 | 0.4 |
0.13 | 0.3 |
0.12 | 0.2 |
0.11 | 0.1 |
Modules§
Structs§
- A resource that provides the
Location
data of the cursor. - The location of the cursor (its position, window, and camera).
- This plugin adds support to track the cursor’s position, window, and camera.