Changeset 49787 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 5, 2013 11:26:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r49779 r49787 39 39 # include <iprt/err.h> 40 40 # include <iprt/semaphore.h> 41 # include <VBox/ usblib.h>41 # include <VBox/sup.h> 42 42 #endif 43 43 … … 1270 1270 IOReturn rc = kIOReturnError; 1271 1271 1272 USBLibResumeBuiltInKeyboard(); 1272 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */ 1273 int rc1 = SUPR3ResumeBuiltinKeyboard(); 1274 if (RT_FAILURE(rc1)) 1275 return rc1; 1273 1276 1274 1277 valueRef = IOHIDValueCreateWithIntegerValue(kCFAllocatorDefault, element, 0, (fEnabled) ? 1 : 0); … … 1294 1297 CFIndex integerValue; 1295 1298 1296 USBLibResumeBuiltInKeyboard(); 1299 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */ 1300 int rc1 = SUPR3ResumeBuiltinKeyboard(); 1301 if (RT_FAILURE(rc1)) 1302 return rc1; 1297 1303 1298 1304 rc = IOHIDDeviceGetValue(hidDevice, element, &valueRef); … … 1915 1921 VBoxHidsState_t *pHidState; 1916 1922 1917 USBLibInit();1918 1919 1923 pHidState = (VBoxHidsState_t *)malloc(sizeof(VBoxHidsState_t)); 1920 1924 AssertReturn(pHidState, NULL); … … 2058 2062 free(pHidState); 2059 2063 2060 USBLibTerm();2061 2062 2064 return rc2; 2063 2065 #else /* !VBOX_WITH_KBD_LEDS_SYNC */
Note:
See TracChangeset
for help on using the changeset viewer.