Package VisionEgg :: Package PyroApps :: Module MouseTargetServer
[frames] | no frames]

Module MouseTargetServer

source code

Handle mouse-controlled small targets (server-side)




Version: 1.1.dev

Author: Andrew Straw <astraw@users.sourceforge.net>

Classes
  MouseTargetExperimentMetaController
  MousePositionController
  TargetPositionController
  TargetOrientationController
Functions
 
keydown(event) source code
 
keyup(event) source code
 
get_meta_controller_class() source code
 
make_stimuli() source code
 
get_meta_controller_stimkey() source code
 
cross_product(b, c)
Cross product between vectors, represented as tuples of length 3.
source code
 
mag(b)
Magnitude of a vector.
source code
 
get_target_size(t=None) source code
Variables
  __cvs__ = string.split('$Revision$') [1]
  __date__ = string.join(string.split('$Date$') [1: 3], ' ')
  mouse_position = 320.0, 240.0
  last_mouse_position = 0.0, 0.0
  target_w = 50.0
  target_h = 10.0
  up = 0
  down = 0
  left = 0
  right = 0
  handle_event_callbacks = [(pygame.locals.KEYDOWN, keydown), (p...
Variables Details

handle_event_callbacks

Value:
[(pygame.locals.KEYDOWN, keydown), (pygame.locals.KEYUP, keyup)]