right mouse button bug?

Blitz3D Forums/Blitz3D Programming/right mouse button bug?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You're calling it twice. Mousehit tells you the first time the mouse button is pressed down. Calling it resets the value of the mousehit. To use it more than once in a loop you should assign the value to a variable then reference that.


dim mhit(3)
repeat

   for i=1 to 3
      mhit(i)=mousehit(i)
   next

   if mhit(2)
      ;do something
   end if

until