VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: Directinput, Mouse-click, No Delay NetArc (2 replies, 0 views) (2000-Aug-12)
hmmm you could try this:
( whenever LeftClick is True You have just finished a click, But it only remains true for one update... so next time u call this routine it will become false... this should solver ur mouse problems)
globals for ur module or whatever
Global LeftClick as Boolean ' A Variable To Store If WE Just Clicked
Global LeftButton as Boolean
Global Left_Button_Released as Boolean
////// This goes where ur mouse refresh is
LeftClick = False ' Reset Our Click To False
'Check the left mouse button state
If mdiMState.buttons(0) <> 0 Then
If Left_Button_Released = True Then
LeftButton = True
Left_Button_Released = False
End If
End If
If mdiMState.buttons(0) = 0 Then
If LeftButton = True Then
LeftClick = True ' Since We Just Released Set Our Click To True
LeftButton = False
End If
Left_Button_Released = True
End If
|