CInputManager.h
上传用户:jinmajixie
上传日期:2022-07-12
资源大小:435k
文件大小:1k
- #ifndef _CINPUTMANAGER_H_
- #define _CINPUTMANAGER_H_
- #include "main.h"
- /*******************************************************************************
- * INPUT MANAGER
- *******************************************************************************/
- class CInputManager
- {
- public:
- CInputManager();
-
- void Init(CTerrainEdit *te);
- // void Init(CSceneManager *s, CSystemStuff *sp);
- void AttachFloatToMouseX(float *something) { mcontrol_x = something; }
- void AttachFloatToMouseY(float *something) { mcontrol_y = something; }
- // CSceneManager *scene_m;
- // CSystemStuff *ssp;
- CTerrainEdit *tedit;
- CVector *rotation;
- CVector *position;
- CVector *lookat;
- CVector nullv;
-
- float *mcontrol_x;
- float *mcontrol_y;
- int action;
- bool mouse_initialized;
- bool rotate_camera;
-
- int mx, my;
- bool mouse_active;
- bool filter;
- POINT current_pos;
- int window_center_x, window_center_y;
- int old_mouse_x, old_mouse_y;
- float sensitivity;
- float yaw;
- float pitch;
- void KeyDown(WPARAM k);
- void KeyUp(WPARAM k);
- void SetMousePointers(CVector *p, CVector *r, CVector *l);
- void MouseMove();
- void MovingObject();
- void CameraRotation();
- void FloatModify();
- void ProcessInput();
- bool keys[256];
- };
- #endif