DIJoystick.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DIJoystick.h
- #ifndef _DIJOYSTICK__H
- #define _DIJOYSTICK__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DIDevice.h"
- class CDIJoystick : public CDIDevice
- {
- friend class CDirectInput;
- protected:
- CDIJoystick(void);
- virtual ~CDIJoystick();
- public:
- virtual bool Create(LPDIRECTINPUT7 lpDI, HWND hWnd);
- LONG Get(int Id);
- HRESULT GetObjectInfo(int Id, DIDEVICEOBJECTINSTANCE* pObjectInfo);
- HRESULT SetRange(int Id, int Min, int Max, int dwDeadZone = 2000);
- bool SetAxisMode(bool bAbsolute);
- virtual HRESULT Update(void);
- protected:
- DIJOYSTATE m_JoyState;
- };
- #endif // _DIJOYSTICK__H