5 #include <IOKit/IOKitLib.h>
6 #include <IOKit/hidsystem/IOHIDShared.h>
13 register kern_return_t kr;
14 mach_port_t ev, service, iter;
16 kr = IOServiceGetMatchingServices(
masterPort, IOServiceMatching( kIOHIDSystemClass ), &iter);
17 assert( KERN_SUCCESS == kr);
19 service = IOIteratorNext( iter );
22 kr = IOServiceOpen( service, mach_task_self(), kIOHIDParamConnectType, &ev);
23 assert( KERN_SUCCESS == kr );
25 IOObjectRelease( service );
26 IOObjectRelease( iter );
36 kr = IOHIDSetCursorEnable( ev, show );
37 assert(KERN_SUCCESS == kr);
40 int main(
int argc,
char **argv)
48 show = (atoi(argv[0]) != 0);
50 assert( KERN_SUCCESS == ( kr = IOMasterPort( bootstrap_port, &
masterPort) ));
assert(prefInfo.fullscreenBtn)
int main(int argc, char **argv)
io_connect_t OpenEventDriver(void)
void TestParams(io_connect_t ev, boolean_t show)