Add eventTimestamp and eventValue to pxsim.control

This commit is contained in:
Caitlin Hennessy committed 2017-08-01 09:58:16 -07:00
1 parent 96e3ac0a47
commit d883bf1db3
1 file changed
+8
+8
View File
@@ -65,6 +65,14 @@ namespace pxsim.control {
// TODO mode?
board().bus.queue(id, evid)
}
export function eventTimestamp() {
return board().bus.getLastEventTime()
}
export function eventValue() {
return board().bus.getLastEvent()
}
}
namespace pxsim.pxtcore {