-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuserform_input_tracker_code.txt
79 lines (68 loc) · 1.46 KB
/
userform_input_tracker_code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Dim lastkeycode As Integer
Private Sub UserForm_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
Select Case KeyCode
Case 38
'up
playfield.up
Case 90
'up Z
playfield.up
Case 87
'up W
playfield.up
Case 40
'down
playfield.Down
Case 83
'down S
playfield.Down
Case 37
'left
playfield.Left
Case 81
'left Q
playfield.Left
Case 65
'left A
playfield.Left
Case 39
'right
playfield.Right
Case 68
'right D
playfield.Right
Case 32
'space
If lastkeycode <> 32 Then
playfield.Jump
End If
Case 27
'escape,end
playfield.removeCurrentCharacter
playfield.removePortals
playfield.removeCube
intro.Select
End
Case 98
'num down
playfield.ShootPortal ("down")
Case 102
'num Right
playfield.ShootPortal ("right")
Case 104
'num up
playfield.ShootPortal ("up")
Case 100
'num left
playfield.ShootPortal ("left")
Case 69
'e
playfield.dropCube
End Select
lastkeycode = KeyCode
Exit Sub
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
End Sub