How and when does work the on_mouse_left?
In the Manual:
function mouse_event(code)
{
if (code == 280)
{
printf("left key pressed!");
}
if (code == 281)
{
printf("right key pressed!");
}
if (code == 282)
{
printf("middle key pressed!");
}
}
...
void main() {
...
on_mouse_left = mouse_event;
on_mouse_right = mouse_event;
on_mouse_middle = mouse_event;
...
Well, I tried this and didn't worked.
Then I added this line:
and didn't worked.
Then I added this line:
and didn't worked.
Then I added this line:
on_mouse_left = mouse_event;
and didn't worked.
What preconditions must to be fulfilled to get this into work?