Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Who wants to PLAY?
#17
My way of doing this would be:

Code: (Select All)
Sub domousestuff
    Dim x, y, mb
    STATIC OldMouse
    While _MouseInput: Wend  ' there we've polled the mouse we don't need to remain inside the loop unless we need mouse wheel
    mb = _MouseButton(1)
    If mb AND NOT OldMouse Then
        x = Fix(_MouseX \ Fix(maxx \ 16))
        y = Fix(_MouseY \ Fix(maxy \ 16))
        grid(x, y) = 1 - grid(x, y)
    End If
    OldMouse = mb
End Sub

Only count a mouseclick down if the mouse was up before clicking
Reply


Messages In This Thread
Who wants to PLAY? - by dbox - 01-16-2025, 10:56 PM
RE: Who wants to PLAY? - by bplus - 01-17-2025, 12:25 AM
RE: Who wants to PLAY? - by grymmjack - 01-17-2025, 01:25 AM
RE: Who wants to PLAY? - by dbox - 01-17-2025, 06:43 PM
RE: Who wants to PLAY? - by bplus - 01-17-2025, 09:24 PM
RE: Who wants to PLAY? - by dbox - 01-18-2025, 01:15 PM
RE: Who wants to PLAY? - by a740g - 01-18-2025, 12:09 AM
RE: Who wants to PLAY? - by dbox - 01-18-2025, 01:31 PM
RE: Who wants to PLAY? - by bplus - 01-18-2025, 08:13 PM
RE: Who wants to PLAY? - by dbox - 01-18-2025, 09:05 PM
RE: Who wants to PLAY? - by bplus - 01-18-2025, 08:42 PM
RE: Who wants to PLAY? - by bplus - 01-18-2025, 11:03 PM
RE: Who wants to PLAY? - by dbox - 01-18-2025, 11:16 PM
RE: Who wants to PLAY? - by dbox - 01-19-2025, 04:51 AM
RE: Who wants to PLAY? - by bplus - 01-19-2025, 06:49 AM
RE: Who wants to PLAY? - by dbox - 01-19-2025, 02:47 PM
RE: Who wants to PLAY? - by SMcNeill - 01-20-2025, 11:59 PM
RE: Who wants to PLAY? - by dbox - Yesterday, 12:14 AM



Users browsing this thread: 14 Guest(s)