MCPcopy Create free account
hub / github.com/DarkZek/RustCraft / grab_mouse

Function grab_mouse

client/src/systems/input/platform/native.rs:12–36  ·  view source on GitHub ↗

This system grabs the mouse when the left mouse button is pressed and releases it when the escape key is pressed

(
    mut primary_query: Query<&mut Window, With<PrimaryWindow>>,
    mouse: Res<ButtonInput<MouseButton>>,
    key: Res<ButtonInput<KeyCode>>,
    mut service: ResMut<InputSystem>,
    console_data: 

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected