CUGL
Cornell University Game Library
Public Member Functions | Public Attributes | List of all members
cugl::MouseEvent Class Reference

#include <CUMouse.h>

Public Member Functions

 MouseEvent ()
 
 MouseEvent (Uint32 state, const Vec2 &point, const Timestamp &stamp)
 

Public Attributes

Timestamp timestamp
 
ButtonState buttons
 
Vec2 position
 

Detailed Description

This simple class is a struct to hold mouse event information

Constructor & Destructor Documentation

cugl::MouseEvent::MouseEvent ( )
inline

Constructs a new mouse event with the default values

cugl::MouseEvent::MouseEvent ( Uint32  state,
const Vec2 point,
const Timestamp stamp 
)
inline

Constructs a new mouse event with the given values

Parameters
stateThe state of the button set
pointThe current mouse position
stampThe timestamp for the event

Member Data Documentation

ButtonState cugl::MouseEvent::buttons

The current button set; meaning depends on the event

Vec2 cugl::MouseEvent::position

The current mouse position in screen coordinates

Timestamp cugl::MouseEvent::timestamp

The time of the mouse event


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