示例#1
0
bool VirtualKey::VK_MOUSEKEY::handle(const Params_KeyboardEventCallBack& params) {
  if (handle_button(params)) return true;
  if (handle_move(params)) return true;
  if (handle_fixeddistancemove(params)) return true;
  if (handle_lock_button(params)) return true;
  return false;
}
示例#2
0
bool VirtualKey::VK_MOUSEKEY::handle(const Params_KeyboardEventCallBack& params, AutogenId autogenId, PhysicalEventType physicalEventType) {
  lastPhysicalEventType_ = physicalEventType;

  if (handle_button(params, autogenId, physicalEventType)) return true;
  if (handle_move(params, autogenId, physicalEventType)) return true;
  if (handle_fixeddistancemove(params, autogenId, physicalEventType)) return true;
  if (handle_fixeddistancescroll(params, autogenId, physicalEventType)) return true;
  if (handle_lock_button(params, autogenId, physicalEventType)) return true;
  return false;
}