|
1 | 1 | --===============================================================================--
|
2 | 2 | -- --
|
3 |
| --- Copyright (c) 2014 - 2015 Robert Machmer -- |
| 3 | +-- Copyright (c) 2014 - 2016 Robert Machmer -- |
4 | 4 | -- --
|
5 | 5 | -- This software is provided 'as-is', without any express or implied --
|
6 | 6 | -- warranty. In no event will the authors be held liable for any damages --
|
@@ -39,53 +39,59 @@ function Screen.new()
|
39 | 39 |
|
40 | 40 | function self:close() end
|
41 | 41 |
|
42 |
| - function self:update(dt) end |
| 42 | + function self:isActive() |
| 43 | + return active; |
| 44 | + end |
43 | 45 |
|
44 |
| - function self:draw() end |
| 46 | + function self:setActive( dactiv ) |
| 47 | + active = dactiv; |
| 48 | + end |
45 | 49 |
|
46 |
| - function self:focus(dfocus) end |
| 50 | + -- ------------------------------------------------ |
| 51 | + -- Callback-stubs |
| 52 | + -- ------------------------------------------------ |
47 | 53 |
|
48 |
| - function self:directorydropped(path) end |
| 54 | + function self:directorydropped() end |
49 | 55 |
|
50 |
| - function self:filedropped(file) end |
| 56 | + function self:draw() end |
51 | 57 |
|
52 |
| - function self:resize(w, h) end |
| 58 | + function self:filedropped() end |
53 | 59 |
|
54 |
| - function self:visible(dvisible) end |
| 60 | + function self:focus() end |
55 | 61 |
|
56 |
| - function self:keypressed(key) end |
| 62 | + function self:keypressed() end |
57 | 63 |
|
58 |
| - function self:keyreleased(key) end |
| 64 | + function self:keyreleased() end |
59 | 65 |
|
60 | 66 | function self:lowmemory() end
|
61 | 67 |
|
62 |
| - function self:textinput(input) end |
| 68 | + function self:mousefocus() end |
63 | 69 |
|
64 |
| - function self:mousereleased(x, y, button) end |
| 70 | + function self:mousemoved() end |
65 | 71 |
|
66 |
| - function self:mousepressed(x, y, button) end |
| 72 | + function self:mousepressed() end |
67 | 73 |
|
68 |
| - function self:mousefocus(focus) end |
| 74 | + function self:mousereleased() end |
69 | 75 |
|
70 |
| - function self:mousemoved(x, y, dx, dy) end |
| 76 | + function self:quit() end |
71 | 77 |
|
72 |
| - function self:quit(dquit) end |
| 78 | + function self:resize() end |
73 | 79 |
|
74 |
| - function self:touchmoved(id, x, y, pressure) end |
| 80 | + function self:textedited() end |
| 81 | + |
| 82 | + function self:textinput() end |
75 | 83 |
|
76 |
| - function self:touchpressed(id, x, y, pressure) end |
| 84 | + function self:touchmoved() end |
77 | 85 |
|
78 |
| - function self:touchreleased(id, x, y, pressure) end |
| 86 | + function self:touchpressed() end |
79 | 87 |
|
80 |
| - function self:wheelmoved(x, y) end |
| 88 | + function self:touchreleased() end |
81 | 89 |
|
82 |
| - function self:isActive() |
83 |
| - return active; |
84 |
| - end |
| 90 | + function self:update() end |
85 | 91 |
|
86 |
| - function self:setActive(dactiv) |
87 |
| - active = dactiv; |
88 |
| - end |
| 92 | + function self:visible() end |
| 93 | + |
| 94 | + function self:wheelmoved() end |
89 | 95 |
|
90 | 96 | return self;
|
91 | 97 | end
|
|
0 commit comments