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

#include <CUMouse.h>

Public Member Functions

 MouseWheelEvent ()
 
 MouseWheelEvent (const Vec2 &offset, const Timestamp &stamp, bool flip=false)
 

Public Attributes

Timestamp timestamp
 
Vec2 direction
 
bool flipped
 

Detailed Description

This simple class is a struct to hold mouse wheel information

The mouse wheel movement is an integer vector with positive meaning up/right and negative meaning down/left. This directions will be reversed if flipped is true.

Constructor & Destructor Documentation

cugl::MouseWheelEvent::MouseWheelEvent ( )
inline

Constructs a new mouse wheel event with the default values

cugl::MouseWheelEvent::MouseWheelEvent ( const Vec2 offset,
const Timestamp stamp,
bool  flip = false 
)
inline

Constructs a new mouse wheel event with the given values

Parameters
offsetThe amount the mouse wheel was moved
stampThe timestamp for the event
flipWhether the direction of the mouse wheel is flipped

Member Data Documentation

Vec2 cugl::MouseWheelEvent::direction

The movement of the mouse wheel position

bool cugl::MouseWheelEvent::flipped

Whether the direction of the mouse wheel is flipped

Timestamp cugl::MouseWheelEvent::timestamp

The time of the mouse wheel event


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