add clear again
This commit is contained in:
parent
ced6defe40
commit
325b928b65
@ -20,12 +20,10 @@ class inputDriver():
|
|||||||
def getInputEvent(self):
|
def getInputEvent(self):
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
return None
|
return None
|
||||||
def writeEventBuffer(self):
|
|
||||||
if not self._initialized:
|
|
||||||
return
|
|
||||||
def clearEventBuffer(self):
|
def clearEventBuffer(self):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return
|
return
|
||||||
|
del self.env['input']['eventBuffer'][:]
|
||||||
def updateInputDevices(self, newDevices = None, init = False):
|
def updateInputDevices(self, newDevices = None, init = False):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return
|
return
|
||||||
@ -45,7 +43,7 @@ class inputDriver():
|
|||||||
def hasIDevices(self):
|
def hasIDevices(self):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return False
|
return False
|
||||||
return False
|
return True
|
||||||
def removeAllDevices(self):
|
def removeAllDevices(self):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user