ASGE  3.2.0
Simple Game Framework in GL
ASGE::ClickEvent Struct Reference

#include <InputEvents.hpp>

Inheritance diagram for ASGE::ClickEvent:
[legend]
Collaboration diagram for ASGE::ClickEvent:
[legend]

Public Attributes

double xpos = 0
 
double ypos = 0
 
int button = -1
 
int action = -1
 
ASGE::KEYS::MODS mods = 0
 

Detailed Description

a mouse click event

A click event provides any related information that can be used to drive a game through mouse clicks.

See also
EventData

Definition at line 76 of file InputEvents.hpp.

Member Data Documentation

◆ action

int ASGE::ClickEvent::action = -1

Button action. Has it been pressed or released?

Definition at line 81 of file InputEvents.hpp.

◆ button

int ASGE::ClickEvent::button = -1

Mouse button. The mouse button clicked.

Definition at line 80 of file InputEvents.hpp.

◆ mods

ASGE::KEYS::MODS ASGE::ClickEvent::mods = 0

Modifiers. Any modifiers applied i.e. ctrl, shift etc.

Definition at line 82 of file InputEvents.hpp.

◆ xpos

double ASGE::ClickEvent::xpos = 0

X. The current mouse position on the X axis.

Definition at line 78 of file InputEvents.hpp.

◆ ypos

double ASGE::ClickEvent::ypos = 0

Y. The current mouse position on the Y axis.

Definition at line 79 of file InputEvents.hpp.


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