Bubba-3D  0.9.0
Awesome game engine!
Public Types | Public Member Functions | List of all members
MouseAxis Class Reference

#include <MouseAxis.h>

Inheritance diagram for MouseAxis:
Input

Public Types

enum  Axis { X, Y }
 

Public Member Functions

 MouseAxis (Axis, float accelerator)
 
ControlStatus getStatus ()
 
ControlStatus::Activator getActivator ()
 
- Public Member Functions inherited from Input
bool isDual ()
 

Additional Inherited Members

- Protected Member Functions inherited from Input
 Input (bool dual)
 
- Protected Attributes inherited from Input
bool dual
 

Detailed Description

An input class that is activated when the mouse isn't in the center. Use this input type with care. If you want this input to behave as in a typical FPS game you have to reset the mouse position to the center of the screen between every frame. If you want the raw mouse position use MousePosition instead.

See also
MousePosition

Definition at line 35 of file MouseAxis.h.

Member Enumeration Documentation

Represents the mouse x/y offsets from the center of the window

Definition at line 41 of file MouseAxis.h.

Constructor & Destructor Documentation

MouseAxis::MouseAxis ( Axis  axis,
float  accelerator 
)

Creates a dual input which is activated when the mouse isn't in the center of the window. The control status value will be the offsetFromCenter*accelerator.

Definition at line 27 of file MouseAxis.cpp.


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