Exemple #1
0
	def _isRepeatAllowed(self):
		minDelay = int(config.cec.remote_repeat_delay.value)
		return ( monotonic_time() - self._lastKeyPress ) * 1000 >= minDelay
 def _keyPressed(self, keyid):
     self._lastKey = keyid
     self._lastKeyPress = monotonic_time()
Exemple #3
0
	def _keyPressed(self, keyid):
		self._lastKey = keyid
		self._lastKeyPress = monotonic_time()
 def _isRepeatAllowed(self):
     minDelay = int(config.cec.remote_repeat_delay.value)
     return (monotonic_time() - self._lastKeyPress) * 1000 >= minDelay