VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
VulkanEngine::MouseInput Class Reference

Class which can be used to get input from the mouse. More...

#include <MouseInput.h>

Public Member Functions

 MouseInput ()
 Constructor.
 
 ~MouseInput ()
 Destructor.
 
Eigen::Vector2d getPosition ()
 
Eigen::Vector2d getScrollOffset ()
 
bool leftButtonPressed ()
 

Friends

class Window
 

Detailed Description

Class which can be used to get input from the mouse.

Member Function Documentation

◆ getPosition()

Eigen::Vector2d VulkanEngine::MouseInput::getPosition ( )

Get the current position of the mouse

Returns
X and Y coordinates of the mouse position.

◆ getScrollOffset()

Eigen::Vector2d VulkanEngine::MouseInput::getScrollOffset ( )

Get the current scroll offset mouse

Returns
Horizontal and vertical scroll offsets.

◆ leftButtonPressed()

bool VulkanEngine::MouseInput::leftButtonPressed ( )
Returns
True if the left mouse button is currently pressed

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