소스 검색

Update sample

Daniele Bartolini 10 년 전
부모
커밋
16707ca01b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      samples/00-hello-world/lua/game.lua

+ 1 - 1
samples/00-hello-world/lua/game.lua

@@ -17,7 +17,7 @@ function update(dt)
 	World.update(world, dt)
 
 	-- Stop the engine when the 'ESC' key is released
-	if Keyboard.button_released(Keyboard.ESCAPE) then
+	if Keyboard.released(Keyboard.button_id("escape")) then
 		Device.quit()
 	end
 end