Struct crayon::input::InputSystemShared [] [src]

pub struct InputSystemShared { /* fields omitted */ }

The multi-thread friendly APIs of InputSystem.

Methods

impl InputSystemShared
[src]

[src]

Returns true if a keyboard is attached

[src]

Checks if a key is currently held down.

[src]

Checks if a key has been pressed down during the last frame.

[src]

Checks if a key has been released during the last frame.

[src]

Checks if a key has been repeated during the last frame.

[src]

Gets captured text during the last frame.

impl InputSystemShared
[src]

[src]

Returns true if a mouse is attached

[src]

Checks if a mouse button is held down.

[src]

Checks if a mouse button has been pressed during last frame.

[src]

Checks if a mouse button has been released during last frame.

[src]

Checks if a mouse button has been clicked during last frame.

[src]

Checks if a mouse button has been double clicked during last frame.

[src]

Gets the mouse position relative to the top-left hand corner of the window.

[src]

Gets mouse movement in pixels since last frame.

[src]

Gets the scroll movement of mouse in pixels, usually provided by mouse wheel.

impl InputSystemShared
[src]

[src]

Returns true if a touchpad is attached

[src]

Checks if the nth finger is touched during last frame.

[src]

Gets the position of the nth touched finger.

[src]

Gets the tap gesture.

[src]

Gets the double tap gesture.

[src]

Gets the panning gesture.

Trait Implementations

Auto Trait Implementations