Package libavg :: Module mtemu

Module mtemu

source code


this class provides a test to emulate one or two TOUCH/TRACK events. 
by pressing "ctrl left/right" the TOUCH events will be switched into TRACK events and the 
other way around.
by pressing "shift left/right" a second event is created whenever the mousebutton (left) 
is clicked. 
the second event appears at the position:   mousePosition - (40,40) pixels.

Note: remove any mouse event handling from your application to avoid emulation issues

For example:

1) avg.MOUSE | avg.TOUCH filters can be safely reduced to avg.TOUCH
2) the current libavg button module breaks the emulation
3) the current libavg Grabbable class breaks the emulation, unless is created with 
   source = avg.TOUCH parameter

Classes
  MTemu
this class provides a test method to emulate one or two TOUCH events.
Variables
  Player = avg.Player.get()