Changeset 48677 in vbox
- Timestamp:
- Sep 25, 2013 11:05:27 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89299
- Location:
- trunk/src/VBox
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r48647 r48677 44 44 #endif 45 45 #include <IOKit/hid/IOHIDLib.h> 46 #include <IOKit/hidsystem/IOHIDLib.h>47 46 #include <ApplicationServices/ApplicationServices.h> 48 47 #include <Carbon/Carbon.h> … … 1456 1455 } 1457 1456 1458 /** Call VBoxKeyboardService to sync keyboard controls and LEDs. */1459 static void darwinVBoxKeyboardSync(void)1460 {1461 CFDictionaryRef matchingDictionaryRef = IOServiceMatching("org_virtualbox_VBoxKeyboard");1462 if (matchingDictionaryRef)1463 {1464 io_service_t service;1465 service = IOServiceGetMatchingService(kIOMasterPortDefault, matchingDictionaryRef);1466 if (service)1467 {1468 kern_return_t rc;1469 io_connect_t connection;1470 rc = IOServiceOpen(service, mach_task_self(), 0, &connection);1471 if (rc == 0)1472 {1473 Log2(("VBoxKeyboard IOService opened!\n"));1474 1475 rc = IOConnectCallScalarMethod(connection, 0, NULL, 0, NULL, 0);1476 Log2(("VBoxKeyboard IOService IOCTL: 0x%X!\n", rc));1477 1478 rc = IOServiceClose(connection);1479 if (rc == 0)1480 {1481 Log2(("VBoxKeyboard IOService closed!\n"));1482 }1483 else1484 {1485 Log2(("Unable to close VBoxKeyboard IOService: 0x%X\n", rc));1486 }1487 }1488 else1489 {1490 Log2(("Unable to open VBoxKeyboard IOService: 0x%X\n", rc));1491 }1492 1493 IOObjectRelease(service);1494 }1495 else1496 {1497 Log2(("Unable to find VBoxKeyboard IOService\n"));1498 }1499 1500 }1501 else1502 {1503 Log2(("Unable to construct VBoxKeyboard IOService matching dictionary\n"));1504 }1505 }1506 1507 1457 /** 1508 1458 * Apply LEDs state stored in *pState and release resources aquired by *pState. … … 1538 1488 rc2 = kIOReturnError; 1539 1489 } 1540 1541 1490 } 1542 1543 darwinVBoxKeyboardSync();1544 1491 } 1545 1492 -
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r48647 r48677 304 304 305 305 VBoxDrv_SOURCES.darwin = \ 306 darwin/SUPDrv-darwin.cpp \ 307 darwin/SUPKeyboardService-darwin.cpp 306 darwin/SUPDrv-darwin.cpp 308 307 VBoxDrv_SOURCES.linux = \ 309 308 linux/SUPDrv-linux.c -
trunk/src/VBox/HostDrivers/Support/darwin/Info.plist
r48647 r48677 25 25 <key>IOUserClientClass</key> <string>org_virtualbox_SupDrvClient</string> 26 26 </dict> 27 <key>VBoxDrvKeyboard</key>28 <dict>29 <key>CFBundleIdentifier</key> <string>org.virtualbox.kext.VBoxDrv</string>30 <key>IOClass</key> <string>org_virtualbox_VBoxKeyboard</string>31 <key>IOMatchCategory</key> <string>org_virtualbox_VBoxKeyboard</string>32 <key>IOProviderClass</key> <string>IOResources</string>33 <key>IOResourceMatch</key> <string>IOKit</string>34 <key>IOUserClientClass</key> <string>org_virtualbox_VBoxKeyboardClient</string>35 </dict>36 27 </dict> 37 28 <key>OSBundleLibraries</key>
Note:
See TracChangeset
for help on using the changeset viewer.