Crystal Space
Welcome, Guest. Please login or register.
April 16, 2014, 08:32:18 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7582 Members
Latest Member: Diretz5
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  Why the meshsel only support one mouse button?
« previous next »
Pages: [1] Print
Author Topic: Why the meshsel only support one mouse button?  (Read 4305 times)
Hilake
Newbie
*
Posts: 27


View Profile Email
« on: July 30, 2005, 07:47:02 am »

Hi! all

I had test the meshsel, but only the life mouse button had send event. Maybe it's not good design.
I want to make the two button send event, how can I do?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1704


View Profile
« Reply #1 on: July 30, 2005, 07:29:09 pm »

Hi! all

I had test the meshsel, but only the life mouse button had send event. Maybe it's not good design.
I want to make the two button send event, how can I do?

The SetMouseButtons() call will control what buttons have an effect on mesh selection. Check the API docs of iPcMeshSelect.

Greetings,
Logged
Hilake
Newbie
*
Posts: 27


View Profile Email
« Reply #2 on: August 01, 2005, 03:12:33 am »

Maybe!
But I want to make the two button available  at the same time not only change the other one available but the others disable.

ps:I use the  SetMouseButtons() call, but it isn't useful.
Code:
csRef<iPcMeshSelect> pcms = CEL_QUERY_PROPCLASS_ENT (entity_cam, iPcMeshSelect);
 
pcms->SetMouseButtons(CEL_MOUSE_BUTTON2);
 printf("mouse %d!\n",pcms->GetMouseButtons ());

But it print out "mouse 2". But the left mouse button wan't send message, and no effact.

The SetMouseButtons() call will control what buttons have an effect on mesh selection. Check the API docs of iPcMeshSelect.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1704


View Profile
« Reply #3 on: August 01, 2005, 05:35:42 am »

Maybe!
But I want to make the two button available  at the same time not only change the other one available but the others disable.

ps:I use the  SetMouseButtons() call, but it isn't useful.
Code:
csRef<iPcMeshSelect> pcms = CEL_QUERY_PROPCLASS_ENT (entity_cam, iPcMeshSelect);
 
pcms->SetMouseButtons(CEL_MOUSE_BUTTON2);
 printf("mouse %d!\n",pcms->GetMouseButtons ());

But it print out "mouse 2". But the left mouse button wan't send message, and no effact.

The SetMouseButtons() call will control what buttons have an effect on mesh selection. Check the API docs of iPcMeshSelect.

Well it is a mask. So you can do CEL_MOUSE_BUTTON1 | CEL_MOUSE_BUTTON2 to get both mouse buttons.

Greetings,
Logged
Hilake
Newbie
*
Posts: 27


View Profile Email
« Reply #4 on: August 01, 2005, 06:55:57 am »

Thanks for your simple reply. But I can't understand what you say. Can you tell me the detail.
Can you give me the code? So I can try.

Well it is a mask. So you can do CEL_MOUSE_BUTTON1 | CEL_MOUSE_BUTTON2 to get both mouse buttons.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1704


View Profile
« Reply #5 on: August 01, 2005, 07:22:00 am »

Thanks for your simple reply. But I can't understand what you say. Can you tell me the detail.
Can you give me the code? So I can try.

Well it is a mask. So you can do CEL_MOUSE_BUTTON1 | CEL_MOUSE_BUTTON2 to get both mouse buttons.

Like this:
meshsel->SetMouseButtons (CEL_MOUSE_BUTTON1 | CEL_MOUSE_BUTTON2);

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.363 seconds with 17 queries.