# Mouse motion event
extern class SDLMouseMotionEvent
super SDLMouseEvent
redef fun x `{ return self->motion.x; `}
redef fun y `{ return self->motion.y; `}
# State of the buttons
#
# ~~~raw
# state & 1 == 1 -> left button down
# state & 2 == 2 -> middle button down
# state & 4 == 4 -> right button down
# ~~~
fun state: Int `{ return self->motion.state; `}
# Difference on the X axis between this event and the previous one
fun xrel: Int `{ return self->motion.xrel; `}
# Difference on the Y axis between this event and the previous one
fun yrel: Int `{ return self->motion.yrel; `}
end
lib/sdl2/events.nit:173,1--195,3