Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Quad, TipmyPip), 6,316 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How and when does work the on_mouse_left? #488548
01/18/25 10:45
01/18/25 10:45
Joined: Sep 2009
Posts: 1,033
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,033
Budapest
How and when does work the on_mouse_left?
In the Manual:
Quote
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:
Code
    enable_mouse = 2;
and didn't worked.
Then I added this line:
Code
    mouse_mode = 4;
and didn't worked.
Then I added this line:
Code
    on_mouse_left = mouse_event;
and didn't worked.

What preconditions must to be fulfilled to get this into work?

Re: How and when does work the on_mouse_left? [Re: Aku_Aku] #488550
01/20/25 09:52
01/20/25 09:52
Joined: Jun 2008
Posts: 53
Caucasus
VoroneTZ Offline
Junior Member
VoroneTZ  Offline
Junior Member

Joined: Jun 2008
Posts: 53
Caucasus
idk, all works fine
8.47.1 pro

[Linked Image]

Last edited by VoroneTZ; 01/20/25 09:53.
Re: How and when does work the on_mouse_left? [Re: VoroneTZ] #488572
01/30/25 16:09
01/30/25 16:09
Joined: Sep 2009
Posts: 1,033
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,033
Budapest
Well... At my side nothing.
Thank you for the feedback.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1