Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All states in gestures.two_finger are false #6

Closed
Jerakin opened this issue Jan 21, 2019 · 1 comment
Closed

All states in gestures.two_finger are false #6

Jerakin opened this issue Jan 21, 2019 · 1 comment

Comments

@Jerakin
Copy link
Contributor

Jerakin commented Jan 21, 2019

Simple repo
gestures_issue.zip

local gesture					= require "in.gesture"


function init(self)
	msg.post(".", "acquire_input_focus")
	gesture.SETTINGS.multi_touch = true
end

function on_input(self, action_id, action)
	local g = gesture.on_input(self, action_id, action)
	if g and action.released then
		pprint(g)
	end
end

Even though two fingers is swiped the output is this, same goes for any other action with two fingers.

 { --[[0xf1d29270]]
01-21 14:16:20.034  3933  3952 D defold  :   swipe_right = false,
01-21 14:16:20.034  3933  3952 D defold  :   swipe_up = false,
01-21 14:16:20.034  3933  3952 D defold  :   two_finger = { --[[0xf1d292a0]]
01-21 14:16:20.034  3933  3952 D defold  :     swipe_up = false,
01-21 14:16:20.034  3933  3952 D defold  :     tap = false,
01-21 14:16:20.034  3933  3952 D defold  :     swipe_right = false,
01-21 14:16:20.034  3933  3952 D defold  :     swipe_down = false,
01-21 14:16:20.034  3933  3952 D defold  :     long_press = false,
01-21 14:16:20.034  3933  3952 D defold  :     swipe_left = false,
01-21 14:16:20.034  3933  3952 D defold  :     double_tap = false
01-21 14:16:20.034  3933  3952 D defold  :   },
01-21 14:16:20.034  3933  3952 D defold  :   swipe_down = true,
01-21 14:16:20.034  3933  3952 D defold  :   swipe_left = false,
01-21 14:16:20.034  3933  3952 D defold  :   swipe = { --[[0xedf45320]]
01-21 14:16:20.034  3933  3952 D defold  :     from = vmath.vector3(218.33331298828, 935.02783203125, 0),
01-21 14:16:20.034  3933  3952 D defold  :     to = vmath.vector3(416.33331298828, 34.604248046875, 0),
01-21 14:16:20.034  3933  3952 D defold  :     time = 0.11771392822266
01-21 14:16:20.034  3933  3952 D defold  :   }
01-21 14:16:20.034  3933  3952 D defold  : }
@Jerakin
Copy link
Contributor Author

Jerakin commented Jan 21, 2019

Ooops. I forgot to setup the touch trigger.

@Jerakin Jerakin closed this as completed Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant