#include <mouse.h>
Collaboration diagram for MOUSE:

Public Member Functions | |
| MOUSE () | |
| void | Update (CAMERA &cam, int screenw, int screenh, float timefactor, float fps) |
| float | GetZoom () |
| QUATERNION | GetDir () |
| void | InitDir (QUATERNION newd) |
| bool | GetMouseControls (float *x, float *y, bool *click_l, bool *click_r) |
| bool | IsPressed (int which_btn) |
| void | SetDeadzoneY (float newydz) |
| void | SetSensitivityX (float newxs) |
| void | SetSensitivityY (float newys) |
| float | GetDeadzoneY () |
| float | GetSensitivityX () |
| float | GetSensitivityY () |
| void | GetMousePos (int &xpos, int &ypos) |
| void | GetMouseButtons (bool &btn_l, bool &btn_m, bool &btn_r, bool &scroll_up, bool &scroll_down) |
| void | UpdateSettings () |
Private Member Functions | |
| void | UpdateCamera (CAMERA &cam, int mousePos_x, int mousePos_y, float timefactor, float fps) |
| void | UpdateSteering (int x, int y) |
| void | ClearBounce () |
Private Attributes | |
| float | mousezoom |
| QUATERNION | viewdir |
| float | mouse_sensitivity_x |
| float | mouse_sensitivity_y |
| float | deadzone_y |
| float | steer_x |
| float | steer_y |
| bool | lbounce |
| bool | mbounce |
| bool | rbounce |
| bool | lastl |
| bool | lastm |
| bool | lastr |
| bool | upbounce |
| bool | downbounce |
| bool | lastup |
| bool | lastdown |
Definition at line 16 of file mouse.h.
|
|
|
|
|
|
|
|
Definition at line 41 of file mouse.h. References deadzone_y. |
|
|
Definition at line 34 of file mouse.h. References viewdir. |
|
||||||||||||||||||||||||
|
Definition at line 240 of file mouse.cpp. References downbounce, lbounce, mbounce, NULL, rbounce, and upbounce. Referenced by VGUI::Gui::MousePress(), and VGUI::Gui::MouseRelease(). |
|
||||||||||||||||||||
|
Definition at line 187 of file mouse.cpp. References deadzone_y, downbounce, lastdown, lastl, lastm, lastr, lastup, lbounce, mbounce, NULL, rbounce, steer_x, steer_y, and upbounce. |
|
||||||||||||
|
Definition at line 229 of file mouse.cpp. Referenced by VGUI::Gui::MousePress(), VGUI::Gui::MouseRelease(), and VGUI::Gui::MouseUpdate(). |
|
|
Definition at line 42 of file mouse.h. References mouse_sensitivity_x. |
|
|
Definition at line 43 of file mouse.h. References mouse_sensitivity_y. |
|
|
Definition at line 33 of file mouse.h. References mousezoom. |
|
|
Definition at line 35 of file mouse.h. References viewdir. |
|
|
Definition at line 224 of file mouse.cpp. References NULL. Referenced by VGUI::Gui::MousePress(). |
|
|
Definition at line 38 of file mouse.h. References deadzone_y. |
|
|
Definition at line 39 of file mouse.h. References mouse_sensitivity_x. |
|
|
Definition at line 40 of file mouse.h. References mouse_sensitivity_x. |
|
||||||||||||||||||||||||
|
Definition at line 3 of file mouse.cpp. References UpdateSteering(). Referenced by Update(). |
|
||||||||||||||||||||||||
|
Definition at line 53 of file mouse.cpp. References cam, EARTH_RADIUS, mousezoom, VERTEX::normalize(), NULL, CAMERA::position, QUATERNION::RotateVec(), QUATERNION::SetAxisAngle(), QUATERNION::SetEuler(), viewdir, VERTEX::x, VERTEX::y, VERTEX::z, and ZOOMSPEED. |
|
|
Definition at line 255 of file mouse.cpp. References deadzone_y, SETTINGS::Get(), mouse_sensitivity_x, mouse_sensitivity_y, and settings. Referenced by VGUI::Gui::ProcessAction(). |
|
||||||||||||
|
Definition at line 166 of file mouse.cpp. References mouse_sensitivity_x, mouse_sensitivity_y, steer_x, and steer_y. Referenced by Update(). |
|
|
Definition at line 25 of file mouse.h. Referenced by GetDeadzoneY(), GetMouseControls(), SetDeadzoneY(), and UpdateSettings(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseButtons(), and GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by ClearBounce(), and GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by ClearBounce(), and GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by ClearBounce(), GetMouseButtons(), and GetMouseControls(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseButtons(), and GetMouseControls(). |
|
|
Definition at line 24 of file mouse.h. Referenced by GetSensitivityX(), SetSensitivityX(), SetSensitivityY(), UpdateSettings(), and UpdateSteering(). |
|
|
Definition at line 24 of file mouse.h. Referenced by GetSensitivityY(), UpdateSettings(), and UpdateSteering(). |
|
|
Definition at line 19 of file mouse.h. Referenced by GetZoom(), MOUSE(), and UpdateCamera(). |
|
|
Definition at line 27 of file mouse.h. Referenced by ClearBounce(), GetMouseButtons(), and GetMouseControls(). |
|
|
Definition at line 26 of file mouse.h. Referenced by GetMouseControls(), MOUSE(), and UpdateSteering(). |
|
|
Definition at line 26 of file mouse.h. Referenced by GetMouseControls(), MOUSE(), and UpdateSteering(). |
|
|
Definition at line 27 of file mouse.h. Referenced by GetMouseButtons(), and GetMouseControls(). |
|
|
Definition at line 20 of file mouse.h. Referenced by GetDir(), InitDir(), and UpdateCamera(). |
1.4.6