This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
Definition at line 25 of file mediactrl.h. |
|
|
Definition at line 24 of file mediactrl.h. Referenced by JogShuttle::button(). |
|
|
Definition at line 78 of file mediactrl.h. |
|
|
Definition at line 87 of file mediactrl.h. |
|
|
Definition at line 88 of file mediactrl.h. |
|
|
Definition at line 89 of file mediactrl.h. |
|
|
Definition at line 90 of file mediactrl.h. |
|
|
Definition at line 91 of file mediactrl.h. |
|
|
Definition at line 92 of file mediactrl.h. |
|
|
Definition at line 93 of file mediactrl.h. |
|
|
Definition at line 79 of file mediactrl.h. |
|
|
Definition at line 80 of file mediactrl.h. |
|
|
Definition at line 81 of file mediactrl.h. |
|
|
Definition at line 82 of file mediactrl.h. |
|
|
Definition at line 83 of file mediactrl.h. |
|
|
Definition at line 84 of file mediactrl.h. |
|
|
Definition at line 85 of file mediactrl.h. |
|
|
Definition at line 86 of file mediactrl.h. |
|
|
Definition at line 39 of file mediactrl.h. |
|
|
Definition at line 34 of file mediactrl.h. Referenced by JogShuttle::inputCallback(), media_ctrl_read_event(), translate_compliant(), and translate_contour_hid_event(). |
|
|
Definition at line 33 of file mediactrl.h. Referenced by JogShuttle::inputCallback(), translate_compliant(), and translate_contour_hid_event(). |
|
|
Definition at line 32 of file mediactrl.h. Referenced by JogShuttle::inputCallback(), and media_ctrl_read_event(). |
|
|
Definition at line 35 of file mediactrl.h. Referenced by JogShuttle::inputCallback(), translate_compliant(), and translate_contour_hid_event(). |
|
|
Definition at line 36 of file mediactrl.h. |
|
|
Definition at line 61 of file mediactrl.h. |
|
|
Definition at line 70 of file mediactrl.h. |
|
|
Definition at line 71 of file mediactrl.h. |
|
|
Definition at line 72 of file mediactrl.h. |
|
|
Definition at line 73 of file mediactrl.h. |
|
|
Definition at line 74 of file mediactrl.h. |
|
|
Definition at line 75 of file mediactrl.h. |
|
|
Definition at line 76 of file mediactrl.h. |
|
|
Definition at line 62 of file mediactrl.h. |
|
|
Definition at line 63 of file mediactrl.h. |
|
|
Definition at line 64 of file mediactrl.h. |
|
|
Definition at line 65 of file mediactrl.h. |
|
|
Definition at line 66 of file mediactrl.h. |
|
|
Definition at line 67 of file mediactrl.h. |
|
|
Definition at line 68 of file mediactrl.h. |
|
|
Definition at line 69 of file mediactrl.h. |
|
|
Definition at line 52 of file mediactrl.h. |
|
|
Definition at line 49 of file mediactrl.h. |
|
|
Definition at line 48 of file mediactrl.h. |
|
|
Definition at line 43 of file mediactrl.h. |
|
|
Definition at line 44 of file mediactrl.h. |
|
|
Definition at line 46 of file mediactrl.h. |
|
|
Definition at line 50 of file mediactrl.h. |
|
|
Definition at line 51 of file mediactrl.h. |
|
|
Definition at line 45 of file mediactrl.h. |
|
|
Definition at line 53 of file mediactrl.h. |
|
|
Definition at line 41 of file mediactrl.h. |
|
|
Definition at line 58 of file mediactrl.h. |
|
|
Definition at line 55 of file mediactrl.h. |
|
|
Definition at line 56 of file mediactrl.h. |
|
|
Definition at line 57 of file mediactrl.h. |
|
|
Definition at line 47 of file mediactrl.h. |
|
|
Definition at line 28 of file mediactrl.h. |
|
|
Definition at line 29 of file mediactrl.h. |
|
|
Definition at line 400 of file mediactrl.c. References media_ctrl::fd. Referenced by JogShuttle::stop(), and JogShuttle::~JogShuttle(). 00401 {
00402 if (mc->fd > 0)
00403 close( mc->fd );
00404 memset( mc, 0, sizeof( struct media_ctrl ) );
00405 }
|
|
|
|
|
|
Definition at line 408 of file mediactrl.c. References find_first_device(). Referenced by JogShuttle::start(). 00409 {
00410 find_first_device(mc);
00411 }
|
|
||||||||||||
|
Definition at line 289 of file mediactrl.c. References MEDIA_CTRL_EVENT_JOG, MEDIA_CTRL_EVENT_NONE, media_ctrl_event::type, and media_ctrl_event::value. Referenced by JogShuttle::inputCallback(). 00290 {
00291 ssize_t n;
00292 struct input_event ev;
00293
00294 // struct media_ctrl_event me;
00295
00296 if ( ctrl->fd > 0 ) {
00297 n = read(ctrl->fd, &ev, sizeof(ev));
00298 } else {
00299 return;
00300 }
00301
00302 if (n != sizeof(ev)) {
00303 //printf("JogShuttle::inputCallback: read: (%d) %s\n", errno, strerror(errno));
00304 close(ctrl->fd);
00305 ctrl->fd = 0;
00306 return;
00307 }
00308
00309 if ( ctrl->device && ctrl->device->translate)
00310 ctrl->device->translate(ctrl, &ev, me);
00311 else
00312 me->type = 0;
00313
00314 if ( me->type == MEDIA_CTRL_EVENT_JOG ) {
00315 struct timeval timev;
00316 gettimeofday(&timev, NULL);
00317 unsigned long now = (unsigned long)timev.tv_usec + (1000000*(unsigned long)timev.tv_sec);
00318 if ( now < ctrl->last_jog_time + 40000 ) {
00319 //printf("*** Fast Jog %02d %05d ***\n", me->value, now - ctrl->last_jog_time);
00320 ctrl->jogrel = me->value;
00321 me->type = MEDIA_CTRL_EVENT_NONE;
00322 } else {
00323 me->value += ctrl->jogrel;
00324 ctrl->jogrel = 0;
00325 ctrl->last_jog_time = now;
00326 // printf("*** Jog %02d ***\n", me->value);
00327 }
00328 }
00329
00330 return;
00331
00332 }
|
1.4.2