Refonte pour utiliser le systeme de GUI #112
2 changed files with 4 additions and 0 deletions
|
@ -60,11 +60,13 @@ end
|
|||
function HListBox:moveByKeys(key, code)
|
||||
if key == 'left' then
|
||||
self.widget:moveCursor(-1)
|
||||
self.canvas.needRedraw = true
|
||||
self:playNavigationSound()
|
||||
end
|
||||
|
||||
if key == 'right' then
|
||||
self.widget:moveCursor(1)
|
||||
self.canvas.needRedraw = true
|
||||
self:playNavigationSound()
|
||||
end
|
||||
end
|
||||
|
|
|
@ -61,11 +61,13 @@ function ListBox:moveByKeys(key)
|
|||
if key == 'up' then
|
||||
self.widget:moveCursor(-1)
|
||||
self:playNavigationSound()
|
||||
self.canvas.needRedraw = true
|
||||
end
|
||||
|
||||
if key == 'down' then
|
||||
self.widget:moveCursor(1)
|
||||
self:playNavigationSound()
|
||||
self.canvas.needRedraw = true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue