Add eventTimestamp and eventValue to pxsim.control
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user