Blackcomb  prealpha
Engine-ish
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
blackcomb::input::MouseWatcher Class Reference

Keeps track of mouse position and informs other components about the mouse. More...

#include <MouseWatcher.h>

Public Member Functions

void update (base::Window &window)
 Update the mouse position. More...
 
glm::vec2 getMouseCoords ()
 

Public Attributes

float mouseSensitivity = 0.05f
 Controls the sensitivity of mouse tracking.
 

Static Public Attributes

static bool shouldWatch = false
 Should we be watching for mouse input?
 

Detailed Description

Keeps track of mouse position and informs other components about the mouse.

Member Function Documentation

◆ update()

void blackcomb::input::MouseWatcher::update ( base::Window window)

Update the mouse position.

Parameters
windowThe window to watch for mouse motion in.
Returns
The change in mouse position.

The documentation for this class was generated from the following files: