Bubba-3D
0.9.0
Awesome game engine!
|
#include <MouseAxis.h>
Public Types | |
enum | Axis { X, Y } |
Public Member Functions | |
MouseAxis (Axis, float accelerator) | |
ControlStatus | getStatus () |
ControlStatus::Activator | getActivator () |
![]() | |
bool | isDual () |
Additional Inherited Members | |
![]() | |
Input (bool dual) | |
![]() | |
bool | dual |
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.
Definition at line 35 of file MouseAxis.h.
enum MouseAxis::Axis |
Represents the mouse x/y offsets from the center of the window
Definition at line 41 of file MouseAxis.h.
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.