Shows the current binding for the action in-headset
326261
def showActionOrigins(self, actionSetHandle, ulActionHandle):
        """"""

        fn = self.function_table.showActionOrigins
        result = fn(actionSetHandle, ulActionHandle)
        return result
249422
public VisDialog show (Stage stage, Action action) {
		clearActions();
		removeCaptureListener(ignoreTouchDown);

		previousKeyboardFocus = null;
		Actor actor = stage.getKeyboardFocus();
		if (actor != null && !actor.isDescendantOf(this)) previousKeyboardFocus = actor;

		previousScrollFocus = null;
		actor = stage.getScrollFocus();
		if (actor != null && !actor.isDescendantOf(this)) previousScrollFocus = actor;

		pack();
		stage.addActor(this);
		stage.setKeyboardFocus(this);
		stage.setScrollFocus(this);
		if (action != null) addAction(action);

		return this;
	}
1314645
private void enableTalkBack() {
        GVRSceneObject[] sceneObjects = mGvrContext.getMainScene().getWholeSceneObjects();
        for (GVRSceneObject sceneObject : sceneObjects) {
            if (sceneObject instanceof GVRAccessiblityObject)
                if (((GVRAccessiblityObject) sceneObject).getTalkBack() != null)
                    ((GVRAccessiblityObject) sceneObject).getTalkBack().setActive(true);
        }
    }
1317983
def update(self):
        ''''''
        if self.action_space == 'continuous': # mouse movement only used for continuous action space
            if self.world_state and self.world_state.is_mission_running:
                if self.mouse_event and self.prev_mouse_event:
                        rotation_speed = 0.1
                        turn_speed = ( self.mouse_event.x - self.prev_mouse_event.x ) * rotation_speed
                        pitch_speed = ( self.mouse_event.y - self.prev_mouse_event.y ) * rotation_speed
                        self.agent_host.sendCommand( 'turn '+str(turn_speed) )
                        self.agent_host.sendCommand( 'pitch '+str(pitch_speed) )
                if self.mouse_event:
                    if os.name == 'nt': # (moving the mouse cursor only seems to work on Windows)
                        self.canvas.event_generate('<Motion>', warp=True, x=old_div(self.canvas.winfo_width(),2), y=old_div(self.canvas.winfo_height(),2)) # put cursor at center
                        self.mouse_event.x = old_div(self.canvas.winfo_width(),2)
                        self.mouse_event.y = old_div(self.canvas.winfo_height(),2)
                    self.prev_mouse_event = self.mouse_event
        if self.world_state.is_mission_running:
            self.root.after(50, self.update)
1270447
def act(self, action):
        
        # FIXME: Hack to change in return type
        action = int(action)
        assert isinstance(action, int)
        assert action < self.actions_num, "%r (%s) invalid"%(action, type(action))

        # Reset buttons
        for k in self.world_layer.buttons:
            self.world_layer.buttons[k] = 0

        # Apply each button defined in action config
        for key in self.world_layer.player.controls[action]:
            if key in self.world_layer.buttons:
                self.world_layer.buttons[key] = 1

        # Act in the environment
        self.step()

        observation = self.world_layer.get_state()
        reward = self.world_layer.player.get_reward()
        terminal = self.world_layer.player.game_over
        info = {}

        return observation, reward, terminal, info
918603
def updateActionState(self, unSizeOfVRSelectedActionSet_t, unSetCount):
        

        fn = self.function_table.updateActionState
        pSets = VRActiveActionSet_t()
        result = fn(byref(pSets), unSizeOfVRSelectedActionSet_t, unSetCount)
        return result, pSets
1278818
static void bindTabWithData(BottomNavigationItem bottomNavigationItem, BottomNavigationTab bottomNavigationTab, BottomNavigationBar bottomNavigationBar) {

        Context context = bottomNavigationBar.getContext();

        bottomNavigationTab.setLabel(bottomNavigationItem.getTitle(context));
        bottomNavigationTab.setIcon(bottomNavigationItem.getIcon(context));

        int activeColor = bottomNavigationItem.getActiveColor(context);
        int inActiveColor = bottomNavigationItem.getInActiveColor(context);

        if (activeColor != Utils.NO_COLOR) {
            bottomNavigationTab.setActiveColor(activeColor);
        } else {
            bottomNavigationTab.setActiveColor(bottomNavigationBar.getActiveColor());
        }

        if (inActiveColor != Utils.NO_COLOR) {
            bottomNavigationTab.setInactiveColor(inActiveColor);
        } else {
            bottomNavigationTab.setInactiveColor(bottomNavigationBar.getInActiveColor());
        }

        if (bottomNavigationItem.isInActiveIconAvailable()) {
            Drawable inactiveDrawable = bottomNavigationItem.getInactiveIcon(context);
            if (inactiveDrawable != null) {
                bottomNavigationTab.setInactiveIcon(inactiveDrawable);
            }
        }

        bottomNavigationTab.setItemBackgroundColor(bottomNavigationBar.getBackgroundColor());

        BadgeItem badgeItem = bottomNavigationItem.getBadgeItem();
        if (badgeItem != null) {
            badgeItem.bindToBottomTab(bottomNavigationTab);
        }
    }
338070
def currentAction( self ):
        
        if ( not self._actionGroup ):
            return None
            
        for act in self._actionGroup.actions():
            if ( act.isChecked() ):
                return act
        return None
77293
def connected(self):
        """"""
        ret = [u for u in self.channel.recipients if self.voice_state_for(u) is not None]
        me = self.channel.me
        if self.voice_state_for(me) is not None:
            ret.append(me)

        return ret
984192
def _action_enabled(self, event, action):
        """"""
        event_actions = self._aconfig.get(event)
        if event_actions is None:
            return True
        if event_actions is False:
            return False
        return action in event_actions
1054649
def autocast(action, action_space, ability_id):
  """"""
  del action_space
  action.action_ui.toggle_autocast.ability_id = ability_id
588724
def _create_shakemap_converter_action(self):
        """"""
        icon = resources_path('img', 'icons', 'show-converter-tool.svg')
        self.action_shake_converter = QAction(
            QIcon(icon),
            self.tr('Shakemap Converter'), self.iface.mainWindow())
        self.action_shake_converter.setStatusTip(self.tr(
            'Open InaSAFE Converter'))
        self.action_shake_converter.setWhatsThis(self.tr(
            'Open InaSAFE Converter'))
        self.action_shake_converter.triggered.connect(
            self.show_shakemap_importer)
        self.add_action(
            self.action_shake_converter, add_to_toolbar=self.full_toolbar)
1270489
function DeviceOrientationControlMethod() {
  this._dynamics = {
    yaw: new Marzipano.Dynamics(),
    pitch: new Marzipano.Dynamics()
  };

  this._deviceOrientationHandler = this._handleData.bind(this);

  if (window.DeviceOrientationEvent) {
    window.addEventListener('deviceorientation', this._deviceOrientationHandler);
  }

  this._previous = {};
  this._current = {};
  this._tmp = {};

  this._getPitchCallbacks = [];
}
411289
function _setActionEnabledState(oAction) {

			var oBindingInfo;
			if (typeof oAction.enabled === "string") {
				oBindingInfo = ManagedObject.bindingParser(oAction.enabled);
				oBindingInfo.formatter = function (vValue) {
					if (vValue && (typeof vValue === "string")) {
						return "Navigation";
					} else {
						return "Inactive";
					}
				};
			}
			if (oBindingInfo) {
				this._oItemTemplate.bindProperty("type", oBindingInfo);
			} else {
				var bEnabled = oAction.enabled !== false ? true : false;
				var sType = bEnabled ? "Navigation" : "Inactive";
				this._oItemTemplate.setProperty("type", sType);
			}
		}
9688
function (action, selector, done) {
			var ctx = this;
			ctx.plugins[step.name].devices.each(function (device, next) {
				wdApi.getElement({
					ctx: ctx,
					wait: Boolean(action.match(/wait/)),
					device: device,
					selector: selector
				}, next);
			}, done);
		}
2796
function() {

		var actions = this._actions,
			nActions = this._nActiveActions,
			bindings = this._bindings,
			nBindings = this._nActiveBindings;

		this._nActiveActions = 0;
		this._nActiveBindings = 0;

		for ( var i = 0; i !== nActions; ++ i ) {

			actions[ i ].reset();

		}

		for ( var i = 0; i !== nBindings; ++ i ) {

			bindings[ i ].useCount = 0;

		}

		return this;

	}
127524
private void showGlobalContextActionBar() {
        ActionBar actionBar = getActionBar();
        actionBar.setDisplayShowTitleEnabled(true);
        actionBar.setTitle(R.string.app_name);
    }