piston icon indicating copy to clipboard operation
piston copied to clipboard

Does piston have support for setting mouse position?

Open Xt-8 opened this issue 6 years ago • 3 comments

Hi,

This might not be the right place, but I wasn't really sure where to ask questions. I couldn't find anything in the docs about it, does piston support setting the position of the mouse?

Xt-8 avatar Jun 12 '18 22:06 Xt-8

The Piston core doesn't support it, but you can do it through the backend. E.g. Sdl2Window exposes the window handle https://docs.rs/pistoncore-sdl2_window/0.50.0/sdl2_window/struct.Sdl2Window.html#structfield.window

bvssvni avatar Jun 12 '18 22:06 bvssvni

Thank you. Is this where I should ask any questions?

Xt-8 avatar Jun 13 '18 00:06 Xt-8

Yes.

bvssvni avatar Jun 13 '18 01:06 bvssvni