Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / mouse clicks

Author
Message
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 20th Oct 2003 04:05
how do you make something happen from a left mouse click, right?
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 20th Oct 2003 04:30 Edited at: 20th Oct 2003 04:31
Use the mouseclick() command to figure it out. If it returns a value of 1, the left button is pressed, a value of 2, the right button. You can add them together to find the event of both, 1+2=3, so 3 means both buttons at the same time. To find the return value:





Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
highschool gamedude
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 20th Oct 2003 08:19
and another slightly less used but still useful fact:
the middle mousebutton is 4 so... you can add and have it do something for any combination of buttons
eg.:



hope my little addon thing helped... i am normally the one in need ofhelp... but i have also learnt a lot from other people's posts i am very new to this and it makes me feel good to actually be able to help even just a little bit

any tips (i just started with this program)

Login to post a reply

Server time is: 2025-05-21 14:16:33
Your offset time is: 2025-05-21 14:16:33