aboutsummaryrefslogtreecommitdiff
path: root/pixelcore/Screen.py
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2011-01-21 00:57:14 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2011-01-21 00:57:14 -0500
commita223608dda0751551c6e8688c0c0e1c9a1d4e69c (patch)
treecd0620097745b7053abec7346f6bd7e65d99dafe /pixelcore/Screen.py
parentf45b5e262c394cf00ef88f7fca1eab1b4de0fec9 (diff)
Added a new config file to run the upstairs lights. Modified PixelMapper to
track cache hits. Added 60-strip layouts and renderer configs.
Diffstat (limited to 'pixelcore/Screen.py')
-rw-r--r--pixelcore/Screen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixelcore/Screen.py b/pixelcore/Screen.py
index 6666235..cfadee8 100644
--- a/pixelcore/Screen.py
+++ b/pixelcore/Screen.py
@@ -73,6 +73,7 @@ class Screen:
maxY = max(y, maxY)
self.size = (0,0, maxX, maxY)
self.sizeValid = True
+ print self.size
return (0, 0, maxX+100, maxY+100) #TODO: cleaner
#private
@@ -88,8 +89,7 @@ class Screen:
#if type(mapper) != type(PixelMapper):
# raise Exception('No default mapper specified.')
pixelWeightList = mapper.mapEvent(responseInfo['Location'], self)
-
PixelEvent.addPixelEventIfMissing(responseInfo)
currentTime = timeops.time()
for (pixel, weight) in pixelWeightList:
- pixel.processInput(responseInfo['PixelEvent'].scale(weight), 0, currentTime) #TODO: z-index
+ pixel.processInput(responseInfo['PixelEvent'], 0,weight, currentTime) #TODO: z-index