devsalad,
Sorry we did not see this before.
The ultimote demo will allow you to use pre-recorded macros to test hardware only events in the simulator. To do this please follow these directions.
- copy Ultimote.lua into your project directory
- copy the macros folder into your project directory. It is in the /ultimoteDemo/MacroDemos/ folder. It is the one with all the text files.
- please insert the following lines into your main.lua file
----ULTIMOTE CODE
local ultimote = require("Ultimote")
ultimote.playMacro({name = "macros/accelerometer"})
---ULTIMOTE CODE
and thats it! just run your app and you should be getting accelerometer events in the simulator. I recall we did a simple figure 8 maneuver for that macro.
If your app uses both accelerometer and multitouch events you can use the following lines of code to get both events simultaneously.
----ULTIMOTE CODE
local ultimote = require("Ultimote")
ultimote.playMacro({name = "macros/accelerometer"})
ultimote.playMacro({name = "macros/multitouch"}) --play multiple macros at once
----ULTIMOTE CODE
I recall for the multitouch macro we did a few common multitouch gestures like pinch zoom and rotate as well as a 5 finger pinch as well.
Hope that helps and sorry for the delay.
M.Y. Developers
[/code]
[import]uid: 55057 topic_id: 17863 reply_id: 69013[/import]