- Timestamp:
- Aug 28, 2018 7:49:26 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r73871 r73924 465 465 int UIKeyboardHandler::state() const 466 466 { 467 return (m_fIsKeyboardCaptured ? UI ViewStateType_KeyboardCaptured : 0) |468 (m_bIsHostComboPressed ? UI ViewStateType_HostKeyPressed : 0) |469 (m_fHostKeyComboPressInserted ? UI ViewStateType_HostKeyPressedInsertion : 0);467 return (m_fIsKeyboardCaptured ? UIKeyboardStateType_KeyboardCaptured : 0) | 468 (m_bIsHostComboPressed ? UIKeyboardStateType_HostKeyPressed : 0) | 469 (m_fHostKeyComboPressInserted ? UIKeyboardStateType_HostKeyPressedInsertion : 0); 470 470 } 471 471 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h
r73871 r73924 5 5 6 6 /* 7 * Copyright (C) 2010-201 7Oracle Corporation7 * Copyright (C) 2010-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineDefs_h__19 #define __ UIMachineDefs_h__18 #ifndef ___UIMachineDefs_h___ 19 #define ___UIMachineDefs_h___ 20 20 21 /* Global includes*/21 /* Other VBox includes: */ 22 22 #include <iprt/cdefs.h> 23 23 24 /* Machine elements enum:*/24 /** Machine window visual element types. */ 25 25 enum UIVisualElement 26 26 { … … 40 40 #ifndef VBOX_WS_MAC 41 41 UIVisualElement_MiniToolBar = RT_BIT(13), 42 #endif /* !VBOX_WS_MAC */42 #endif 43 43 UIVisualElement_AllStuff = 0xFFFF 44 44 }; 45 45 46 /* Mouse states enum:*/46 /** Mouse state types. */ 47 47 enum UIMouseStateType 48 48 { … … 53 53 }; 54 54 55 /* Machine View states enum:*/56 enum UI ViewStateType55 /** Keyboard state types. */ 56 enum UIKeyboardStateType 57 57 { 58 UIViewStateType_KeyboardCaptured = RT_BIT(0), 59 UIViewStateType_HostKeyPressed = RT_BIT(1), 60 /* A host key combo press has been inserted to the guest but not a release yet. */ 61 UIViewStateType_HostKeyPressedInsertion = RT_BIT(2) 58 UIKeyboardStateType_KeyboardCaptured = RT_BIT(0), 59 UIKeyboardStateType_HostKeyPressed = RT_BIT(1), 60 UIKeyboardStateType_HostKeyPressedInsertion = RT_BIT(2) 62 61 }; 63 62 64 #endif / / __UIMachineDefs_h__63 #endif /* !___UIMachineDefs_h___ */
Note:
See TracChangeset
for help on using the changeset viewer.