aboutsummaryrefslogtreecommitdiff
path: root/operationscore/Input.py
diff options
context:
space:
mode:
authorGravatar Thomas B Thompson <tbent@spice.(none)>2011-01-04 00:04:05 -0500
committerGravatar Thomas B Thompson <tbent@spice.(none)>2011-01-04 00:04:05 -0500
commit134de4472d3f2fa913944770595de9221dd27fdf (patch)
treecf83e29a1ef4931a15f9b30125fedbd8fba8caf9 /operationscore/Input.py
parentf9aeaf10e3c9077504a78374640e79415734546b (diff)
worked on profiling, made a bunch of changes, huge speedup!
Diffstat (limited to 'operationscore/Input.py')
-rw-r--r--operationscore/Input.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/operationscore/Input.py b/operationscore/Input.py
index 62c4682..6b56cd5 100644
--- a/operationscore/Input.py
+++ b/operationscore/Input.py
@@ -1,5 +1,6 @@
import threading,time
from operationscore.SmootCoreObject import *
+from operationscore.ThreadedSmootCoreObject import ThreadedSmootCoreObject
#Abstract class for inputs. Inheriting classes should call "respond" to raise
#their event. Inheriting classes MUST define sensingLoop. Called at the
#interval specified in RefreshInterval while the input is active. For example, if you are writing
@@ -7,7 +8,7 @@ from operationscore.SmootCoreObject import *
#Inheriting classes MAY define inputInit. This is called before the loop
#begins.
import pdb
-class Input(SmootCoreObject):
+class Input(ThreadedSmootCoreObject):
#Event scope is a function pointer the function that will get called when
#an Parent is raised.
def __init__(self, argDict):