Project

General

Profile

Actions

Bug #813

open

Problems with actor events

Added by Paul Kitching over 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Target version:
Start date:
08/20/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

I've been having problems getting the events to work, like dragdrop, etc. Laurant made a short program to test it and got the same problems, here is his program:

#splashScreen:False
Actor "magic", X=100, Y=100, Image$="magic.png", OnMouse$="CLICK"
do
Wait key
Loop

Procedure CLICK[EVENT$]
    If EVENT$="mouseclick" then Print "mouseclick"
    If EVENT$="mousedown" then Print "mousedown"
    If EVENT$="mouseup" then Print "mouseup"
    If EVENT$="mousemove" then Print "mousemove"
    If EVENT$="dragdrop" then Print "dragdrop"
    //Actor INDEX$, X=DRAGX, Y=DRAGY
End Proc

dragdrop is always active as soon as the mouse moves over (without holding a button)
mousedown works when holding a button
mouseup isn't working
mouseclick is triggered when you release the button (I'm not sure how this would be different to mouseup)
mousemove isn't working. I think dragdrop is being triggered instead of this one.

Actions

Also available in: Atom PDF