The Game Engine  1
Input::MouseState Struct Reference

Helper container to handle mouse clicks. More...

#include <Input.h>

+ Collaboration diagram for Input::MouseState:

Public Member Functions

 MouseState (bool s=false, Point2D p=Point2D(), Uint32 t=0, Point2D rp=Point2D())
 

Public Attributes

bool pressed
 Represents wheter or not the button is pressed. More...
 
Point2D pos
 Represents the mouse's current position. More...
 
Point2D relPos
 Represetns the relative position of the mouse (this is not known on mouse down and up) More...
 
Uint32 time
 The time at which this was recorded (in ticks) More...
 

Detailed Description

Helper container to handle mouse clicks.

Definition at line 74 of file Input.h.

Constructor & Destructor Documentation

Input::MouseState::MouseState ( bool  s = false,
Point2D  p = Point2D(),
Uint32  t = 0,
Point2D  rp = Point2D() 
)
inline

Definition at line 75 of file Input.h.

Member Data Documentation

Point2D Input::MouseState::pos

Represents the mouse's current position.

Definition at line 79 of file Input.h.

bool Input::MouseState::pressed

Represents wheter or not the button is pressed.

Definition at line 77 of file Input.h.

Point2D Input::MouseState::relPos

Represetns the relative position of the mouse (this is not known on mouse down and up)

Definition at line 81 of file Input.h.

Uint32 Input::MouseState::time

The time at which this was recorded (in ticks)

Definition at line 83 of file Input.h.


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