matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Loading...
Searching...
No Matches
Public Attributes | List of all members
engine::platform::MousePosition Struct Reference

Represents mouse position in a given frame relative to the top left corner of the screen. More...

#include <Input.hpp>

Public Attributes

float x
 X coordinate of the mouse position relative to the top left corner of the screen.
 
float y
 Y coordinate of the mouse position relative to the top left corner of the screen.
 
float dx
 The change in the X coordinate from the previous frame.
 
float dy
 The change in the Y coordinate from the previous frame.
 
float scroll
 The rotation of the scroll button.
 

Detailed Description

Represents mouse position in a given frame relative to the top left corner of the screen.

Member Data Documentation

◆ x

float engine::platform::MousePosition::x

X coordinate of the mouse position relative to the top left corner of the screen.

◆ y

float engine::platform::MousePosition::y

Y coordinate of the mouse position relative to the top left corner of the screen.

◆ dx

float engine::platform::MousePosition::dx

The change in the X coordinate from the previous frame.

◆ dy

float engine::platform::MousePosition::dy

The change in the Y coordinate from the previous frame.

◆ scroll

float engine::platform::MousePosition::scroll

The rotation of the scroll button.


The documentation for this struct was generated from the following file: