Advertisement
Guest User

Untitled

a guest
Dec 21st, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Public Function GetAsyncKeyPressed(ByVal key As Integer)
  2.         Dim check1 As Boolean = False
  3.         Dim check2 As Boolean = False
  4.         If GetAsyncKeyState(key) Then
  5.             check1 = True
  6.             delayTime(0.001)
  7.             check2 = GetAsyncKeyState(key)
  8.             Return (check1 = Not check2)
  9.         End If
  10.         Return False
  11.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement