if (  this.paintScrollIndicator && (x > this.scrollIndicatorX) && (y > this.scrollIndicatorY) && (x < this.scrollIndicatorX + this.scrollIndicatorWidth) && (y < this.scrollIndicatorY + this.scrollIndicatorWidth) ) {  int gameAction; if ( (( !this.paintScrollIndicatorUp) || (y > this.scrollIndicatorY + this.scrollIndicatorWidth/2)) && this.paintScrollIndicatorDown) { gameAction = Canvas.DOWN; } else { gameAction = Canvas.UP; }  if (this.menuOpened) { this.menuContainer.handleKeyPressed( 0, gameAction ); } else { handleKeyPressed( 0, gameAction ); }  handleKeyPressed( 0, gameAction );  repaint(); return; }
	protected void pointerPressed(int x, int y) {		try {			//#ifdef tmp.menuFullScreen				// check if one of the command buttons has been pressed:				if (y > this.screenHeight) {					if (x >= this.menuRightCommandX && this.menuRightCommandX != 0) {						if (this.menuOpened) {							this.menuOpened = false;						} else if (this.menuSingleRightCommand != null) {							callCommandListener(this.menuSingleRightCommand );						}						repaint();						return;					} else if (x <= this.menuLeftCommandX){						// assume that the left command has been pressed:						if (this.menuSingleLeftCommand != null) {							this.callCommandListener(this.menuSingleLeftCommand);						} else {							this.menuOpened = true;						}						repaint();						return;					}				} else if (this.menuOpened) {					this.menuOpened = false;					// a menu-item could have been selected:					if (this.menuContainer.handlePointerPressed( x, y )) {						int focusedIndex = this.menuContainer.getFocusedIndex();						Command cmd = (Command) this.menuCommands.get( focusedIndex );						callCommandListener( cmd );											} else {						//#ifdef tmp.useTitle							y -= this.titleHeight;						//#endif						int focusedIndex = this.menuContainer.getFocusedIndex();						Item item = this.menuContainer.get( focusedIndex );						if (y > item.yTopPos  && y < item.yBottomPos								&& x > item.xLeftPos && x < item.xRightPos) {							Command cmd = (Command) this.menuCommands.get( focusedIndex );							callCommandListener( cmd );							}					}					repaint();					return;				}			//#endif			// let the screen handle the pointer pressing:			//#ifdef tmp.usingTitle				boolean processed = handlePointerPressed( x, y - this.titleHeight);				if (processed) {					repaint();				}			//#else				//# boolean processed = handlePointerPressed( x, y );				if (processed) {					repaint();				}			//#endif						//#mdebug				if (!processed) {					Debug.debug("PointerPressed at " + x + ", " + y + " not processed.");									}			//#enddebug		} catch (Exception e) {			//#debug error			Debug.debug("PointerPressed at " + x + "," + y + " resulted in exception", e );		}	}