Page 1 of 1

How RE detects a mouse click?

PostPosted: 12 Jun 2013, 01:26
by clarkjung
Hi, I want to edit RE to add some functions.

I want to make a game where a PC has two mouses and a player can only shoot with the first mouse when the second mouse is pressed down.

Could you tell me roughly how I can achieve this? Or could you just tell me how RE detects a mouse click?

I would appreciate your help:)

Re: How RE detects a mouse click?

PostPosted: 12 Jun 2013, 09:11
by qreeves
SDL 1.2.x cannot currently tell the difference between two separate mice. You could use a button on the keyboard. This could be done in cubescript.

Re: How RE detects a mouse click?

PostPosted: 12 Jun 2013, 09:40
by clarkjung
Thank you very much qreeves!

OK, then I will try with using another button instead of second mice.

However, I am very new to editting open source and c++. Could you tell me more about how to detect pressing a specific button please?

I would appreciate your advice:)