CUGL 2.0
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

◆ MouseWheelEvent() [1/2]

cugl::MouseWheelEvent::MouseWheelEvent ( )
inline

Constructs a new mouse wheel event with the default values

◆ MouseWheelEvent() [2/2]

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

◆ direction

Vec2 cugl::MouseWheelEvent::direction

The movement of the mouse wheel position

◆ flipped

bool cugl::MouseWheelEvent::flipped

Whether the direction of the mouse wheel is flipped

◆ timestamp

Timestamp cugl::MouseWheelEvent::timestamp

The time of the mouse wheel event


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