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.
Rem Project: Dark Basic Pro Project
Rem Created: Saturday, December 11, 2010
Rem ***** Main Source File *****
do
cls
print "mousemovex "+str$(mousemovex())
print "mousemovey "+str$(mousemovey())
print "mousemovez "+str$(mousemovez())
print "mouse position x "+str$(mousex())
print "mouse position y "+str$(mousey())
print "mouse position z "+str$(mousez())
print "Press 1 to hide mouse"
print "Press 2 to show mouse"
print "Press 3 to change mouse image"
print "Press 4 to change mouse image back"
print "Press 5 to position mouse to top of screen"
if scancode()=2 then hide mouse
if scancode()=3 then show mouse
if scancode()=4 then change mouse 1
if scancode()=5 then change mouse 0
if scancode()=6 then position mouse mousex(),0
print "Mouse Button click " +str$(mouseclick())
if mouseclick()=1 then print "Left mouse button"
if mouseclick()=2 then print "Right mouse button"
if mouseclick()=3 then print "Left and Right mouse buttons"
if mouseclick()=4 then print "Middle mouse button"
if mouseclick()=5 then print "Middle and Left mouse buttons"
if mouseclick()=6 then print "Middle and Right mouse buttons"
if mouseclick()=7 then print "Middle , Left and right mouse buttons"
if mouseclick()=8 then print "Mouse button 4"
if mouseclick()=9 then print "Mouse button 4 and left mouse button"
if mouseclick()=10 then print "Mouse button 4 and right mouse button"
if mouseclick()=11 then print "Mouse button 4 , Left and Right mouse buttons"
if mouseclick()=12 then print "Mouse button 4 and Middle mouse button"
if mouseclick()=13 then print "Mouse button 4 Middle and Left mouse buttons"
if mouseclick()=14 then print "Mouse button 4 , Middle and Right mouse buttons"
if mouseclick()=15 then print "Mouse button 4 , Middle, Left and Right mouse buttons"
// rem 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
if mouseclick()=16 then print "Mouse Button 5"
if mouseclick()=17 then print "Mouse Button 5 and Left mouse buttons"
if mouseclick()=18 then print "Mouse Button 5 and Right mouse buttons"
if mouseclick()=19 then print "Mouse Button 5, Left and Right mouse buttons"
if mouseclick()=20 then print "Mouse Button 5 and Middle mouse button"
if mouseclick()=21 then print "Mouse Button 5 , Middle and Left mouse buttons"
if mouseclick()=22 then print "Mouse Button 5 , Middle and Right mouse buttons"
if mouseclick()=23 then print "Mouse Button 5 , Middle , Left and Right mouse buttons"
if mouseclick()=24 then print "Mouse Button 5 , Mouse button 4"
if mouseclick()=25 then print "Mouse Button 5 , Mouse button 4 and Left mouse button"
if mouseclick()=26 then print "Mouse Button 5 , Mouse button 4 and Right mouse button"
if mouseclick()=27 then print "Mouse Button 5 , Mouse button 4 , Left and Right mouse buttons"
if mouseclick()=28 then print "Mouse Button 5 , Mouse button 4 and Middle mouse button"
if mouseclick()=29 then print "Mouse Button 5 , Mouse button 4 , Middle and Left mouse buttons"
if mouseclick()=30 then print "Mouse Button 5 , Mouse button 4 , Middle and Right mouse buttons"
if mouseclick()=31 then print "Mouse Button 5 , Mouse button 4 , Middle , Left and Right mouse buttons"
loop
end