Lines Matching defs:event
367 /* Lock the event queue - prevent joystick polling */
381 /* Let the event thread keep running */
405 /* Stop the event polling */
444 /* Post the event, if desired */
448 SDL_Event event;
449 event.type = SDL_JOYAXISMOTION;
450 event.jaxis.which = joystick->index;
451 event.jaxis.axis = axis;
452 event.jaxis.value = value;
453 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) {
455 SDL_PushEvent(&event);
474 /* Post the event, if desired */
478 SDL_Event event;
479 event.jhat.type = SDL_JOYHATMOTION;
480 event.jhat.which = joystick->index;
481 event.jhat.hat = hat;
482 event.jhat.value = value;
483 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) {
485 SDL_PushEvent(&event);
506 /* Post the event, if desired */
510 SDL_Event event;
511 event.jball.type = SDL_JOYBALLMOTION;
512 event.jball.which = joystick->index;
513 event.jball.ball = ball;
514 event.jball.xrel = xrel;
515 event.jball.yrel = yrel;
516 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) {
518 SDL_PushEvent(&event);
529 SDL_Event event;
533 event.type = SDL_JOYBUTTONDOWN;
536 event.type = SDL_JOYBUTTONUP;
552 /* Post the event, if desired */
555 if ( SDL_ProcessEvents[event.type] == SDL_ENABLE ) {
556 event.jbutton.which = joystick->index;
557 event.jbutton.button = button;
558 event.jbutton.state = state;
559 if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) {
561 SDL_PushEvent(&event);