[ Maverik Level 1 typedefs ]


MAV_mouseEvent

Summary

Mouse event.


Syntax

typedef struct {
  MAV_window *win;
  int x;
  int y;
  int root_x;
  int root_y;
  MAV_line line;
  int intersects;
  MAV_object *obj;
  MAV_objectIntersection objint;
  int button;
  int modifiers[MAV_MODIFIER_MAX];
  int movement;
} MAV_mouseEvent;


Description

The mouse event data structure, MAV_mouseEvent, is passed to the application supplied callback function (set with the mav_callbackMouseSet function) upon mouse button events and details that event.

See MAV_keyboardEvent for why obj will not necessarily be the same as the MAV_object passed to the event callback function.


Back to the index page.