I’ve seen many places where people mentioned the following code
[lua]self.isFocus = true[/lua]
as part of a “touch” event listener function. But I can’t find “isFocus” anywhere in the SDK API. Does anyone know where I can locate this property?
I’ve seen many places where people mentioned the following code
[lua]self.isFocus = true[/lua]
as part of a “touch” event listener function. But I can’t find “isFocus” anywhere in the SDK API. Does anyone know where I can locate this property?
It’s not a pre-defined value. Lua tables (and therefore Corona SDK objects) can have any thing added to it. I believe the .isFocus is just the variable name that the first person to do the drag sample used for it and most of use use a modified version of that drag code. You can name it .billybob if you want to (though .isFocus is much more meanigful)
It’s not a pre-defined value. Lua tables (and therefore Corona SDK objects) can have any thing added to it. I believe the .isFocus is just the variable name that the first person to do the drag sample used for it and most of use use a modified version of that drag code. You can name it .billybob if you want to (though .isFocus is much more meanigful)