464 event.motion.state = mouse->buttonstate; |
464 event.motion.state = mouse->buttonstate; |
465 event.motion.x = mouse->x; |
465 event.motion.x = mouse->x; |
466 event.motion.y = mouse->y; |
466 event.motion.y = mouse->y; |
467 event.motion.z = mouse->z; |
467 event.motion.z = mouse->z; |
468 event.motion.pressure = mouse->pressure; |
468 event.motion.pressure = mouse->pressure; |
|
469 event.motion.pressure_max = mouse->pressure_max; |
|
470 event.motion.pressure_min = mouse->pressure_min; |
|
471 event.motion.rotation = 0; |
|
472 event.motion.tilt = 0; |
|
473 event.motion.cursor = mouse->current_end; |
469 event.motion.xrel = xrel; |
474 event.motion.xrel = xrel; |
470 event.motion.yrel = yrel; |
475 event.motion.yrel = yrel; |
471 event.motion.windowID = mouse->focus; |
476 event.motion.windowID = mouse->focus; |
472 event.motion.pressure_max = mouse->pressure_max; |
|
473 event.motion.pressure_min = mouse->pressure_min; |
|
474 event.motion.cursor = mouse->current_end; |
|
475 posted = (SDL_PushEvent(&event) > 0); |
477 posted = (SDL_PushEvent(&event) > 0); |
476 } |
478 } |
477 mouse->last_x = mouse->x; |
479 mouse->last_x = mouse->x; |
478 mouse->last_y = mouse->y; |
480 mouse->last_y = mouse->y; |
479 return posted; |
481 return posted; |