# HG changeset patch # User Sam Lantinga # Date 1260576482 0 # Node ID 6d91cff0ec7922d25bc7951a9ac622cf9d75460c # Parent 71189305cd33c6f17bef99bebf4463bf70d098a7 Added mouse position for button handling diff -r 71189305cd33 -r 6d91cff0ec79 test/testwm.c --- a/test/testwm.c Sat Dec 12 00:07:26 2009 +0000 +++ b/test/testwm.c Sat Dec 12 00:08:02 2009 +0000 @@ -214,9 +214,10 @@ visible = !visible; SDL_ShowCursor(visible); } - printf("Mouse button %d has been %s\n", + printf("Mouse button %d has been %s at %d,%d\n", event->button.button, - (event->button.state == SDL_PRESSED) ? "pressed" : "released"); + (event->button.state == SDL_PRESSED) ? "pressed" : "released", + event->button.x, event->button.y); return (0); /* Show relative mouse motion */