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 Professional Discussion / how do i check for 5 mouse buttons

Author
Message
Blue Steel AU
AGK Developer
18
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Bundaberg, Qld, Australia
Posted: 11th Dec 2010 15:59
I've tried editing the demo for mouse click but it only goes up to 4 buttons and combo's thereof..

i want these to be reported too ot at least mouseclick(16) as I have a 5 button mouse, you know there are mice out there with up to 10 buttons now days and gamers (like me ..) want to be able to use them if they have them after spending all that money on them.



Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 12th Dec 2010 19:50
Personally, I don't have a five button mouse so I can't really test anything but I'm guessing your attempt at continuing to double the values doesn't work, right?

The book I used to teach myself to code says that the mouseclick function only supports 4 buttons. That was written long before the major rewrite with v.1.075 but that said, if it's not working for you, them I'm guessing it's not been changed.

I'm not aware of any plugins which handle it either but I only use a handful of them myself. Maybe you will need to write your own command...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Dec 2010 21:20
Standard DBPro supports just the 4 mouse buttons currently. Aaron Miller wrote a plug-in that supports 8 buttons that you could try.

Blue Steel AU
AGK Developer
18
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Bundaberg, Qld, Australia
Posted: 13th Dec 2010 03:26 Edited at: 13th Dec 2010 03:27
I looked at that message .. thanks.. however i can't see where to d/load the plugin ... {edit} oops.. i must have been blind.. i just found it .. sorry

I did work that out that it only supports 4 mouse buttons.. and after much research on the net I've found out that most programming languages are using DIMOUSESTATE structure as opposed to DIMOUSESTATE2 structure thus limiting the number of buttons checked for.. I don't know enough myself to fix / write something that'll check for those extra buttons

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Dec 2010 09:17
I could try to write a plugin to support it, but you'd have to test it for me since I don't have any more than a 2 button mouse (3 if you count the middle scroll).

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 13th Dec 2010 17:39
I could test it, I am getting a 15 button WoW mouse for Christmas...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Dec 2010 18:45
@Blue Steel AU
Part of the problem may be the extra software that you install alongside your mouse driver.

I have a 5 button mouse myself, and the 4th and 5th buttons are captured by the extra software and translated to 'back' and 'f5' for web browsing. I have to switch that functionality off to use the 4th button with DBPro.

It could be that you are having the same issue.

At one point when I worked on the DBPro input DLL, I did attempt to implement the DIMOUSESTATE2 structure, but for some unknown reason, I couldn't get it working to my satifaction - I was against a deadline to get it into the next release, so I reverted the code back, and I haven't visited it since. I'll take another shot at it in the near future.

Login to post a reply

Server time is: 2026-07-21 04:20:24
Your offset time is: 2026-07-21 04:20:24