Package libavg :: Module mtemu :: Class MTemu

Class MTemu

source code


this class provides a test method to emulate one or two TOUCH events. by pressing "ctrl left" the TOUCH events will be switched into TRACK events.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
delete(self)
after turning off the emulater the function unlinks all nodes of the emulator.
source code
 
changeMode(self)
function to switch between TRACK and TOUCH.
source code
 
multiTouch(self)
creates another event if shift and mouse left is pressed.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  ID = avg.Point2D(10000,0)
  EventMode = libavg.avg.Source.TOUCH
  pos2 = avg.Point2D(-1,-1)
  pos1 = avg.Point2D(-1,-1)
  mouseDown2 = avg.Point2D(-1,-1)
  mouseDown1 = avg.Point2D(-1,-1)
  hover = False
  multiActive = False
  mouseState = ''
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

delete(self)

source code 

after turning off the emulater the function unlinks all nodes of the emulator. so it be garanted that the application is working as before again. events will be cleared with two UP events.

changeMode(self)

source code 

function to switch between TRACK and TOUCH. it is called from the AVGAppStarter by pressing 'ctrl left'.

multiTouch(self)

source code 

creates another event if shift and mouse left is pressed. if the mouse is not pressed no event will appear.