The codes are simple, but we need to get the variables out of its static context.
gint x, y;
gdk_window_get_pointer(window->window, &x, &y, 0);
printf("My cords are: x %d and y: %d", x, y);
Viola!
Subscribe to:
Post Comments (Atom)
This blog was setup as a result of too much programming, I realised that I was getting back to the same problems which I had solved a few years ago. I thought a blog that can serve to remind me of what I did when i ran into programming problems :) So yep. Hence the title programming trail.
No comments:
Post a Comment