Skip to content
Snippets Groups Projects
Commit 477ae184 authored by dg's avatar dg
Browse files

keybinds used in Birther

git-svn-id: http://svn.net-core.org/repos/t-engine4@650 51575b47-30f0-44d4-a5cc-537603b46e54
parent edbf6970
No related branches found
No related tags found
No related merge requests found
......@@ -69,12 +69,13 @@ function _M:init(actor, order, at_end)
self.cur_order = 1
self:next()
self:keyCommands{
_UP = function() self.sel = util.boundWrap(self.sel - 1, 1, #self.list); self.changed = true end,
_DOWN = function() self.sel = util.boundWrap(self.sel + 1, 1, #self.list); self.changed = true end,
_RETURN = function() self:next() end,
self:keyCommands({
_BACKSPACE = function() self:prev() end,
}
},{
MOVE_UP = function() self.sel = util.boundWrap(self.sel - 1, 1, #self.list); self.changed = true end,
MOVE_DOWN = function() self.sel = util.boundWrap(self.sel + 1, 1, #self.list); self.changed = true end,
ACCEPT = function() self:next() end,
})
self:mouseZones{
{ x=2, y=25, w=350, h=self.h, fct=function(button, x, y, xrel, yrel, tx, ty)
self.changed = true
......
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