Return the current handedness of the Gear Controller.

@return returns whether the user is using the controller left or right handed. This function
returns <code>null</code> if the controller is unavailable or the data is stale.
508308
@SuppressWarnings("unused")
    public Handedness getHandedness()
    {
        if ((currentControllerEvent == null) || currentControllerEvent.isRecycled())
        {
            return null;
        }
        return currentControllerEvent.handedness == 0.0f ?
                Handedness.LEFT : Handedness.RIGHT;
    }
103703
public static boolean isDartControllerActive() {
		Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
		if (sessionMap.containsKey(DART_CONTROLLER)) {
			return "true".equals(sessionMap.get(DART_CONTROLLER));
		}
		return false;
	}
404599
function () {
    var changed = false;
    var controllerAxes = this.controller.axes;
    var i;
    var previousAxis = this.axis;
    var changedAxes = this.changedAxes;

    // Check if axis changed.
    this.changedAxes.length = 0;
    for (i = 0; i < controllerAxes.length; ++i) {
      changedAxes.push(previousAxis[i] !== controllerAxes[i]);
      if (changedAxes[i]) { changed = true; }
    }
    if (!changed) { return false; }

    this.axis.length = 0;
    for (i = 0; i < controllerAxes.length; i++) {
      this.axis.push(controllerAxes[i]);
    }
    this.el.emit(EVENTS.AXISMOVE, this.axisMoveEventDetail, false);
    return true;
  }
1196578
public ItemsSketch<T> getResult() {
    if (gadget_ == null) {
      return ItemsSketch.getInstance(maxK_, comparator_);
    }
    return ItemsSketch.copy(gadget_); //can't have any externally owned handles.
  }
260192
public function currentRouteAction()
    {
        if (! $route = $this->current()) {
            return;
        }

        $action = $route->getAction();

        return is_string($action['uses']) ? $action['uses'] : null;
    }
422380
public boolean isButtonPressed(int index, int controller) {
		if (controller >= getControllerCount()) {
			return false;
		}

		if (controller == ANY_CONTROLLER) {
			for (int i=0;i<controllers.size();i++) {
				if (isButtonPressed(index, i)) {
					return true;
				}
			}
			
			return false;
		}
		
		return ((Controller) controllers.get(controller)).isButtonPressed(index);
	}
1192901
public int getPlayingPosition()
	{
		if (playerThread!=null)
		{
			final Mixer mixer = playerThread.getCurrentMixer();
			if (mixer!=null && mixer instanceof ModMixer)
			{
				final BasicModMixer modMixer = ((ModMixer)mixer).getModMixer();
				if (modMixer!=null) return modMixer.getCurrentPatternPosition();
			}
		}
		return -1;
	}
478664
public String getButtonDesc()
    {
        if (this.getDisplayFieldDesc(this) == false)
            return null;    // Don't display a desc with this control
        if (this.getSeparateFieldDesc())
            return null;    // Field desc is already a separate control, don't display
        if (this.getConverter() != null)
            return this.getConverter().getFieldDesc();  // Or override and supply value
        return null;
    }
1212463
public function current()
    {
        $sKey = key($this->values);

        return (true === isset($this->values[$sKey])) ? $this->values[$sKey] : null;
    }
525393
public boolean isActive()
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        if (facesContext != null)
        {
            return facesContext.getViewRoot() != null;
        }
        else
        {
            // No FacesContext means no view scope active.
            return false;
        }
    }
1084516
public static OutboxAmp getOutboxCurrent()
  {
    OutboxAmp outbox = OutboxAmp.current();
    
    if (outbox != null) {
      // OutboxAmp outbox = (OutboxAmp) outboxDeliver;
    
      return outbox;
    }
    else {
      return OutboxAmpNull.NULL;
    }
  }
420199
public int getCurrentSelectedPosition() {
        return mDrawerBuilder.mAdapter.getSelections().size() == 0 ? -1 : mDrawerBuilder.mAdapter.getSelections().iterator().next();
    }
635457
function () {
    this.controller = controllerUtils.findMatchingControllerWebXR(
      this.system.controllers,
      this.data.hand
    );
    // Legacy handle to the controller for old components.
    this.el.components['tracked-controls'].controller = this.controller;

    if (this.data.autoHide) { this.el.object3D.visible = !!this.controller; }
  }
213431
public com.google.api.ads.adwords.axis.v201809.rm.Rule getRightOperand() {
        return rightOperand;
    }
660621
public function getWinner()
    {
        if (!$this->isGameOver()) {
            return null;
        }

        if ($this->getScore(self::PLAYER_0) === $this->getScore(self::PLAYER_1)) {
            return self::DRAW;
        } elseif ($this->getScore(self::PLAYER_0) > $this->getScore(self::PLAYER_1)) {
            return self::PLAYER_0;
        } else {
            return self::PLAYER_1;
        }
    }
993516
public static int getRotationCount(IBlockState state)
	{
		EnumFacing direction = DirectionalComponent.getDirection(state);
		return EnumFacingUtils.getRotationCount(direction);
	}
507369
static int compareShared(Span left, Span right) {
    // If either are shared put it last
    boolean leftShared = Boolean.TRUE.equals(left.shared());
    boolean rightShared = Boolean.TRUE.equals(right.shared());
    if (leftShared && rightShared) return 0; // both are shared, so skip out
    if (leftShared) return 1;
    if (rightShared) return -1;

    // neither are shared, put the client spans first
    boolean leftClient = Span.Kind.CLIENT.equals(left.kind());
    boolean rightClient = Span.Kind.CLIENT.equals(right.kind());
    if (leftClient && rightClient) return 0;
    if (leftClient) return -1;
    if (rightClient) return 1;
    return 0; // neither are client spans
  }