Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Public Attributes | List of all members
gf::MouseButtonEvent Struct Reference

Mouse button event parameters (EventType::MouseButtonPressed, EventType::MouseButtonReleased) More...

#include <gf/Event.h>

Public Attributes

uint32_t windowId
 The window id of the event. More...
 
MouseButton button
 Code of the button that has been pressed. More...
 
Vector2i coords
 Position of the mouse cursor. More...
 
uint8_t clicks
 Number of clicks. More...
 

Detailed Description

Mouse button event parameters (EventType::MouseButtonPressed, EventType::MouseButtonReleased)

Member Data Documentation

◆ button

MouseButton gf::MouseButtonEvent::button

Code of the button that has been pressed.

◆ clicks

uint8_t gf::MouseButtonEvent::clicks

Number of clicks.

◆ coords

Vector2i gf::MouseButtonEvent::coords

Position of the mouse cursor.

◆ windowId

uint32_t gf::MouseButtonEvent::windowId

The window id of the event.