Ejemplo n.º 1
0
void VirtualKey::VK_MOUSEKEY::FixedDistanceScroll::initialize(IOWorkLoop& workloop) {
  delta1_ = 0;
  delta2_ = 0;
  counter_ = 0;
  autogenId_ = AutogenId(0);
  physicalEventType_ = PhysicalEventType::DOWN;

  fire_timer_.initialize(&workloop, nullptr, VirtualKey::VK_MOUSEKEY::FixedDistanceScroll::fire_timer_callback);
}
Ejemplo n.º 2
0
void VirtualKey::VK_MOUSEKEY::reset(void) {
  move_down_ = false;
  move_left_ = false;
  move_right_ = false;
  move_up_ = false;

  scale_ = 1;
  scrollmode_ = false;
  highspeed_ = false;
  currentAutogenId_ = AutogenId(0);
  lastPhysicalEventType_ = PhysicalEventType::DOWN;

  fire_timer_.cancelTimeout();

  FixedDistanceScroll::reset();
}
Ejemplo n.º 3
0
void VirtualKey::VK_MOUSEKEY::initialize(IOWorkLoop& workloop) {
  move_down_ = false;
  move_left_ = false;
  move_right_ = false;
  move_up_ = false;

  scale_ = 1;
  scrollmode_ = false;
  highspeed_ = false;
  currentAutogenId_ = AutogenId(0);
  lastPhysicalEventType_ = PhysicalEventType::DOWN;

  fire_timer_.initialize(&workloop, nullptr, VirtualKey::VK_MOUSEKEY::fire_timer_callback);

  FixedDistanceScroll::initialize(workloop);
}
Ejemplo n.º 4
0
 static AutogenId maxValue(void) {
   //       1234567812345678
   return AutogenId(0xffffffffffffffff);
 }
Ejemplo n.º 5
0
 DropKey(AutogenId autogenId) : RemapFuncBase(BRIDGE_REMAPTYPE_DROPKEY, autogenId),
                                dropKey_(false),
                                dropConsumerKey_(false),
                                dropPointingButton_(false),
                                modifierMatched_(false),
                                dropTargetAutogenId_(AutogenId(0)) {}