All pastes #582888 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-22 03:47 UTC
rendered paste body
 Public Class Form1

	Dim X, Y As Double

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        
	X = ReadFloat(&HAFA320)
        Y = ReadFloat(&HAFA324)
        If GetAsyncKeyState(Keys.Left) < 0 Then
            WriteFloat(&HAFA320, X - 100)
        End If
        If GetAsyncKeyState(Keys.Right) < 0 Then
            WriteFloat(&HAFA320, X + 100)
        End If
        If GetAsyncKeyState(Keys.Up) < 0 Then
            WriteFloat(&HAFA324, Y - 100)
        End If
        If GetAsyncKeyState(Keys.Down) < 0 Then
            WriteFloat(&HAFA324, Y + 100)
        End If

    End Sub

End Class