Hello,
I have tried to use EVENT_CLICK, EVENT_RELEASE and EVENT_TOUCH with a simple cube for testing. All of them are working but they aren't working correctly. The mouse does not detect the entities every time..
But why? Any ideas?
Thanks for your help

Here is some code
Code:
PANEL* baumodus_idee_loeschen1_pan =
{
	button=95,260,"ok1s.tga","ok2s.tga","ok1s.tga",baumodus_idee_loeschen_objekt(),NULL,NULL;
	button=320,260,"abbrechen1.tga","abbrechen2.tga","abbrechen1.tga",baumodus_idee_loeschen_hide(),NULL,NULL;
	layer = 13;
   flags |=OVERLAY,TRANSLUCENT;
   bmap = "baumodus_loeschen.tga";
}
...

function baumodus_idee_loeschen()
{
	if(event_type == EVENT_CLICK)
	{
		test_ent=mouse_ent;
		baumodus_idee_loeschen1_pan.pos_x = (screen_size.x - bmap_width(baumodus_idee_loeschen1_pan.bmap))/2; 
   	baumodus_idee_loeschen1_pan.pos_y = (screen_size.y - bmap_height(baumodus_idee_loeschen1_pan.bmap))/2; 
		baumodus_idee_loeschen1_pan.flags|=SHOW;
	}
	if(event_type == EVENT_TOUCH)
	{
		mouse_map=cursor_delete_tga;
	}
	else if(event_type == EVENT_RELEASE)
	{
		mouse_map=cursor_pcx;
	}
}
...
my.emask = ENABLE_CLICK|ENABLE_TOUCH|ENABLE_RELEASE;
my.event = baumodus_idee_loeschen;
...




Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)