+1
Beantwoord
Is there a way to capture accelerometer/gyroscope values?
Is there an action similar to an event listener on when the device move?
Was able to achieve this by using javascript within functions.html:
[code]
[/code]
I was able to retrieve the value from [eval:getValueG()] from an action (such as from an onclick event).
Only thing I can think of is having a loop with [eval:getValueG()] constantly running.
Are there other methods/techniques to achieve like results?
I'm new and trying out it out.
Any help appreciated. Thanks!
Was able to achieve this by using javascript within functions.html:
[code]
[/code]
I was able to retrieve the value from [eval:getValueG()] from an action (such as from an onclick event).
Only thing I can think of is having a loop with [eval:getValueG()] constantly running.
Are there other methods/techniques to achieve like results?
I'm new and trying out it out.
Any help appreciated. Thanks!
Customer support service by UserEcho
Like this:
<wire>
<datasources>
<!-- datasources go here -->
</datasources>
<styles>
<!-- styles go here -->
</styles>
<classes>
<!-- classes go here -->
</classes>
<main>
<!-- main wire hierarchy -->
</main>
<actions>
<!-- actions go here -->
</actions>
</wire>
I hope that helps!
Assuming you are on a MBP, put this line within your browser's console
window.ondeviceorientation = function(event){console.log(event.gamma);}
You should see logs with values when you move your MBP.
I am trying to achieve this type of logging within rarewire.
This idea was asked form the creative group if we detect tilt and found this work around with working w/JS.
Would be great if it mimic ondeviceorientation and ondevicemotion.
Info:
http://developer.apple.com/library/sa...
http://developer.apple.com/library/sa...
Joe Longstreet (Buddy of mine) wrote an article a while back on these values.
http://joelongstreet.com/blog/2011/08...