Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <spl/gevents.h>
- #include <spl/gwindow.h>
- int main(void)
- {
- GWindow window = newGWindow(600,400);
- while(true)
- {
- GEvent event = getNextEvent(MOUSE_EVENT);
- if(event != NULL)
- {
- if(getEventType(event)== MOUSE_CLICKED)
- {
- printf("%.0f,%.0f\n",getX(event), getY(event));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment