diff --git a/package.json b/package.json index a35fe6e6..2b835d40 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "semantic-ui-less": "^2.2.4" }, "dependencies": { - "pxt-core": "0.12.103" + "pxt-core": "0.12.104" } } diff --git a/sim/state/misc.ts b/sim/state/misc.ts index 19804c42..cc16ed92 100644 --- a/sim/state/misc.ts +++ b/sim/state/misc.ts @@ -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.getLastEventValue() + } } namespace pxsim.pxtcore {