Skip to content

Commit 2a3d7cd

Browse files
committed
Merge branch 'release/1.7.0'
2 parents 12036db + 1ac69a7 commit 2a3d7cd

File tree

3 files changed

+151
-136
lines changed

3 files changed

+151
-136
lines changed

Readme.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,3 @@ end
5959
6060
return MainScreen;
6161
```
62-
63-
## License
64-
65-
Copyright (c) 2014 - 2015 Robert Machmer
66-
67-
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
68-
69-
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
70-
71-
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
72-
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
73-
3. This notice may not be removed or altered from any source distribution.

Screen.lua

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--===============================================================================--
22
-- --
3-
-- Copyright (c) 2014 - 2015 Robert Machmer --
3+
-- Copyright (c) 2014 - 2016 Robert Machmer --
44
-- --
55
-- This software is provided 'as-is', without any express or implied --
66
-- warranty. In no event will the authors be held liable for any damages --
@@ -39,53 +39,59 @@ function Screen.new()
3939

4040
function self:close() end
4141

42-
function self:update(dt) end
42+
function self:isActive()
43+
return active;
44+
end
4345

44-
function self:draw() end
46+
function self:setActive( dactiv )
47+
active = dactiv;
48+
end
4549

46-
function self:focus(dfocus) end
50+
-- ------------------------------------------------
51+
-- Callback-stubs
52+
-- ------------------------------------------------
4753

48-
function self:directorydropped(path) end
54+
function self:directorydropped() end
4955

50-
function self:filedropped(file) end
56+
function self:draw() end
5157

52-
function self:resize(w, h) end
58+
function self:filedropped() end
5359

54-
function self:visible(dvisible) end
60+
function self:focus() end
5561

56-
function self:keypressed(key) end
62+
function self:keypressed() end
5763

58-
function self:keyreleased(key) end
64+
function self:keyreleased() end
5965

6066
function self:lowmemory() end
6167

62-
function self:textinput(input) end
68+
function self:mousefocus() end
6369

64-
function self:mousereleased(x, y, button) end
70+
function self:mousemoved() end
6571

66-
function self:mousepressed(x, y, button) end
72+
function self:mousepressed() end
6773

68-
function self:mousefocus(focus) end
74+
function self:mousereleased() end
6975

70-
function self:mousemoved(x, y, dx, dy) end
76+
function self:quit() end
7177

72-
function self:quit(dquit) end
78+
function self:resize() end
7379

74-
function self:touchmoved(id, x, y, pressure) end
80+
function self:textedited() end
81+
82+
function self:textinput() end
7583

76-
function self:touchpressed(id, x, y, pressure) end
84+
function self:touchmoved() end
7785

78-
function self:touchreleased(id, x, y, pressure) end
86+
function self:touchpressed() end
7987

80-
function self:wheelmoved(x, y) end
88+
function self:touchreleased() end
8189

82-
function self:isActive()
83-
return active;
84-
end
90+
function self:update() end
8591

86-
function self:setActive(dactiv)
87-
active = dactiv;
88-
end
92+
function self:visible() end
93+
94+
function self:wheelmoved() end
8995

9096
return self;
9197
end

0 commit comments

Comments
 (0)