Lines Matching refs:device
15 BInputDevice *device;
33 device = (BInputDevice *) list.ItemAt(i);
36 device->Name(),
37 device->Type() == B_POINTING_DEVICE ? "B_POINTING_DEVICE" :
38 device->Type() == B_KEYBOARD_DEVICE ? "B_KEYBOARD_DEVICE" : "B_UNDEFINED_DEVICE",
39 device->IsRunning() ? "running" : "stopped");
47 BInputDevice *device;
50 device = find_input_device(name);
51 if (device == NULL) {
52 printf("Error finding device \"%s\"\n", name);
54 else if ((status = device->Start()) != B_OK) {
55 printf("Error starting device \"%s\" (%" B_PRId32 ")\n", name, status);
58 printf("Started device \"%s\"\n", name);
60 if (device != NULL)
61 delete device;
66 BInputDevice *device;
69 device = find_input_device(name);
70 if (device == NULL) {
71 printf("Error finding device \"%s\"\n", name);
73 else if ((status = device->Stop()) != B_OK) {
74 printf("Error stopping device \"%s\" (%" B_PRId32 ")\n", name, status);
77 printf("Stopped device \"%s\"\n", name);
79 if (device != NULL)
80 delete device;