Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > 523d94c3dedcccfbd1303a5275fb9e6e > files > 1

90secondportraits-1.01b-3.2.mga8.src.rpm

Index: 90secondportraits-1.01b/main.lua
===================================================================
--- 90secondportraits-1.01b/main.lua
+++ 90secondportraits-1.01b/main.lua	2016-04-15 22:07:04.853652512 +0200
@@ -60,13 +60,13 @@
 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)
-	elseif k == "7" then updateScale(7)
+	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)
+	elseif k == "7" or k == "kp7" or k == "f7" then updateScale(7)
 	end
 
 	Keyboard.static:keypressed(k)