From the atypes.h
Code:
#define EVENT_CLICKUP		14	// left click over down toggle
#define EVENT_BUTTONUP		15	// mouse button released over entity
#define EVENT_TOUCH		16	// mouse pointer moves over entity
#define EVENT_RELEASE		17	// mouse pointer leaves entity
#define EVENT_CLICK		18	// left click over entity
#define EVENT_RIGHTCLICK 	19	// right click over entity


I wrote a little code that tries to detect what happened...
It is a panel with one button on it.
Code:
function btn_mouse() {
	printf("btn_mouse event_type %d",(long)event_type);
	if (event_type == EVENT_CLICK) {
		printf("btn_mouse EVENT_CLICK");
	}
	if (event_type == EVENT_RIGHTCLICK) {
		printf("btn_mouse EVENT_RIGHTCLICK");
	}
	if (event_type == EVENT_TOUCH) {
		printf("btn_mouse EVENT_TOUCH");
	}
	if (event_type == EVENT_RELEASE) {
		printf("btn_mouse EVENT_RELEASE");
	}
	if (event_type == EVENT_CLICKUP) {
		printf("btn_mouse EVENT_CLICKUP");
	}
	if (event_type == EVENT_BUTTONUP) {
		printf("btn_mouse EVENT_BUTTONUP");
	}


I was surprised when my code showed only two event types EVENT_RELEASE and EVENT_BUTTONUP.
What did i do wrong or what did i miss?
My system is A7 with latest patch.

Last edited by Aku_Aku; 12/21/14 13:11. Reason: Extend with the description of the situation