From c2874a0cefa410aca3fdd33ed701b16bac520440 Mon Sep 17 00:00:00 2001 From: dxiao Date: Sun, 20 Feb 2011 14:57:22 -0500 Subject: C5Sign is now not runnable - use C5Sign-[no]pygame instead --- config/C5Sign-nopygame.xml | 5 +++++ config/C5Sign-pygame.xml | 18 ++++++++++++++++++ config/C5Sign.xml | 23 +++++++---------------- inputs/ParametricLocationInput.py | 9 +++++++-- 4 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 config/C5Sign-nopygame.xml create mode 100644 config/C5Sign-pygame.xml diff --git a/config/C5Sign-nopygame.xml b/config/C5Sign-nopygame.xml new file mode 100644 index 0000000..1844ef5 --- /dev/null +++ b/config/C5Sign-nopygame.xml @@ -0,0 +1,5 @@ + + config/C5Sign.xml + + + diff --git a/config/C5Sign-pygame.xml b/config/C5Sign-pygame.xml new file mode 100644 index 0000000..2040642 --- /dev/null +++ b/config/C5Sign-pygame.xml @@ -0,0 +1,18 @@ + + + + renderers/Pygame.xml + + + + + inputs.PygameInput + + pygamekey + 10 + True + + + + config/C5Sign.xml + diff --git a/config/C5Sign.xml b/config/C5Sign.xml index 77f6bcc..8039c07 100644 --- a/config/C5Sign.xml +++ b/config/C5Sign.xml @@ -35,20 +35,19 @@ - + renderers/C5Renderer.xml - - - renderers/Pygame.xml - + - - inputs.ContinuousLocationInput + + inputs.ParametricLocationInput centerleft left center + 0 + .5 1800 @@ -60,14 +59,6 @@ 10 - - inputs.PygameInput - - pygamekey - 10 - True - - inputs.UDPInput @@ -82,7 +73,7 @@ center 700 - + 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 -- cgit v1.2.3