Search found 3 matches

by Jachin
Sat May 20, 2017 11:14 am
Forum: Support and Development
Topic: How to use function love.keyreleased(key) in another lua file
Replies: 4
Views: 3946

Re: How to use function love.keyreleased(key) in another lua file

thank u!You are really friendly. I know how to do this from your codes. If i want to use it in three lua file,should i have three different functions in different lua file to use it? eg: function my_keyhandlerone(key) print("key released:", key) end function my_keyhandlertwo(key) print(&qu...
by Jachin
Sat May 20, 2017 5:45 am
Forum: Support and Development
Topic: How to use function love.keyreleased(key) in another lua file
Replies: 4
Views: 3946

How to use function love.keyreleased(key) in another lua file

I wanna use the love.keyreleased(key) in another lua file and require it in main.lua .
But when i do this, the love.keyreleased(key) of main.lua become unuseable.
Have any idea to solve this problem? I need some help.