Hey all,
Just wondering if there's a way to detect player mouse input?
More specifically, I want to cancel scroll wheel input.
Thanks.
Detecting mouse input?
Discussion in 'Rust Development' started by Steenamaroo, May 12, 2017.
-
Wulf Community Admin
You can only listen for key and mouse presses, there is no mouse input sent to the server other than that.
-
Oh, ok. Thanks!
How do we listen for clicks/keys? Is polling possible? -
You can try void OnPlayerInput(BasePlayer player, InputState input) however I'm not sure if that hook is still working. Keep in mind that's an expensive task.
-
Wulf Community Admin