aboutsummaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
authorGravatar dxiao <dxiao@mit.edu>2011-02-20 14:57:22 -0500
committerGravatar dxiao <dxiao@mit.edu>2011-02-20 14:57:22 -0500
commitc2874a0cefa410aca3fdd33ed701b16bac520440 (patch)
tree89d8f405d9882d7a6561bbbf71f8cf45842e6140 /inputs
parent3049644b2ba2045efb96c698105956ce6fedae08 (diff)
C5Sign is now not runnable - use C5Sign-[no]pygame instead
Diffstat (limited to 'inputs')
-rw-r--r--inputs/ParametricLocationInput.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/inputs/ParametricLocationInput.py b/inputs/ParametricLocationInput.py
index f413c64..e817a9d 100644
--- a/inputs/ParametricLocationInput.py
+++ b/inputs/ParametricLocationInput.py
@@ -3,8 +3,13 @@ import util.ComponentRegistry as compReg
import util.Strings as Strings
from operationscore.Input import *
class ParametricLocationInput(Input):
- '''Continuously returns one of nine positions on the screen as specified by the xloc
- and yloc arguments, which can take values 'min', 'max', and 'center'. '''
+ """Takes three arguments: xEquation, yEquation, and useClock where
+ xEquation and yEquation is a parametric equation in t and returns
+ a value from 0 to 1, where 0 represents top/left and 1 represents
+ bottom/right of the lightscreen. useClock is a boolean that
+ specifies if the behavior should compute t based on the system
+ clock (value True) or should just increment t every time the
+ input is called."""
def clockTick(self):
return clock.time() - clock.t