GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events::MouseButtonEventBase Struct Reference

Mouse button Event base. More...

#include <GREM/events/Event.hpp>

Inheritance diagram for grem::events::MouseButtonEventBase:

Public Member Functions

Input getInput () const noexcept
 Get the general identifier of the physical mouse button input.

Public Attributes

MouseButton mouseButton
 Physical mouse button.
uint8_t clickCount
 Number of consecutive clicks within a short time interval.
Public Attributes inherited from grem::events::MouseEventBase
uint32_t mouseID
 Unique identifier of the mouse instance, or 0xFFFFFFFF if it was emulated by touch input, or 0xFFFFFFFE if it was emulated by pen input.
vec2 mousePosition
 Current mouse position in the window.
vec2 relativeMouseMotion
 Position offset relative to the previous position.
Public Attributes inherited from grem::events::InputEventBase
uint32_t windowID
 Unique identifier of the window that this event belongs to, if any.
Public Attributes inherited from grem::events::EventBase
TimePoint timestamp
 Timestamp of the event.

Detailed Description

Mouse button Event base.

Member Function Documentation

◆ getInput()

Input grem::events::MouseButtonEventBase::getInput ( ) const
nodiscardnoexcept

Get the general identifier of the physical mouse button input.

Returns
the input identifier corresponding to the mouse button.

Member Data Documentation

◆ mouseButton

MouseButton grem::events::MouseButtonEventBase::mouseButton

Physical mouse button.

◆ clickCount

uint8_t grem::events::MouseButtonEventBase::clickCount

Number of consecutive clicks within a short time interval.


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