Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 514114016f73599fffa30e8a5aa9f5fe > files > 1

90secondportraits-1.01-1.mga5.src.rpm

Index: 90secondportraits-1.01/main.lua
===================================================================
--- 90secondportraits-1.01/main.lua
+++ 90secondportraits-1.01/main.lua	2015-01-13 16:39:40.116549148 +0100
@@ -56,12 +56,12 @@
 end
 
 function love.keypressed(k)
-	if k == "1" then updateScale(1)
-	elseif k == "2" then updateScale(2)
-	elseif k == "3" then updateScale(3)
-	elseif k == "4" then updateScale(4)
-	elseif k == "5" then updateScale(5)
-	elseif k == "6" then updateScale(6)
+	if k == "1" or k == "kp1" or k == "f1" then updateScale(1)
+	elseif k == "2" or k == "kp2" or k == "f2" then updateScale(2)
+	elseif k == "3" or k == "kp3" or k == "f3" then updateScale(3)
+	elseif k == "4" or k == "kp4" or k == "f4" then updateScale(4)
+	elseif k == "5" or k == "kp5" or k == "f5" then updateScale(5)
+	elseif k == "6" or k == "kp6" or k == "f6" then updateScale(6)
 	end
 
 	Keyboard.static:keypressed(k)