and this is my code:
Code: Select all
require "views/functionView" function love.load () functionView = FunctionView() end function love.draw () functionView:draw() end function love.textinput (text) -- ??? end function love.update (dt) functionView:update(dt) end
As the title say I want to read text from keyboard, not how to read a key, I need emulate the behaviour of a input text in Android. Then, as u can see in the example code, I read about the love.textinput event handler but the class thats need it is inside of 2 parents class, so I obviusly can break some paradigms for take it more easy, but speaking of real projects with a certain complexity that needs order and nice practices, there is a relatively clean way of do it?