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

onTouchEvent #13

Open
schwarzen13 opened this issue Oct 23, 2017 · 3 comments
Open

onTouchEvent #13

schwarzen13 opened this issue Oct 23, 2017 · 3 comments

Comments

@schwarzen13
Copy link

Hello, I'm currently trying to apply touch event to my 3d Object. How can I use onTouchEvent? thank you very much.

@smart-fun
Copy link
Owner

Hello,

at the moment the touch events are only 2D screen positions. This is planned to convert 2D <-> 3D position, but I can't tell you when it will be available.

See also #10

@dhemas
Copy link

dhemas commented Nov 11, 2017

Hi @smart-fun , Im trying to apply simple touch event. How can I achieve this? Im doing like this:

@Override public void onTouchEvent(SmartGLView smartGLView, TouchHelperEvent event) { Log.d("TAG", "TOUCHED!"); }

but no touch logged.

@smart-fun
Copy link
Owner

Hello dhemdhem,

simply set the clickable attribute of your SmartGLView to true.

android:clickable="true"

I should add this in the documentation...

Arnaud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants