#include <K3dMouse.h>
Inheritance diagram for K3dMouse:
Public Member Functions | |
K3dMouse (K3dGameData *_pGameData) | |
Wheel up button true only in one frame. | |
~K3dMouse (void) | |
void | UpdateMouse () |
Update mouse. | |
int * | GetMousePosition () |
Get position. | |
int * | MousePosition () |
Get or set mouse cursor position. | |
int * | MousePositionRel () |
Get or set relative mouse cursor position. | |
bool | MouseButtonLeft () |
Catch if left button pressed. | |
bool | MouseButtonRight () |
Catch right button pressed. | |
bool | MouseButtonMiddle () |
Catch middle button pressed. | |
bool & | MouseWheelButtonDown () |
Catch mouse wheel down. | |
bool & | MouseWheelButtonUp () |
Catch mouse wheel Up. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
int | m_aiPosition [2] |
int | m_aiPositionRel [2] |
Position and relative mouse cursor position. | |
bool | m_bIsWheelUp |
bool | m_bIsWheelDown |
Check if mouse wheel button up, down. | |
int | m_iNumWheelDownFrames |
int | m_iNumWheelUpFrames |
Wheel down button true only in one frame. |
Definition at line 38 of file K3dMouse.h.
K3dMouse::K3dMouse | ( | K3dGameData * | _pGameData | ) |
Wheel up button true only in one frame.
Definition at line 33 of file K3dMouse.cpp.
References m_aiPosition, m_aiPositionRel, m_bIsWheelDown, m_bIsWheelUp, m_iNumWheelDownFrames, m_iNumWheelUpFrames, m_pGameData, and K3dSceneData::SetMouse().
K3dMouse::~K3dMouse | ( | void | ) |
Definition at line 48 of file K3dMouse.cpp.
void K3dMouse::UpdateMouse | ( | ) |
Update mouse.
Definition at line 53 of file K3dMouse.cpp.
References m_bIsWheelDown, m_bIsWheelUp, m_iNumWheelDownFrames, and m_iNumWheelUpFrames.
Referenced by K3dScene::Update().
int* K3dMouse::GetMousePosition | ( | ) | [inline] |
Get position.
Definition at line 53 of file K3dMouse.h.
References m_aiPosition.
Referenced by K3dAim::CalcAimRay().
int* K3dMouse::MousePosition | ( | ) | [inline] |
Get or set mouse cursor position.
Definition at line 60 of file K3dMouse.h.
References m_aiPosition.
Referenced by K3dCamera::MouseRotate(), and K3dEngine::ProcessEvent().
int* K3dMouse::MousePositionRel | ( | ) | [inline] |
Get or set relative mouse cursor position.
Definition at line 66 of file K3dMouse.h.
References m_aiPositionRel.
Referenced by K3dEngine::ProcessEvent().
bool K3dMouse::MouseButtonLeft | ( | ) | [inline] |
Catch if left button pressed.
Definition at line 72 of file K3dMouse.h.
Referenced by K3dVM::IsMouseLeft(), K3dVM::IsMouseLeftUp(), and K3dSphereWork::MoveByMouse().
bool K3dMouse::MouseButtonRight | ( | ) | [inline] |
Catch right button pressed.
Definition at line 83 of file K3dMouse.h.
Referenced by K3dVM::IsMouseRight(), K3dVM::IsMouseRightUp(), and K3dSphereWork::MoveByMouse().
bool K3dMouse::MouseButtonMiddle | ( | ) | [inline] |
bool& K3dMouse::MouseWheelButtonDown | ( | ) | [inline] |
Catch mouse wheel down.
Definition at line 105 of file K3dMouse.h.
References m_bIsWheelDown.
Referenced by K3dSphereWork::MoveByMouse(), and K3dEngine::ProcessEvent().
bool& K3dMouse::MouseWheelButtonUp | ( | ) | [inline] |
Catch mouse wheel Up.
Definition at line 120 of file K3dMouse.h.
References m_bIsWheelUp.
Referenced by K3dSphereWork::MoveByMouse(), and K3dEngine::ProcessEvent().
K3dGameData* K3dMouse::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dScene.
Definition at line 40 of file K3dMouse.h.
Referenced by K3dMouse().
int K3dMouse::m_aiPosition[2] [private] |
Definition at line 41 of file K3dMouse.h.
Referenced by GetMousePosition(), K3dMouse(), and MousePosition().
int K3dMouse::m_aiPositionRel[2] [private] |
Position and relative mouse cursor position.
Definition at line 41 of file K3dMouse.h.
Referenced by K3dMouse(), and MousePositionRel().
bool K3dMouse::m_bIsWheelUp [private] |
Definition at line 42 of file K3dMouse.h.
Referenced by K3dMouse(), MouseWheelButtonUp(), and UpdateMouse().
bool K3dMouse::m_bIsWheelDown [private] |
Check if mouse wheel button up, down.
Definition at line 42 of file K3dMouse.h.
Referenced by K3dMouse(), MouseWheelButtonDown(), and UpdateMouse().
int K3dMouse::m_iNumWheelDownFrames [private] |
int K3dMouse::m_iNumWheelUpFrames [private] |
Wheel down button true only in one frame.
Definition at line 44 of file K3dMouse.h.
Referenced by K3dMouse(), and UpdateMouse().