13 releases (7 breaking)

0.20.0 Jul 6, 2024
0.19.1 Jun 21, 2024
0.18.0 Mar 5, 2024
0.17.0 Nov 10, 2023
0.2.0 Jul 7, 2023

#2283 in Game dev

Download history 5187/week @ 2024-08-18 7217/week @ 2024-08-25 6648/week @ 2024-09-01 4486/week @ 2024-09-08 2337/week @ 2024-09-15 3401/week @ 2024-09-22 1980/week @ 2024-09-29 1819/week @ 2024-10-06 1938/week @ 2024-10-13 1980/week @ 2024-10-20 1899/week @ 2024-10-27 2585/week @ 2024-11-03 1901/week @ 2024-11-10 1738/week @ 2024-11-17 2312/week @ 2024-11-24 2193/week @ 2024-12-01

8,224 downloads per month
Used in 34 crates (2 directly)

MIT/Apache

83KB
1.5K SLoC

bevy_picking_input is a thin layer that provides unsurprising default inputs to bevy_picking core. The included systems are responsible for sending mouse and touch inputs to their respective Pointers.

Because this resides in its own crate, it's easy to omit it, and provide your own inputs as needed. Because Pointers aren't coupled to the underlying input hardware, you can easily mock inputs, and allow users full accessibility to map whatever inputs they need to pointer input.

If, for example, you wanted to add support for VR input, all you need to do is spawn a pointer entity with a custom PointerId, and write a system that updates its position.

Dependencies

~32–68MB
~1M SLoC