How RE detects a mouse click?

How RE detects a mouse click?

Postby clarkjung » 12 Jun 2013, 01:26

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:)
clarkjung
 
Posts: 4
Joined: 12 Jun 2013, 01:21

Re: How RE detects a mouse click?

Postby qreeves » 12 Jun 2013, 09:11

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.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: How RE detects a mouse click?

Postby clarkjung » 12 Jun 2013, 09:40

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:)
clarkjung
 
Posts: 4
Joined: 12 Jun 2013, 01:21

Who is online

Users browsing this forum: No registered users and 1 guest