Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Problems #273303
06/22/09 11:53
06/22/09 11:53
Joined: Feb 2009
Posts: 52
Rohiaw Offline OP
Junior Member
Rohiaw  Offline OP
Junior Member

Joined: Feb 2009
Posts: 52
Hi.
Lately i've been trying to apply a mouse in SED.
Unfortunately, it wont work. When i create a button, the image doesn't change when i click on it or draw the mouse over it.

Another thing is that a have assigned a bitmap to the mouse cursor and it didnt work.
the mouse remains the default windows cursor - similar to when hovering over a link.

Code:

Mouse initialisation
Code:
mouse_mode = 1;
mouse_map = "cursor.bmp";



Buttons:
Code:
PANEL* green_button =
{
button = 88, 10, green_sprite_click, green_sprite, green_sprite_over, NULL, NULL, NULL;
flags = VISIBLE | OVERLAY;
}



Any Help?

Re: Mouse Problems [Re: Rohiaw] #273366
06/22/09 17:50
06/22/09 17:50
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hm try this:

mouse_mode = 2;


Hilf mir, dir zu helfen!
Re: Mouse Problems [Re: hopfel] #273367
06/22/09 18:00
06/22/09 18:00
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
if obove doesen´t work try
PANEL* green_button =
{
layer = 10;
button = 88, 10, green_sprite_click, green_sprite, green_sprite_over, NULL, NULL, NULL;
flags = VISIBLE | OVERLAY;
}
and in main loop
while(1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
wait(2);
}


Moderated by  HeelX, rvL_eXile 

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