This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
# Gesture manager class | |
** version 1.2 ** | |
This class is used to perform graphic transformations such as pinch and move. | |
Feel free to modify this class as you need or as you want. | |
# Usage | |
``` | |
function setup() gestures = GestureManager() end | |
function touched(touch) gestures:touched(touch) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function table_clone_internal(t, copies) | |
if type(t) ~= "table" then return t end | |
copies = copies or {} | |
if copies[t] then return copies[t] end | |
local copy = {} | |
copies[t] = copy | |
for k, v in pairs(t) do |