fix carry and shifts in hardware, misc
This commit is contained in:
@@ -369,7 +369,7 @@ local function RedrawKeyInfo(x, y, uk, run)
|
||||
lg.setColor(0,0,0)
|
||||
lg.rectangle("fill",x,y,768,12)
|
||||
lg.setColor(1,1,1)
|
||||
printHighlight("[ESC] Toggle keyboard", 0, lk.isDown("escape"), x, y)
|
||||
printHighlight("[F4] Toggle keyboard", 0, lk.isDown("f4"), x, y)
|
||||
lg.setColor(1,1,1)
|
||||
if uk then
|
||||
printHighlight("Keystrokes passed to device", 23, false, x, y)
|
||||
@@ -656,7 +656,7 @@ function love.draw()
|
||||
end
|
||||
|
||||
function love.keypressed(k)
|
||||
if k=="escape" then
|
||||
if k=="f4" then
|
||||
UseKeyboard = not UseKeyboard
|
||||
else
|
||||
if UseKeyboard then
|
||||
@@ -674,5 +674,5 @@ function love.keypressed(k)
|
||||
end
|
||||
end
|
||||
function love.keyreleased(k)
|
||||
if k~="escape" and UseKeyboard then KeyboardOnKey(Keyboard, k, false, CPU, Memory) end
|
||||
if k~="f4" and UseKeyboard then KeyboardOnKey(Keyboard, k, false, CPU, Memory) end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user