I've got a toy project that's using the Amethyst game engine. I'm trying to write my own System
for collecting user input, similar to the FlyMovementSystem
and ArcBallRotationSystem
they have implemented here.
It appears the right way to go about collecting mouse movements is via an EventChannel<Event>
, where Event
comes from the winit
crate, which Amethyst depends on, but does not re-export.
What's the "right" way to reference the same winit::Event
that Amethyst does?
- Should I add
winit
to myCargo.toml
file? If so, what is the recommended way to specify the version? (Is there some keyword I can use instead of a specific version number, to allow me to "inherit" the dependency from Amethyst?) - Is referencing sub-dependencies actually discouraged? If so, what should I be doing instead?