Symphony Of Empires
Eng3D::Event::MouseButton Struct Reference

#include <event.hpp>

Public Types

enum class  Type : unsigned char { NONE , LEFT , MIDDLE , RIGHT }
 

Public Member Functions

Eng3D::Event::MouseButton::Type from_sdl (int sdl)
 

Public Attributes

Eng3D::Event::MouseButton::Type type = Eng3D::Event::MouseButton::Type::NONE
 Button that is checked. More...
 
bool hold
 Whetever the button is being held. More...
 
glm::ivec2 pos
 

Detailed Description

Definition at line 54 of file event.hpp.

Member Enumeration Documentation

◆ Type

enum Eng3D::Event::MouseButton::Type : unsigned char
strong
Enumerator
NONE 
LEFT 
MIDDLE 
RIGHT 

Definition at line 55 of file event.hpp.

Member Function Documentation

◆ from_sdl()

Eng3D::Event::MouseButton::Type Eng3D::Event::MouseButton::from_sdl ( int  sdl)

Definition at line 101 of file event.cpp.

Member Data Documentation

◆ hold

bool Eng3D::Event::MouseButton::hold

Whetever the button is being held.

Definition at line 62 of file event.hpp.

◆ pos

glm::ivec2 Eng3D::Event::MouseButton::pos

Definition at line 64 of file event.hpp.

◆ type

Button that is checked.

Definition at line 60 of file event.hpp.


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