mouse_lastbutton;
Returns: Real
This variable returns the last mouse button that was pressed and can return any of the special mouse constants. You may also set this variable to use any of the constants too.
if mouse_lastbutton = mb_left
{
x -= 1;
}
This moves the current instance left if the last button pressed was the left mouse button.