#include <EventManager.h>
Collaboration diagram for Teddy::SpaceGame::EventManager:
Public Methods | |
EventManager (Root *root) | |
void | applyControls () |
void | chooseMouseMode () |
void | mouseMotion (const int b, const int x_delta, const int y_delta) |
mouse motion. More... | |
void | cameraRotate (const int x, const int y) |
translate camera. More... | |
void | cameraTranslate (const int x, const int y) |
rotate camera. More... | |
Protected Attributes | |
Root * | root |
float | control_roll |
float | control_heading |
float | control_pitch |
bool | control_speed_more |
bool | control_speed_less |
float | control_speed |
int | control_last_button |
int | mouse_mode |
Currently active mouse control mode. More... |
Definition at line 40 of file EventManager.h.
|
Definition at line 47 of file EventManager.cpp. References control_heading, control_last_button, control_pitch, control_roll, control_speed, control_speed_less, control_speed_more, MM_CONTROL_CAMERA, mouse_mode, and root. Referenced by mouseMotion(). |
|
Definition at line 139 of file EventManager.cpp. References control_heading, control_pitch, control_roll, control_speed, and root. |
|
translate camera.
Definition at line 63 of file EventManager.cpp. References control_heading, and control_pitch. |
|
rotate camera.
Definition at line 70 of file EventManager.cpp. References control_roll, and control_speed. |
|
Definition at line 77 of file EventManager.cpp. References MM_CONTROL_CAMERA, MM_ROTATE_SCALE_INSTANCE, MM_TRANSLATE_INSTANCE, and mouse_mode. |
|
mouse motion.
Definition at line 102 of file EventManager.cpp. References EventManager(), MM_CONTROL_CAMERA, MM_ROTATE_SCALE_INSTANCE, MM_TRANSLATE_INSTANCE, and root. |
|
Definition at line 55 of file EventManager.h. Referenced by applyControls(), cameraRotate(), and EventManager(). |
|
Definition at line 60 of file EventManager.h. Referenced by EventManager(). |
|
Definition at line 56 of file EventManager.h. Referenced by applyControls(), cameraRotate(), and EventManager(). |
|
Definition at line 54 of file EventManager.h. Referenced by applyControls(), cameraTranslate(), and EventManager(). |
|
Definition at line 59 of file EventManager.h. Referenced by applyControls(), cameraTranslate(), and EventManager(). |
|
Definition at line 58 of file EventManager.h. Referenced by EventManager(). |
|
Definition at line 57 of file EventManager.h. Referenced by EventManager(). |
|
Currently active mouse control mode.
Definition at line 62 of file EventManager.h. Referenced by chooseMouseMode(), and EventManager(). |
|
Definition at line 51 of file EventManager.h. Referenced by applyControls(), EventManager(), and mouseMotion(). |