File tree Expand file tree Collapse file tree 1 file changed +8
-38
lines changed Expand file tree Collapse file tree 1 file changed +8
-38
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ local Screen = {};
27
27
-- ------------------------------------------------
28
28
29
29
---
30
- -- No operation function
30
+ -- Function stub.
31
31
--
32
- local function null () end
32
+ local function null ()
33
+ return ;
34
+ end
33
35
34
36
-- ------------------------------------------------
35
37
-- Module
@@ -44,82 +46,50 @@ function Screen.new()
44
46
-- Public Methods
45
47
-- ------------------------------------------------
46
48
47
- self .init = null ;
48
-
49
- self .close = null ;
50
-
51
49
function self :isActive ()
52
50
return active ;
53
51
end
54
52
55
- function self :setActive ( dactiv )
56
- active = dactiv ;
53
+ function self :setActive ( nactiv )
54
+ active = nactiv ;
57
55
end
58
56
59
57
-- ------------------------------------------------
60
58
-- Callback-stubs
61
59
-- ------------------------------------------------
62
60
61
+ self .init = null ;
62
+ self .close = null ;
63
63
self .directorydropped = null
64
-
65
64
self .draw = null ;
66
-
67
65
self .filedropped = null ;
68
-
69
66
self .focus = null ;
70
-
71
67
self .keypressed = null ;
72
-
73
68
self .keyreleased = null ;
74
-
75
69
self .lowmemory = null ;
76
-
77
70
self .mousefocus = null ;
78
-
79
71
self .mousemoved = null ;
80
-
81
72
self .mousepressed = null ;
82
-
83
73
self .mousereleased = null ;
84
-
85
74
self .quit = null ;
86
-
87
75
self .resize = null ;
88
-
89
76
self .textedited = null ;
90
-
91
77
self .textinput = null ;
92
-
93
78
self .threaderror = null ;
94
-
95
79
self .touchmoved = null ;
96
-
97
80
self .touchpressed = null ;
98
-
99
81
self .touchreleased = null ;
100
-
101
82
self .update = null ;
102
-
103
83
self .visible = null ;
104
-
105
84
self .wheelmoved = null ;
106
-
107
85
self .gamepadaxis = null ;
108
-
109
86
self .gamepadpressed = null ;
110
-
111
87
self .gamepadreleased = null ;
112
-
113
88
self .joystickadded = null ;
114
-
115
89
self .joystickaxis = null ;
116
-
117
90
self .joystickhat = null ;
118
-
119
91
self .joystickpressed = null ;
120
-
121
92
self .joystickreleased = null ;
122
-
123
93
self .joystickremoved = null ;
124
94
125
95
return self ;
You can’t perform that action at this time.
0 commit comments