mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031632: Draw Harness - handle 3d mouse Raw HID input on Windows
WNT_HIDSpaceMouse - added auxiliary class for processing 3d mouse Raw HID input. AIS_ViewController::Update3dMouse() - added default processor for 3d mouse input event. ViewerTest now redirects WM_INPUT to AIS_ViewController::Update3dMouse(). Aspect_VKey enumeration has been extended by 3D view buttons. WNT_Window::RegisterRawInputDevices() has beend added as a small wrapper over WinAPI RegisterRawInputDevices() for common HID input devices. AIS_ViewCube now stores animation duration within AIS_AnimationCamera instead of dedicated duplicating class property.
This commit is contained in:
@@ -139,6 +139,20 @@ enum Aspect_VKeyBasic
|
||||
Aspect_VKey_BrowserFavorites,
|
||||
Aspect_VKey_BrowserHome,
|
||||
|
||||
// 3d view keys
|
||||
Aspect_VKey_ViewTop,
|
||||
Aspect_VKey_ViewBottom,
|
||||
Aspect_VKey_ViewLeft,
|
||||
Aspect_VKey_ViewRight,
|
||||
Aspect_VKey_ViewFront,
|
||||
Aspect_VKey_ViewBack,
|
||||
Aspect_VKey_ViewAxoLeftProj,
|
||||
Aspect_VKey_ViewAxoRightProj,
|
||||
Aspect_VKey_ViewFitAll,
|
||||
Aspect_VKey_ViewRoll90CW,
|
||||
Aspect_VKey_ViewRoll90CCW,
|
||||
Aspect_VKey_ViewSwitchRotate,
|
||||
|
||||
// modifier keys, @sa Aspect_VKey_ModifiersLower and Aspect_VKey_ModifiersUpper below
|
||||
Aspect_VKey_Shift,
|
||||
Aspect_VKey_Control,
|
||||
|
@@ -65,6 +65,11 @@ public:
|
||||
return myKeys[theKey].Status == KeyStatus_Pressed;
|
||||
}
|
||||
|
||||
//! Return mutex for thread-safe updates.
|
||||
//! All operations in class implicitly locks this mutex,
|
||||
//! so this method could be used only for batch processing of keys.
|
||||
Standard_Mutex& Mutex() { return myLock; }
|
||||
|
||||
public:
|
||||
|
||||
//! Reset the key state into unpressed state.
|
||||
|
Reference in New Issue
Block a user