Skip to content
Snippets Groups Projects
Commit 17a4c7f5 authored by dg's avatar dg
Browse files

better

git-svn-id: http://svn.net-core.org/repos/t-engine4@3584 51575b47-30f0-44d4-a5cc-537603b46e54
parent 94c6feb5
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ function _M:saveRemap(file)
end
local f = fs.open(file, "w")
local k1, k2, k3
for virtual, keys in pairs(_M.binds_remap) do
......@@ -260,3 +260,8 @@ function _M:addBinds(t)
self:addBind(virtual, self.virtuals[fct])
end
end
--- Removes a key/command combination
function _M:removeBind(virtual)
self.virtuals[virtual] = nil
end
......@@ -28,11 +28,11 @@ function _M:init(t)
self.w = assert(t.width, "no surface zone width")
self.h = assert(t.height, "no surface zone height")
self.alpha = t.alpha or 200
self.s = core.display.newSurface(self.w, self.h)
self.texture, self.texture_w, self.texture_h = self.s:glTexture()
self.color = t.color or {r=255, g=255, b=255}
Base.init(self, t)
......@@ -41,7 +41,7 @@ end
function _M:generate()
self.mouse:reset()
self.key:reset()
self.s:updateTexture(self.texture)
self.can_focus = false
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment