diff options
author | rcoh <rcoh@mit.edu> | 2010-12-22 14:27:33 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-22 14:27:33 -0500 |
commit | c581408f028d5b8ceadc53c68d7c1252fbe09e6d (patch) | |
tree | 8724862d05bde3bb3427cdff378cdb08da8babd2 /operationscore/Input.py | |
parent | a1d9b85320c9b07d62470d78ef0c5f9015baf813 (diff) |
About halfway done with support for pixel regions. Modified the component registry a bit. Added
support for multiple pixel mappers (and along with that, default components). RCOH
Diffstat (limited to 'operationscore/Input.py')
-rw-r--r-- | operationscore/Input.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/operationscore/Input.py b/operationscore/Input.py index 2144678..62c4682 100644 --- a/operationscore/Input.py +++ b/operationscore/Input.py @@ -1,4 +1,4 @@ -import threading,time,Util +import threading,time from operationscore.SmootCoreObject import * #Abstract class for inputs. Inheriting classes should call "respond" to raise #their event. Inheriting classes MUST define sensingLoop. Called at the @@ -22,14 +22,10 @@ class Input(SmootCoreObject): self.daemon = True #This kills this thread when the main thread stops def respond(self, eventDict): #if eventDict != []: - #pdb.set_trace() self.parentScope.lock.acquire() self.parentScope.processResponse(self.argDict, eventDict) self.parentScope.lock.release() time.sleep(.001) - def newEvent(self, event): #Mostly just useful for grabbing events from the - #computer running the sim (key presses, clicks etc.) - self.eventQueue.append(event) def parentAlive(self): try: parentAlive = self.parentScope.alive() |