MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / pointer_state

Method pointer_state

src/lib.rs:978–980  ·  view source on GitHub ↗

Updates the state of the pointer for ply. Used to update scroll containers and for interactions functions.

(&mut self, position: Vector2, is_down: bool)

Source from the content-addressed store, hash-verified

976 /// Updates the state of the pointer for ply.
977 /// Used to update scroll containers and for interactions functions.
978 pub fn pointer_state(&mut self, position: Vector2, is_down: bool) {
979 self.context.set_pointer_state(position, is_down);
980 }
981
982 /// Processes scroll containers using the current pointer state and scroll delta.
983 pub fn update_scroll_containers(

Callers

nothing calls this directly

Calls 1

set_pointer_stateMethod · 0.80

Tested by

no test coverage detected