6 releases (breaking)

0.18.0 Mar 5, 2024
0.17.0 Nov 10, 2023
0.16.0 Oct 30, 2023
0.15.0 Aug 21, 2023
0.1.0 May 3, 2023

#2072 in Game dev

Download history 1264/week @ 2024-01-29 1108/week @ 2024-02-05 803/week @ 2024-02-12 1428/week @ 2024-02-19 1342/week @ 2024-02-26 1946/week @ 2024-03-04 2051/week @ 2024-03-11 1836/week @ 2024-03-18 2003/week @ 2024-03-25 2260/week @ 2024-04-01 1699/week @ 2024-04-08 2844/week @ 2024-04-15 2520/week @ 2024-04-22 1504/week @ 2024-04-29 1993/week @ 2024-05-06 1821/week @ 2024-05-13

8,012 downloads per month
Used in 15 crates (via bevy_mod_picking)

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

~39–78MB
~1M SLoC